# How Netflix optimized its petabyte-scale logging system with ClickHouse

DevFeed: [How Netflix optimized its petabyte-scale logging system with ClickHouse](<https://devfeed.tech/articles/how-netflix-optimized-its-petabyte-scale-logging-system-with-clickhouse-5442.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/netflix-petabyte-scale-logging>)

Author: ClickHouse

Published: 2025-10-23T00:00:00Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [log management](<https://devfeed.tech/topics/log-management.md>), [Netflix](<https://devfeed.tech/topics/netflix.md>), [Microservice](<https://devfeed.tech/topics/microservice.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>)

Tags: [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [netflix](<https://devfeed.tech/tags/netflix.md>), [scale](<https://devfeed.tech/tags/scale.md>), [software](<https://devfeed.tech/tags/software.md>), [speed](<https://devfeed.tech/tags/speed.md>), [storage](<https://devfeed.tech/tags/storage.md>)

## AI overview

This article explains how Netflix built and optimized a petabyte-scale logging system using ClickHouse. It describes an ingestion architecture spanning microservices, sidecars, Amazon S3, Amazon Kinesis, and a central routing application, along with generated lexers, custom protocol serialization, and sharded tag maps that enable high-throughput ingestion and fast interactive queries.

## Source excerpt

"To make our logging system work, we had to make a lot of choices. The key is how you simplify things in order to do the least amount of work." Daniel Muino, Software Engineer