Free Book

How Session Replay Service Works: Our Free 200-Page Book

Session replay is everywhere, yet almost nobody outside the teams that build it understands what happens between a user's click and a pixel-perfect playback. We wrote the book we kept wishing existed: about 200 pages that walk the full architecture of a session replay service — recording, ingestion, storage, processing, replay, and operations — grounded in LogNroll's real source code, with a small bookstore's story woven through every chapter. Free in HTML, PDF, and EPUB.

TL;DR

LogNroll has published How Session Replay Service Works, a free ~200-page technical book about building and running a session replay platform. It follows a single session from the browser through the whole system — recorder SDK, receiver gateway, message bus, archive, session processor, and replay player — each stage explained against real LogNroll code. Along the way, Candlewood Books, a small online bookstore that cannot see its customers, learns why every layer of that pipeline exists. First edition, September 2026, licensed CC BY 4.0. Free in HTML, PDF, and EPUB.

8 min read

LogNroll Team

Product & Analytics

This announcement covers the first edition of How Session Replay Service Works, published by the LogNroll team in September 2026 under a CC BY 4.0 license. The book is free — we would rather it reach every engineer who works with replay than sit behind a paywall.

Why we wrote a book

Session replay has quietly become a standard feature of product analytics. Watch a real user's session, spot where they hesitated, replay the exact moment a checkout broke — the pitch is familiar, and thousands of teams now run replay in production. But here is the strange part: almost all of those teams only ever see the player. The thin slice of the system that renders a session back to a human.

Everything underneath is at least as interesting. A recorder that captures every click, input, navigation, and network response without freezing the page. A wire format compact enough to ship thousands of events per session. Transport that survives a user closing their laptop mid-upload. A receiver that ingests a firehose without dropping sessions. A bus that decouples intake from storage. An archiver that moves finished sessions to cheap object storage. A processor that turns raw events into errors, heatmaps, and scroll patterns. And, at the end, a player that reassembles the whole thing faithfully enough that watching feels like being there.

Most teams will never need to build that pipeline themselves — which is exactly why we wrote the book. When a tool is this widely used and this thinly understood, the whole category suffers: buyers compare dashboards instead of architectures, engineers trust replays they cannot reason about, and teams that do build replay start from scratch. Writing down how a real system works — trade-offs, failure modes, and all — raises the bar for everyone, including us.

What's inside

The book is 21 chapters across six parts, plus five appendices. Each part follows one stage of the pipeline, in the order a session actually travels:

Part One

The Why and the World

What session replay is and why it matters, the opening of the Candlewood Books story, and the anatomy of a session: events, metadata, and the timeline that ties them into something watchable.

Part Two

Recording

The recorder SDK: capturing every event type from clicks to network calls, the protobuf wire format, privacy and masking that run by default, and batching and transport that survive flaky connections.

Part Three

Ingestion, Bus and Storage

The receiver gateway, NATS JetStream as the message bus, the archiving worker that moves sessions to object storage, and the storage lifecycle from ACTIVE to IDLE to FINISHED to REMOVED.

Part Four

Making Sessions Useful

The session processor that turns raw events into errors, heatmaps, and scroll heat, plus the background jobs that power uptime checks and TLS certificate monitoring.

Part Five

Replay and the Product

The player API that streams a session back, the replay player itself, and the analytics product that sits on top of the same recorded data.

Part Six

Running It for Real

Operating a replay service in production: reliability, the performance and cost math of recording at scale, future improvements, and the build-or-buy question in the epilogue.

The appendices are reference material rather than narrative — the protobuf schema, the storage layer, the configuration reference, a glossary of replay terms, and further reading for every part:

Five appendices for the working engineer

Protobuf referenceStorage referenceConfiguration referenceGlossaryFurther reading

The story thread: Candlewood Books

Threaded through all six parts is the story of Candlewood Books, a small online bookstore that has always prided itself on knowing its customers. One Tuesday the checkout starts failing for a handful of shoppers, and the store's biggest wholesale client threatens to take its business elsewhere if the problem is not found fast. Candlewood has error logs and server metrics, but the failing users never log what they felt: the button that did nothing, the form that silently refused, the purchase path that worked for some browsers and broke for others.

As each part of the book introduces a piece of the platform, it also shows why that piece exists for Candlewood: the masking rule that keeps a card number out of the recording, the retry that saves a session when the network dips, the receiver that never drops a batch, the processor that turns a handful of broken checkouts into a signal the whole company can act on.

A note on the fiction

Candlewood Books is fictional, and the book says so plainly. But the failures it meets are not invented — they are patterns we have watched real teams hit, compressed into one store's week.

Free, in every format

The entire book is free — no account, no email gate, no paywall. Read it in the browser, download the PDF for offline reading, or load the EPUB into the reader you already carry. Pick a format:

The book is licensed CC BY 4.0, which means you are free to share it, quote from it, print it, and build on it — as long as you credit LogNroll. If it helps one team, send it to the next one.

Where it comes from

This is not a marketing document styled as a book. It was written from LogNroll's actual source code, and the code is the point. When the book says the recorder batches events by size and by time before sending them, that is the code path running in production today. When it walks through the protobuf wire format, you are reading the schema the receiver validates events against.

Real anchors from the source tree

  • Recorder constants: the size and time thresholds that decide when a session’s events leave the browser
  • The protobuf schema that defines every event the receiver accepts
  • Worker lock patterns that keep background jobs from running twice
  • Retention jobs that walk sessions through the storage lifecycle

That honesty extends to the roadmap. Chapter 20 is an honest look at where the platform goes next — what is being improved, what is being reconsidered, and what we know we do not know yet. Most writing about systems happens after the fact, once the rough edges have been sanded down. We wrote this book while the system is still being built, so the rough edges are visible too. We think that makes it more useful, not less.

Start with Chapter 1 — it's free

No sign-up, no paywall: the full book is one click away, and the Candlewood Books story starts on page one. If the internals give you ideas about your own product, LogNroll records sessions the way the book describes — and you can try the whole thing free in a few minutes.