- You're not clever.
Distributed systems rule #1: Do not distribute the system!.At some point of scale this is often unavoidable, but be aware of the complexity that comes with a distributed system.- Do not micro optimize.
- Measure where your program spends time.
- Optimization rule #1: Reduce I/O.
- Should I use a distributed cache? Only if you are aware of the error cases and how to mitigate them!
-
A complex system that works is invariably found to have evolved from a simple system that worked. Gall's Law
Inspired by Rob Pike's 5 Rules of Programming.