News for hackers. Stuff that matters.
Re:RethinkDB, SageMath, Andreessen-Horowitz, Basecamp and Op... by tlarkworthy on Monday October 10, 2016 @11:23AM (#12677560)
Viewing all posts by a user is solved with classic denormalization. You maintain a separate index of post by user and do two writes per chat msg. It's a case where a user has no incentive not do the second write so it be fine to implement clientside. If however it was business critical, you would have a server side process listen to all chat messages and write the user to message index with the admin account. That index would essentially be eventually consistent.

There are no comments on this comment yet.