Multi-tenant application in Railway with separate database
chastoedov
PROOP

3 months 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

3 months 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 3 months 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

3 months ago

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


Status changed to Awaiting Railway Response Railway 3 months ago


3 months ago

Yes that's fine.


Status changed to Awaiting User Response Railway 3 months ago


Railway
BOT

2 months 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 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...