Interview practice question
Keeping a search index in sync with a database
Data Engineering · System Design · Beginner
A product catalog lives in Postgres, and the search team needs it in Elasticsearch or OpenSearch, updated within minutes. How do you design it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- CDC from Postgres to a stream.
- Consumer transforms rows into search documents.
- Upsert documents by ID; handle deletes.
- Full reindex capability for mapping changes.
- Monitor lag and document counts.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.