Question

Docker or multiple data base?

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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