Hacker News new | past | comments | ask | show | jobs | submit login

Your 'atomic operation' sounds a lot like a transaction. Or am I misunderstanding?



Not really.

If you have a bunch of counters, you don't want a hot counter to require a transaction every time you want to increment a page view. I'm sure there's a solution in high end DBs, but in mysql/postgres UPDATE somecounter SET value = value + 1 typically ends up being very painful for any significant write load. With Redis and Mongo, there are "atomic" increment operations that do a +X on a given field of a list or hash that is very fast.


see twitter's Rainbird for what a production scale solution looks like. 100k writes per second, with a huge skew in which rows get hit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: