Leanpub Header

Skip to main content

To be delete

An Event-Driven Alternative to Two-Tier Collector Architectures

To be delete

Modern cloud-native applications generate massive volumes of telemetry data, making observability increasingly expensive and difficult to scale. While OpenTelemetry has become the industry standard for distributed tracing, traditional tail-based sampling architectures often require stateful collector clusters with significant memory and processing overhead.

Rethinking OpenTelemetry Tail-Based Sampling explores how Event-Driven Architecture (EDA) and event mesh technologies can be used to address these challenges. Through practical examples, architectural analysis, and implementation considerations, this book examines OpenTelemetry sampling strategies and presents an alternative approach that externalizes trace buffering and sampling coordination beyond the collector layer.

Whether you are an observability engineer, platform architect, integration specialist, SRE, or cloud-native practitioner, this book provides practical guidance for designing scalable, resilient, and cost-effective distributed tracing platforms.

Interested in this book? Show your support by saying what you'd like to pay for it!

$
PDF
EPUB
WEB
APP
About

About

About the Book

Observability has become a foundational capability for modern software platforms. As organizations adopt microservices, event-driven architectures, cloud-native technologies, and AI-powered applications, the volume of telemetry data continues to grow exponentially. Distributed tracing provides critical visibility into these complex environments, but collecting and storing every trace often results in significant infrastructure, operational, and licensing costs.

OpenTelemetry has emerged as the industry standard for observability, providing a vendor-neutral framework for collecting traces, metrics, and logs. While head-based sampling offers a simple and efficient mechanism for reducing telemetry volume, tail-based sampling enables more intelligent sampling decisions by evaluating complete traces before determining whether they should be retained. However, traditional tail-based sampling implementations can introduce substantial memory requirements, state management challenges, and scalability limitations as trace volumes increase.

In Rethinking OpenTelemetry Tail-Based Sampling, Stephen S. P. Tsoi examines the strengths and limitations of existing OpenTelemetry sampling approaches and explores a different way of addressing large-scale tail-based sampling requirements. Rather than relying exclusively on stateful collector clusters, the book introduces an Event-Driven Architecture (EDA)-based implementation pattern that leverages messaging infrastructure and state stores to externalize trace buffering and sampling coordination.

Inside this book, you will learn:

  • The fundamentals of OpenTelemetry and distributed tracing
  • The relationship between traces, spans, metrics, and logs
  • Common OpenTelemetry sampling and filtering techniques
  • Head-based, tail-based, error-based, latency-based, and TraceIdRatio-based sampling strategies
  • The architecture and operational characteristics of OpenTelemetry Collectors
  • The challenges associated with traditional two-tier collector deployments
  • How Event-Driven Architecture can be applied to observability pipelines
  • Design considerations for scalable tail-based sampling implementations
  • Trade-offs between architectural flexibility, operational complexity, and cost
  • Practical guidance for selecting the right sampling strategy based on system scale and observability maturity

Rather than positioning a single solution as universally applicable, this book provides a balanced examination of multiple approaches and highlights the architectural trade-offs associated with each design. Readers will gain a deeper understanding of how to align observability architecture with business requirements, operational objectives, and technology constraints.

Written for architects, platform engineers, DevOps practitioners, site reliability engineers, integration specialists, and technical leaders, this book offers practical insights into designing observability platforms that can scale with the demands of modern distributed systems.

If you are looking to reduce telemetry costs, improve observability scalability, and rethink how tail-based sampling can be implemented in large-scale environments, this book provides a practical framework for evaluating modern observability architectures and their associated trade-offs.

Share this book

Author

About the Author

Stephen S. P. Tsoi

Stephen S. P. Tsoi is a technology leader and enterprise integration architect with over 25 years of experience in enterprise integration, messaging platforms, solution architecture, and Event-Driven Architecture (EDA).

As Deputy Executive Manager, Enterprise Integration at The Hong Kong Jockey Club, he leads enterprise-wide integration, API, messaging, and event-driven initiatives. His expertise spans enterprise architecture, distributed systems, observability, platform engineering, and technology modernization.

Stephen is TOGAF® certified and holds all available Solace Event-Driven Architecture certifications. He is passionate about building scalable, resilient systems and sharing practical insights that help organizations navigate complex technology and integration challenges.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub