-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Question: Do I need one Instances for each App? #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes but you can do it very easily. Example:
|
Or having different files and manage them with
|
Or run multiple docker containers in the same server host, and mapping the parse-server port to a different port per app, You've got plenty of ports to spare and it would be very safe, independent and scalable. |
Just to note that if they are in the same scope, what is not modularized is cloud code and Parse.initialize. If you're running multiple ParseServer instances, they will be writing over each others cloud code and appId/masterkey for client functions. |
mhh.. so this wasn't a criterium for parse-server.. It just would make sense for a server to support multiple apps. @gfosco does it override also the keys and cloud code on the example of @francocorreasosa ? |
What about this?
The ParseServer "class" it's wrong implemented anyway. It should have a scope for each instance. Maybe fixing the class implementation helps. |
That wouldn't fix it because globals.Parse is mutated. |
So as far as I understood even the workaround of @francocorreasosa doesnt solve the problem? |
Exactly. You have to run it on different processes and different internal ports. You can merge the ports into subdomains with a reverse proxy (nginx) |
Running multiple docker containers as @kingmatusevich mentioned would also work but that assumes you want to learn all about that lol Running multiple Parse-Server apps in one instance of express via vhost would obv be the best for small apps. @gfosco any chance, you guys would have the time to build that in or is it less than trivial? Thanks |
I have problem and the last db overwrite for all app? Do you have any idea about that? |
Hello Parse-Team ;(
I was in technical mourning the whole day in my bed and since its 10pm here I thought I should stop wining. Thaanks first of that you guys decided to still support the open source stuff. Could have been worst...
Well to my question: Do I need for each app from now on a single parse-server instance? I have apps that depend on parse but have not that much of traction to get their own server. I'm I right that I need multple instances??
PS: Couldn't you post it on a monday? Mondays sucks anyway..
The text was updated successfully, but these errors were encountered: