Report this

What is the reason for this report?

Docker or multiple data base?

Posted on January 23, 2019

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!

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.

thank you very much I’ll follow this suggestion.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.