Question

Docker or multiple data base?

Posted January 23, 2019 661 views
Docker Java Ubuntu 16.04 Databases

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?

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.

2 answers

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

thank you very much
I’ll follow this suggestion.

Submit an Answer