AiTeky Original Interactive Learning & Practice Intermediate
Time-series, search and analytics stores: rollups, inverted indexes and retention
Roll millions of readings up into minutes without hiding spikes, build the inverted index behind text search and rank results, see how tags multiply the number of series, and design the hot, warm and cold tiers of a log platform on a budget.
Some data is not a table of things but a stream of events in time: a server's CPU every ten seconds, a log line for every request, a sensor reading every minute. It arrives constantly, is rarely changed, is mostly asked about in terms of time ("last hour", "this week versus last"), and quickly becomes too big to keep forever. Stores built for this (time-series databases) and for searching text in it (search engines) make different choices from a normal table.
You build the main ideas in plain Python so that each one is visible: rollups, inverted indexes, tag cardinality and retention tiers. Products differ in details, so check each one's documentation. All figures, volumes and prices are made up.
- Learn lessons explain one idea at a time and let you run it.
- Industry ready lessons decide and justify, and end with interview questions.
You need basic Python: lists, dictionaries and functions.
- ▶ Run code in your browser. Nothing to install
- ✓ Exercises that check themselves
- 📖 Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 30 min Free sample 🔒 AiTeky Pass Rollups without hiding the spike Generate a day of CPU readings with two short spikes, roll them up into minute and hour buckets, see that averages hide the spike while a maximum or a percentile keeps it, and measure how much storage each rollup saves.
- 02 35 min 🔒 AiTeky Pass The inverted index: how text search finds a word in a million lines Build the index behind a search engine, a map from each word to the lines that contain it, answer AND and OR queries by combining those lists, see why a stop-word and a typo change the results, and rank matches with TF-IDF so rare words count for more.
- 03 30 min 🔒 AiTeky Pass Tags and the cardinality trap Label each metric with tags such as service, region and user, count how the number of separate time series multiplies with every tag, see why one tag with millions of values (a user id) breaks a metrics store, and choose which details belong in tags and which in logs.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.

