How to handle concurrent request while using POST api ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to handle concurrent request while using POST api ?

I am developing a web application using Flask and SQLAlchemy. For inserting a new record I am using a POST api. Suppose the post api for inserting a new record is called concurrently by 2 users, then the last one should finally reflect on the backend. Does anyone here have an idea how to achieve this ? Any link to an article or blog will also be helpful. Thanks.

18th May 2021, 8:20 AM
Peter Parker
Peter Parker - avatar
1 Answer
+ 1
what do you mean by "last one"? could you give an example of how the records will look like before and after the concurrent requests?
7th Jun 2021, 1:55 PM
Bot
Bot - avatar