A question regarding to the microservice architecture - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: A question regarding to the microservice architecture (/thread-30307.html) |
A question regarding to the microservice architecture - itaybardugo - Oct-15-2020 Hello everyone i have a microservice which exposes a few endpoints, each of these endpoints can be executed by a http request(flask). I have one specific endpoint which takes a long time to be end, so I thought to run a background job once this entrypoint is triggered, in order to reduce its respond time. Is it good practice to mix flask and rabbitmq in the same microservice? For example, i want flask to expose this action but when it is called i want to push a task into a rabbit queue.. is the consumer should be in the same app or in a different service? I would Like to hear your recommendations. |