Multi-tenant application in Railway with separate database
chastoedov
PROOP

a month ago

Hi!

Is it possible to organize a multi-tenant application in Railway, in which each project will have a separate database? The database will be created automatically during the creation of the project.

Solved

3 Replies

Railway
BOT

a month ago

Yes, this is possible using our GraphQL API. You can programmatically create projects and provision database services within them using mutations like projectCreate and serviceCreate. Explore the available mutations in our GraphiQL playground to build the automation you need, and check the API Cookbook for common examples.


Status changed to Awaiting User Response Railway about 1 month ago


Railway

Yes, this is possible using our [GraphQL API](https://docs.railway.com/integrations/api/graphql-overview). You can programmatically create projects and provision database services within them using mutations like `projectCreate` and `serviceCreate`. Explore the available mutations in our [GraphiQL playground](https://railway.com/graphiql) to build the automation you need, and check the [API Cookbook](https://docs.railway.com/integrations/api/api-cookbook) for common examples.

chastoedov
PROOP

a month ago

Will Railway work if I have 10,000 projects with their own databases?


Status changed to Awaiting Railway Response Railway about 1 month ago


a month ago

Yes that's fine.


Status changed to Awaiting User Response Railway about 1 month ago


Railway
BOT

24 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 24 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...