Answer the question
In order to leave comments, you need to log in
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
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
200-800 users is nothing at all.
any architecture will do, even shitty code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question