E
E
Eugene2021-12-17 13:08:18
PHP
Eugene, 2021-12-17 13:08:18

Where can I read about the correct organization of the server and load distribution (EN / RUS)?

There is such a stack. Docker ( Swarm) + PHP + Redis (Cache + Sessions) + Postgres (Work on the same server) + Queues (DB + Redis)
To distribute the load over PHP, they made their own replicas of the PHP-FPM container

But I want to read a more correct project architecture for 200- 800 users (Moving the database to a separate server, tips, etc.) Without microservice architecture, because the project is roughly speaking a monolith

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2021-12-17
@evgen9586

Yes, you don’t need to read much
0) with your load, you can run this whole thing on a laptop at home, and it will handle it
1) wrap the application with metrics (grafana, etc.)
2) from time to time look where the bottlenecks are
3) refactor this code or take it out into a separate service

N
Nikolay Savelyev, 2021-12-18
@AgentSmith

200-800 users is nothing at all.
any architecture will do, even shitty code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question