System design · Key technologies: the tools you will actually name

Elasticsearch and the search index beside your database

A search engine answers "which documents best match these words" by precomputing an inverted index, which makes it superb at relevance and filtering and a poor place to keep the only copy of your data, so the design question is always how the index stays in step with the database that owns the truth.

22 min read Full lesson in the app Patterns: inverted-index, cdc-indexing, search-after

What you'll be able to do

Before this: picking-a-datastore, kafka-and-event-streams

Log in to read the rest of this lesson

A search engine answers "which documents best match these words" by precomputing an inverted index, which makes it superb at relevance and filtering and a poor place to keep the only copy of your data, so the design question is always how the index stays in step with the database that owns the truth. This walkthrough runs about 22 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in System design.