---
title: "Engineering stories behind the Medium Daily Digest Algorithm: Part 2"
description: "Medium replaced the Bloom filters behind its recommendation filters (muted writers, already-read, presented 3+ times) with per-user DynamoDB queries against the source-of-truth tables, cutting filtering cost roughly 10x and simplifying maintenance."
url: "https://swe.quest/articles/engineering-stories-behind-the-medium-daily-digest-algorithm-part-2-d64641974e16e6ff"
canonical: "https://medium.engineering/engineering-stories-behind-the-medium-daily-digest-algorithm-part-2-c977ad0b134f"
source: "Medium Engineering"
published: "2025-08-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 17
tags: ["recommendation-systems","data-structures","cost-optimization","databases"]
---

# Engineering stories behind the Medium Daily Digest Algorithm: Part 2

A post on [Medium Engineering](https://swe.quest/sources/medium-eng.md), published 2025-08-28, 17 min read, Case study. Original: [https://medium.engineering/engineering-stories-behind-the-medium-daily-digest-algorithm-part-2-c977ad0b134f](https://medium.engineering/engineering-stories-behind-the-medium-daily-digest-algorithm-part-2-c977ad0b134f)

## Summary

Medium replaced the Bloom filters behind its recommendation filters (muted writers, already-read, presented 3+ times) with per-user DynamoDB queries against the source-of-truth tables, cutting filtering cost roughly 10x and simplifying maintenance. The Bloom filters had grown huge because entries can't be deleted, so unmutes couldn't be reflected, contents couldn't be inspected for debugging, and derived data drifted from the database. Fetching all muted writers per user is cheap because most users mute no one. For the presentation counter, which had been hacked together from three layered Bloom filters, a best-effort query of the most recent 5k presentations (~100ms) is acceptable because the 3-presentation limit is a soft rule.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Data structures](https://swe.quest/tags/data-structures.md) (Architecture & design)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- Bloom filters
- DynamoDB queries
- recommendation pipelines

## Keywords

Bloom filter, DynamoDB, Medium Daily Digest

## Related posts

- [Space efficient machine learning feature stores using probabilistic data structures - a benchmark](https://swe.quest/articles/space-efficient-machine-learning-feature-stores-using-probabilistic-data-be147985e009951b.md): Zalando Engineering · 2021-10-04 · Medium · 9 min read · ML platforms, Data structures, Recommendations & ranking, Machine learning
  A Bloom-filter-backed in-process feature store matched a conventional key-value feature store's click-prediction accuracy (AUC ≈0.7997 vs ≈0.80) using about 3% of the memory (470MB vs 15GB).
- [Engineering stories behind the Medium Daily Digest Algorithm: Part 4](https://swe.quest/articles/engineering-stories-behind-the-medium-daily-digest-algorithm-part-4-ad90430cb239c852.md): Medium Engineering · 2025-09-03 · Medium · 8 min read · Recommendations & ranking, Communications
  Medium fixed repetitive Daily Digest recommendations for power users by tracking which digest emails had at least one clicked story ("definitely opened", since Apple Mail Privacy Protection makes open tracking unreliable) and filtering out posts already sent in such digests.
- [DuckDB User Group Workshop on AI-Powered Review Analysis with Hugging Face](https://swe.quest/articles/duckdb-user-group-workshop-on-ai-powered-review-analysis-with-hugging-face-db5478e73c7e0e03.md): DuckDB · 2026-11-17 · Medium · 3 min read · Analytics & OLAP, LLMs, SQL, Data pipelines
  A one-afternoon workshop pipeline uses DuckDB to find Amazon appliance products whose ratings fell most in the last six months across 2.1 million reviews, then sends only the 40 most helpful recent complaints to an LLM that groups them into themes with safety issues first.
- [Timeseries indexing at scale](https://swe.quest/articles/timeseries-indexing-at-scale-cbd6b9bd5fe12d35.md): Datadog Engineering · 2024-06-28 · Medium · 20 min read · Storage engines, Search, Databases, Observability, Scaling
  Datadog replaced its timeseries index, which auto-generated materialized indexes from a log of slow queries, with an inverted index that unconditionally indexes every metric;tag pair, much like search engines map words to documents.
- [Bloom filters: the niche trick behind a 16× faster API](https://swe.quest/articles/bloom-filters-the-niche-trick-behind-a-16-faster-api-f8c936f8ee9c7bb2.md): incident.io · 2025-11-14 · Medium · 16 min read · PostgreSQL, Data structures, Performance engineering, API design
  incident.io cut P95 latency of its alert-filtering API for large organisations from 5s to 0.3s by pushing JSONB attribute filters into Postgres using bloom filters.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
