Making Direct Messages Reliable and Fast
instagram-engineering.com
Making Direct Messages Reliable and Fast
1–10 of 26 posts
Re: Making Direct Messages Reliable and Fast
#2Re: Making Direct Messages Reliable and Fast
#3Thank you!
Re: Making Direct Messages Reliable and Fast
#4Re: Making Direct Messages Reliable and Fast
#5They 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.
Re: Making Direct Messages Reliable and Fast
#6Re: Making Direct Messages Reliable and Fast
#7Great write up! I have a few questions if anyone familiar with the development can share: 1. How do you handle trust-buster issue: users see a message go through only to check back an hour later that it’s not. 2. For this to work, all components must adhere to this same pattern. How did you handle the migration plan? 3. Seems like something that can work across platform. Any thoughts on c++ layer between android and…
Re: Making Direct Messages Reliable and Fast
#8Re: Making Direct Messages Reliable and Fast
#9Even while being a part of the industry, it is amazing how much technology it takes for things to work seamlessly, and also how many gotchas there are in the way
Re: Making Direct Messages Reliable and Fast
#10If anybody else needs this kind of system, most GraphQL clients (at least in the JavaScript ecosystem) handle all of this out of the box or can be extended to work this way with minimal effort. 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…
Well, the client is probably the easiest and the most boring piece of the puzzle. What you do in the backend matters.