What is the best way to design background jobs in microservices architecture? -


i using microservices architecture. per requirements, there restful services required , background jobs developed.

for example of groceries delivery system,

  • customers service - restful service
  • provider service - restful service
  • orderprovision - background service checks whether of customer items got provided different providers.

once done, send initiation customer status , initiate delivery system start delivering

for case of orderprovision best way implement microservices? in case of .net framework, can create windows service/ scheduler task run in background , checks. if needs deployed on other servers linux, not work. best way code such background tasks in microservices architecture?

you can use task queues. take @ following article. although python, concepts can adopted other languages.

https://www.fullstackpython.com/task-queues.html


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -