Python Forum
A question regarding to the microservice architecture
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question regarding to the microservice architecture
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Architecture question for website with python crontab script rockie12us 1 1,743 Aug-09-2021, 10:07 AM
Last Post: Larz60+
  Architecture for script executor marsokod 0 2,176 Mar-03-2018, 09:42 PM
Last Post: marsokod
  Python Architecture in Bock diagram hshivaraj 3 3,481 Jan-08-2018, 05:52 PM
Last Post: wavic
  jaydebeapi architecture error? CraigBoyd 2 4,810 Feb-10-2017, 03:39 PM
Last Post: CraigBoyd

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020