7 points · by Frocer · 18y ago · 3 comments
Given that, and as we are growing about 25% every month. I am just curious on what kind of scaling issue we should be worried about? Are there any best practices in both back-end / database design to accommodate future scaling issues?
I read database performance is usually the bottleneck for most web apps -- and since our matching algorithm does hit the DB pretty hard, what kind of things I could do to improve DB performance and scale it accordingly (besides the obvious, e.g. caching and index).
Thanks for any advice!
It will let you scale the work over many nodes in a fairly linear fashion.
You might not even have to go that route if you properly shard your data among your computers. If you store user profiles based on locality or the like, the work is guaranteed to be local. Also, you can try segmenting your users based on general factors that group them (a course version of your matching algorithm) to preserve locality.
b) Can you pre-process some of the queries and make the data available to the algorithm in a BDb or some such?
c) Can you make your heavier components into independent services?
d) You know what they say about premature optimization... :)
HTH.
Hope this helps.