One droplet running web app snapshot for each customer?
Hi guys I need some help figuring out this pattern.
I have a web application currently running on flask at site.com
for each of my customer, I want to have a droplet from digitalocean running the copy of the flask app.
I want to consolidate them under a subdomain like customername.site.com
so when they go to customername.site.com, the ip points to their own server.
Now the problem I have is handling cases like:
- user logs in at site.com, needs to be logged in at customername.site.com
- user logs out at customername.site.com, needs to be logged out at site.com
- how do you configure an encrypted password for a new droplet instance?
- how do you update all customer droplets with new code?
The reason I have one user per one droplet is because they run cpu and network intensive background jobs in parallel. I don’t want them to interfere with each other.
I guess I’m trying to achieve horizontal scalability, by just cloning an instance of my original web application, instead of trying to force everyone on the same instance.
Any suggestions or feedback would be very useful.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×