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.
Comments
Post a Comment