Answer the question
In order to leave comments, you need to log in
What are the methods and tools for project scalability?
I have a front in React, a back in Express.
Now there are relatively few users, but we need to think about what will happen if there are more of them and the service cannot withstand the load.
In a word, you need to lay scalability in a project that does not yet require scalability, but if it does, you need to immediately increase the capabilities of the service.
I have several ideas:
1. Divide the back into components that will be located on different servers (something I don’t like)
2. Create several identical backs on different servers, and the load balancer will determine where to send. Automatically start a new server if necessary...
Maybe there are better ideas? I have no experience in this. Tell me please.
Answer the question
In order to leave comments, you need to log in
In a word, you need to put scalability into a project that does not yet require scalability, but if it does, you need to immediately increase the capabilities of the service
scale components - it will be more efficient -> because the load on the components is always not uniform, some are more loaded, some are less.
> Create several identical backs on different servers
, both options work, but you need to remember that when separating components or separating backs, they should not depend on one data source (one database), otherwise everything will again rest on the performance of one database.
To do this, you can use databases that support separation through Key-> Value (such as Kasandra), and which, in turn, are also scaled across servers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question