S
S
S10LI2022-01-19 15:41:21
Docker
S10LI, 2022-01-19 15:41:21

What is the best way to use Docker?

Let's say I have several web applications
I have 2 options how to deploy them

Example 1.

Nginx listening on external ports 80, 443 and proxying requests for

MySQL
Redis

applications Application 1
Application 2
Application n

That is, for each application, a common MySQL, a common Redis

Example 2.

Nginx listening on external ports 80, 443 and proxying requests for applications

Application 1 (App + MySQL + Redis)
Application 2 (App + MySQL + Redis)
Application n (App + MySQL + Redis)

That is, here each application already has its own isolated DB

According to my logic, when they are isolated from each other, it is better
but I'm wondering how much it will affect performance?

Unfortunately, I have not seen examples of working systems with a large number of applications,
I would like to know who implements this in their own way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2022-01-19
@dimonchik2013

there are no miracles - either convenience or performance,
no one will do it for you - you can take this and that and load
conference numbers from 20%, but I have
n’t seen all this synthetically in practice for more than 4 divisions, and these are not business services, but just appendages , low-visited,
usually docker is used, but it has exactly one set of applications

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question