Hacker News new | ask | show | jobs
by kinos 1919 days ago
Why did you use a database instead of just creating a global map and running in memory? Sharding?
1 comments

No - different processes were reading and writing.

And once you implement a global map which is accessible from multiple processes, you might as well use an existing solution, like Redis. Or, as I've learned, pgSQL - which gave me the same performance with less moving parts (because I was already using it) when I disabled WAL.