Or you could return a http status 400 if the transaction couldn't be committed. So, the client should re-run the request later.
If this is not an option, you should lay upon a queue as you suggested. Bad things always can happen. So, try your best to avoid i/o problems if your clients cannot re-make requests in case of problems in your side. -- Vinicius Assef On 4 January 2017 at 14:39, Bruno Barbosa <bsbru...@gmail.com> wrote: > Hello everybody! > > I have an application that receives about 1000 POST requests per second. On > each request I writte a line on my database table. On this scenario my > database can shutdown during execution. > > Is it a good pratice to store these data on array in cache (redis) and on > each minute through celery get then and use a bulk_create to insert all data > on database? > > Bruno > -- > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAHxcCH5t7FWRoXbCFvUez-hAzLk0b08KideZ_D_A6oj6a_8L1A%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFmXjSDsYp44V8mVwkdwX-FVww%3D-NhYm4w-KnDZ4rw5SQo5owg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.