Open Closed

Adding DDD module inside a Microservice-based solution #8675


User avatar
0
EhabRamadan created
  • ABP Framework version: v9.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Hi,

We are currently working on a Microservice-based solution using the ABP framework and would like to explore adding a Domain-Driven Design (DDD) module to enhance the structure and maintainability of our services. We have a few specific questions:

1- Can you provide a guidance or an example of how to integrate a DDD module into an existing ABP-based microservice solution? 2- How can we use the ABP Suite from the DDD module, as used from microservice module to generate entities, UI and so on? 3- Are there any potential drawbacks or known issues when using a DDD module inside an ABP microservice solution, especially considering challenges related to service boundaries, inter-service communication, or the persistence layer?

and could you please clarify why the public site is being created using Razor, even though Angular was selected as the UI framework?

also according to the ABP login. If we want to login using OTP, should we download and modify the account module as previous versions or there is an update from ABP about this case?

Thanks


5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Yes, of course.

    Can you provide a guidance or an example of how to integrate a DDD module into an existing ABP-based microservice solution?

    This is the way to add a service to the old microservice template.

    • https://abp.io/docs/commercial/latest/startup-templates/microservice/add-microservice
    • https://abp.io/docs/commercial/latest/guides/add-module-to-microservice

    This is the document explaining how to extracting the module as a microservice.

    https://abp.io/docs/commercial/latest/guides/extracting-module-as-microservice

    This is the way to add a service to the new microservice template.

    • https://abp.io/docs/latest/guides/add-microservice

    How can we use the ABP Suite from the DDD module, as used from microservice module to generate entities, UI and so on?

    you can use the suite to add a module project to generate codes.

    Are there any potential drawbacks or known issues when using a DDD module inside an ABP microservice solution, especially considering challenges related to service boundaries, inter-service communication, or the persistence layer?

    Yes, usually, services need to communicate. We have prepared some documents for this.

    The most important thing in microservices is to divide services according to use cases.

    • https://abp.io/docs/latest/solution-templates/microservice
    • https://abp.io/docs/commercial/latest/startup-templates/microservice/index
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    and could you please clarify why the public site is being created using Razor, even though Angular was selected as the UI framework?

    We do not maintain multiple templates. You can choose any UI of your preference as the public website.

    We redesigned the layout of our public website and it will be launched in the next version.

    also according to the ABP login. If we want to login using OTP, should we download and modify the account module as previous versions or there is an update from ABP about this case?

    ABP already supports this; when two-factor authentication is enabled, you can choose TOPT. https://abp.io/docs/latest/modules/identity/two-factor-authentication#user-side

  • User Avatar
    0
    EhabRamadan created

    I need to add a new Angular application to the micro service solution. Could you provide guidance or point me to documentation that covers:

    1. Setting up a new Angular application in the solutions with different Gateway.
    2. integrating the app with the existing services and authentication mechanisms.

    Thanks,

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI,

    Sorry your topic is quite big, and I don't know much about your project details.

    Can you ask some specific questions? thanks.

  • User Avatar
    0
    EhabRamadan created

    ABP already supports this; when two-factor authentication is enabled, you can choose TOPT. https://abp.io/docs/latest/modules/identity/two-factor-authentication#user-side

    Hello, Related to this answer, business flow requires to login in either using phone number or email and password so no need to enable two-factor authentication. Does abp support login by phone number then send otp to verify this number or not? and if it doesn't what is the steps to do a proper workaround?

Made with ❤️ on ABP v9.2.0-preview. Updated on January 20, 2025, 07:44