SpinTheMic
Pro

Interview practice question

Created item doesn't appear in list

System Design · APIs and Communication · Experienced

Users create an item through your API, then immediately list items and the new one is missing, because lists come from a search index. How do you fix the experience?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Search index is eventually consistent.
  • Return created item in POST response.
  • Client inserts it locally (optimistic UI).
  • Read list from primary for recent writes.
  • Or wait-for-index option.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics