I am currently working on an application in which a client makes some kind of call to web services, some little processing is done on the returned JSON data, and then stored in a database. I am currently using SQLAlchemy queries. The amount of processing is very small (just changing the data to a more relational format). I do not use ORM for SA. I just use engine + transactions.
I was interested that a good template for this would be asynchronous (the request is returned → transferred to the database → the next request is launched, without waiting for the database transaction to complete).
I know that in Python there are many tools (multiprocessing, threads, coroutines, asyncore, etc.). However, it’s hard for me to find a good tutorial for my use case.
I was wondering if anyone has any suggestions, libraries that I should pay attention to, or asynchronous templates that would help me solve this problem.
Thank.
source
share