Re:Making Direct Messages Reliable and Fast
by dmitriid on Saturday June 15, 2019 @05:48AM
(#20189191)
> If anybody else needs this kind of system, most GraphQL clients
Well, the client is probably the easiest and the most boring piece of the puzzle. What you do in the backend matters.
Re:Making Direct Messages Reliable and Fast
by sambal on Saturday June 15, 2019 @06:15AM
(#20189276)
What’s done in the backend matters slightly less in the thread of an article entirely concerned with the client.
https://cdn-images-1.medium.com/max/2400/1*ttu76ysGchnhH3CyT...
They have a client-side cache for the whole app that you can optimistically update, all network requests run through that, it handles rolling the updates back when responses come in, etc.
Examples in the JS ecosystem that I am familiar with include Apollo and Relay, and urql is working on this.