- ABP Framework version: v7.3.2
- UI Type: Angular
- Database System: EF Core ( MySQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): Auth Server Separated
- Exception message and full stack trace:NA
- Steps to reproduce the issue:NA
I have microservices start up template with auth server separated angular UI. I have my microservices , gateways and UI application running in staging env each a separate docker container. Now i want to add background jobs my solution. specifically job to get rabbitmq message and execute the task. i'm not sure what's the best practice to add background job in microservices solution. What i'm looking for is how to structure the background jobs project into my microservices solution to host all job under a docker container. shall i create another microservice or create a modular project like share folder we have. so i can add jobs folder to existing folder structure and under that create a new project. if i have to create jobs folder and add project under it what type of project shall i create to containerize it for example consoleapp or anyother. i have gone through below URL already. https://docs.abp.io/en/abp/latest/Background-Jobs#introduction https://docs.abp.io/en/abp/latest/Background-Jobs-RabbitMq
5 Answer(s)
-
0
Hi,
please check https://support.abp.io/QA/Questions/2007/Background-Worker-in-Microservices-Project#answer-f3e73fd4-5f54-2433-cc1e-39ffcdbe7442
-
0
Hi,
please check https://support.abp.io/QA/Questions/2007/Background-Worker-in-Microservices-Project#answer-f3e73fd4-5f54-2433-cc1e-39ffcdbe7442
This looks like a specific case. We are looking to implement RabbitMQ Background Job Manager for generic email sender. so for that whats the best practice here to use background jobs in microservice architechure as per abp? Should create jobs as microservices or another console app inside a folder for example backgroundjobs or do you suggest any other way?. please suggest.
-
0
Hi,
please check this https://github.com/abpframework/abp/issues/7713 if find helpful
-
0
Hi,
please check this https://github.com/abpframework/abp/issues/7713 if find helpful
Im not sure if I need this. I need your help on abp. standards. please simply suggest a solution rather than putting irrelavant link. I feel microservice is not a good fit here as its used to expose and endpoint or API. so please suggest.
-
0
Hello,
There is no standard way of handling background jobs when talking about microservices. You can let each microservice to handle their own background jobs. Or create a new microservice (essentially a console application) dedicated to handle all the background jobs.
Advantages and disadvantages are based on your use cases.