documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[Request]: Multiple Strapi projects/db on the same App Engine

Open Carduelis opened this issue 4 years ago • 1 comments

Summary

Hello! I'm using GCP as a place when I serve my strapi. It uses App Engine to run itself, and Postres SQL as a database.

The problem here is cost. Every SQL server and App engine will cost around 30 euro per month. Which is unacceptable for a small usage.

Why is it needed?

My goal is to create multiple web-sites using Strapi as a back-end. I'm using JAMSTACK and vercel as a platform to serve my next.js applications. The websites, which I'm going to make won't take a lot of requests. It's a personal websites for me and friends, a couple of blog sites and landing pages for libraries.

And for this case I would like to keep data in different databases but serve them in the same GCP SQL server.

Suggested solution(s)

The simplest solution here is to somehow enable a switcher between databases. And then, every api endpoint will have a prefix url slug with a name of a database. For example:

my-app-engine.appspot.com/database1/users
my-app-engine.appspot.com/myblog/users

Etc.

Is it possible? Or maybe there is another solution for my needs?

Related issue(s)/PR(s)

No response

Carduelis avatar Apr 19 '21 11:04 Carduelis

Does it support switching between different databases?

mmm8955405 avatar Apr 25 '22 05:04 mmm8955405

Hello. I'm sorry that you were having troubles and that this issue didn't get more attention sooner. I'm cleaning up old documentation issues and I will close this issue now. Feel free to open a new issue if you're still having trouble with the documentation for Strapi v4.11+

pwizla avatar Jul 10 '23 15:07 pwizla