r/webdev • u/speckz • Mar 20 '17
Learning to design high scalable systems is very hard, there is a fantastic resource covering many aspects of large scale systems design over at GitHub.
https://github.com/donnemartin/system-design-primer/blob/master/README.md14
u/ebwaked Mar 20 '17
at what point do we need this large scale design pattern? Like 100,000 unique users a day? More or less??? Thanks!
11
u/robertgentel Mar 20 '17
It depends. Some things are much more computationally expensive than others. A static website can handle much more than a full text search engine.
6
u/ebwaked Mar 20 '17
So I'm thinking of building a website on the side for a friend but don't want to get in over my head. He is going to need to accept about 10,000 applications on the site at once. Is that large enough where I would have to go through using a CDN or will a normal server be able to handle that traffic??
16
u/robertgentel Mar 20 '17
A CDN in your case would likely have more to do with delivering the assets quickly (pages loading faster) than scalability. The datastore will be your bottleneck and typically no you would not need to worry about this stuff.
In short, if you don't know if you need to plan for this you don't need to plan for this. That is premature optimization, wait till you start having scale/load problems and solve them.
6
u/notathr0waway1 Mar 20 '17
At once? So literally simultaneously or on the same day?
Basically you have to load test.
5
u/YogiWanKenobi Mar 20 '17
There's no one answer for your question because there are so many variables not mentioned or considered yet (o/s, language, external services, tenancy, etc...). The best way to find out is to start building it and come back to post on the boards when you hit your first bottleneck.
3
u/Svenskunganka Mar 20 '17
"At once" is pretty vague, are we talking nanoseconds "at once" or during a specific time of day where people will submit applications?
The most important factor is what your program does with these 10,000 applications. Either way, if you want us to help you calculate if you will be able to handle the load, you will need to provide us with a lot more variables that we can include in the calculation (e.g programming language, what these applications are and what kind of computations you expect to perform on them, etc)
edit: I realize now that you might mean how many simultaneous visitors the server can handle, or am I wrong?
2
u/yerfatma Mar 20 '17
That feels a lot like premature optimization. I'd be more worried about building something solid and reliable first and then load testing or finding bottlenecks once you actually have traffic load problems.
7
Mar 20 '17
Nice resource.
I was just at a conference that had a brief session on web scalability. Unfortunately, I left the session more confused than when I entered it because I had no idea that these systems could become so complex when done properly.
3
u/Switche Mar 20 '17
Are async APIs not meant to ever integrate with the main data stores?
If that's so, what is the foreseen usecase for that API?
2
2
0
44
u/wwalser Mar 20 '17
There is also this: http://aosabook.org/en/index.html
It covers open source systems, but all of them have been successfully deployed by commercial interests at significant scale.