Interview practice question
Read-your-writes across services
Backend Engineering · Microservices · Experienced
After a user creates a post, they are redirected to a feed served by another service that has not received the event yet, so their post is missing. How do you give them read-your-writes consistency?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Feed is eventually consistent.
- Client-side optimistic insert.
- Pass version/token; wait or read from source.
- Route user's reads to source briefly.
- Keep event lag low.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.