AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Fast memory for busy programs: remembering answers, passing messages and doing many steps as one

Use a fast in-memory store the way busy web programs do: remember answers so the slow database is asked less, pass messages and tasks between programs without losing them, and make several steps happen as one so that two users never cause a mistake.

A busy web program asks the same questions over and over, hands work from one part to another, and has many users changing the same numbers at the same moment. A small store that lives in memory and answers in a fraction of a millisecond is built for exactly these jobs. This course follows a developer at an online shop as the sales season approaches: pages must load quickly, orders must reach the billing program without being lost, and the last item in stock must never be sold twice.

The Python code in each lesson runs in your browser. It is a small imitation of Redis with the same ideas and the same shape of command and reply, so the real commands are easy to follow when you type them; the real commands are shown next to it. All names and numbers 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.

Take a first course on databases before this one if terms such as query or table are new.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min 🔒 AiTeky Pass Key-value stores and where Redis fits Learn the handful of data shapes a Redis-style store offers, make values expire on their own, put a short-lived copy of slow answers in front of a database and measure the gain, build a leaderboard, and see what happens when memory fills and old keys are pushed out.
  2. 02 30 min 🔒 AiTeky Pass Pub/sub, streams and simple job queues Send messages between programs with publish and subscribe and see why a late listener misses them, keep messages in a stream that groups of workers share and acknowledge, recover work from a worker that crashed, and build a simple job queue that does not lose a job when a worker dies.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass Transactions, Lua scripts and pipelines See how two shoppers can both buy the last item when a program checks and then changes, then fix it with an atomic script, group commands into a transaction, use WATCH to back off when a key changed, and use pipelining to cut the cost of many round trips. Ends with interview questions.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in