I'm wondering is there any good resource with a clear explanation of how like/dislike buttons are actually implemented in modern distributed systems like Instagram/Twitter?
I.e. we can assume that such metadata (name, size, resolution, likes/dislikes) is stored in RDBMS.
How to make it faster without the necessity of instant SQL insert on every like?
Maybe we can put this info into the cache and then start a background thread for the actual insert? Following the "write-back" cache type