By wrdos
Good afternoon, I have a question about performance. I need to implement a system. This was multiple accounts (users), but the data not possible to be the same between them. My idea is that the new user, a new environment is created for him.
What would be the best solution?
Using a single server (** wildfly / tomcat **) and each new user, create a new database or create a docker image for each new user?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
This is an interesting topic. There isn’t necessarily a right or wrong answer here, at least from my perspective. Docker may be too much overhead but I wouldn’t rule it out. Generally privileged Linux user accounts are sufficient for sharing most things. There are some things which are bad to share this way, memcached being the first example that comes to mind (equal access to a shared cache = ability to pollute cache, as an example).
Provided privileged access to the services you require do not cause security issues for you or your users, that is the most lightweight way to go. If the database is MySQL, for example, you just make them a DB and unique credentials to access it.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.