Open Closed

Separate Tenant management DB\Service #205


User avatar
0
vishalnikam created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v2.7
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace: NA
  • Steps to reproduce the issue: NA

Hi,

How to create separate Tenant Database/Service and hosted seperately. then how to add tenant dependency (MultiTenant) to other module based services.

https://docs.abp.io/en/commercial/latest/startup-templates/module/solution-structure

Thanks, Vishal Nikam


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

    Hi, You can reffer microservices example: https://docs.abp.io/en/abp/latest/Samples/Microservice-Demo.

    In the microservices example, the tenant management is deployed separately but does not have its own database.

    You just set the connection string in appsetting.json, add and apply database migration.

  • User Avatar
    0
    vishalnikam created

    i tried with separate tenant databse in default ABP project template

    but it didnt create any database and says database login fail ..find below error log

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Login failed for user 'sa'

    Make sure your username and password are correct.

  • User Avatar
    0
    vishalnikam created

    As i said there is no issue with username and password . i am able to login with same connection string for default.

    Dont know what is the issue here i dont see that database in SQL . when does this database get created. is there any sample connection string ?

    is it issue with radis cache?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Currently will not create a database after creating a tenant, you need run .DbMigrator project to create tenant database.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    About redis error, please see https://stackoverflow.com/questions/35614066/redissessionstateprovider-err-unknown-command-eval

  • User Avatar
    0
    vishalnikam created

    How to combine and manges permission and localization for multiple module\ service in single module or service.

    For example I have default abp application and seperate service as module. i want to mange permssion and localitation at single place as it has sepearet permission mangamnet and localization.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    You can create a host application, which contains identity management module and localization management module

  • User Avatar
    0
    vishalnikam created

    How to use use exsiting abp identity server for newly added module based service. what configuartion needs to be done in Identity server and DB. i tried add entry into db tables like IdentityServerApiResources but it doesnt work and it thorws the unauthentication exception on service.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Has your first problem been solved? Please create a new post to discuss. Thanks.

  • User Avatar
    0
    vishalnikam created

    I have created sperate support post for abp identity server. Regarding permission mangamnet and localization management, i am not following you. By seperate host application? you mean shared libery or somthing, which can be added to both module service?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Like https://github.com/abpframework/abp/blob/dev/samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs, Use an ASPNET Core application as the host, and install identity management module and localization management module.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11