Open Closed

Shared Catalogue DB in microservices #6551


User avatar
0
mmaldonado@emscltd.com created
  • ABP Framework version: 6.0.3
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

I want to create a shared db, for catalogues,

I have 2 microservices, they share the catalogue DB, I need to find a way to create a 3rd micro service and make its DB shared, is is possible?

could you help me to find solutions to this problem?


3 Answer(s)
  • User Avatar
    1
    Anjali_Musmade created
    Support Team Support Team Member

    Hi,

    Yes you can create multiple microservices sharing same DB.

    Please check this similar ticket if find helpful https://support.abp.io/QA/Questions/1636/How-i-can-implement-shared-database-using-Microservices-in-other-words---How-more-than-one-microservice-can-use-the-same-database

  • User Avatar
    0
    mmaldonado@emscltd.com created

    could you provide an example of it?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    There is no such example , but inside the shared project you need to create a EntityFrameworkProject just like in Microservices. and also need to create a DBContext.

    Thanks

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