3 ms·
Go write a FastAPI based Rest service which talks to PostgreSQL via SQLAlchemy. Then set up some compete workers that read in jobs from a RabbitMQ queue. Have
by ReflectedImage 4y ago
Go write a FastAPI based Rest service which talks to PostgreSQL via SQLAlchemy.
Then set up some compete workers that read in jobs from a RabbitMQ queue. Have the Rest service add jobs to the queue and get back the results.
Also you can just read the official Python tutorial for learning stuff like with contextmanager.