Docker or multiple data base?

January 23, 2019 511 views
Databases Docker Java

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?

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.

Have another answer? Share your knowledge.