Rating:
TL;DR: - Recover internal state from small message deltas- Optimize the queries / the program
The writeup from the link is much (maybe overly) detailed.
I don't remember