3 ms·
Here's a few very rough tips: 1) Keep things as simple as possible. That means, for example, try and avoid database joins where-ever you can. Doing that would
by nl 16y ago
Here's a few very rough tips:
1) Keep things as simple as possible. That means, for example, try and avoid database joins where-ever you can. Doing that would mean that in the future it's much easier to shard your databases and/or move to a different (eg, different database or NoSQL) solution.
2) Keep things stateless. State is always hard to scale.
3) Become an expert in tuning your database. Learn how to analyze queries and to create sensible indexes.