Open Closed

Background jobs containerization #6526


User avatar
0
smansuri created
  • 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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    please check https://support.abp.io/QA/Questions/2007/Background-Worker-in-Microservices-Project#answer-f3e73fd4-5f54-2433-cc1e-39ffcdbe7442

  • User Avatar
    0
    smansuri created

    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.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    please check this https://github.com/abpframework/abp/issues/7713 if find helpful

  • User Avatar
    0
    smansuri created

    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.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09