Skip to content

Multitenancy support on one horizon instance #666

@jacekjagiello

Description

@jacekjagiello

I'am bulding multitenancy app, and I want to choose database(in wich all collections will be stored) based on for example, database name decoded from JWT token payload.
According to #43 that's impossible for now. Each horizon instance has only one database, and project_name === db_name + internal database.

What do you think about sepearting project name from database name, some way to create databases programatically(from the server side) and also select current database while instantiating Horizon() object on the client side?

I've recetly took a look at Horizon source code, and maybe I'll be able to submit a pull request, but what do you think about this kind of idea? Have you got any other ideas for better multitenancy support in horizon apps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions