Leanpub Header

Skip to main content

Apache Fluss: A Practical Guide

Building an Order Pipeline with Flink SQL

Apache Fluss: A Practical Guide
This book is 100% completeLast updated on 2026-12-03

What happens when a payment arrives before the event that created the order? Build an order pipeline with Apache Fluss and Flink SQL, then trace what readers see as events arrive late, jobs restart, and the lake catches up.

Minimum price

$7.99

$12.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
About

About

About the Book

A customer has paid for an order, but the event that created it arrives after the payment event. What will the support agent see on screen? Where can a data engineer look to explain how the order reached that state?

In Apache Fluss: A Practical Guide, you build an order pipeline with Apache Fluss 1.0 and Flink SQL. You write events to a Log Table, maintain one current row per order in a Primary Key Table, and send events out of order to see which update wins. Then you change a customer’s tier and run the same lookup with and without a cache. When a Flink job restarts from a checkpoint, you trace which events it reads again and check the resulting rows.

The same orders give you a way to investigate storage and operations. You delete an order and inspect the history that remains. You pause tiering to Apache Paimon, record a payment, and compare what a lake reader sees with what a Fluss query returns. In the final labs, you watch the backlog clear in Grafana, restart a TabletServer on its existing volume, and compare repeated load tests to decide what you would need to verify before piloting the pipeline.

This book is for data engineers who know SQL and the basics of Flink. The downloadable examples match the edition, with Docker Compose setup instructions for Colima on macOS and Ubuntu under WSL 2 on Windows.

Author

About the Author

Jungwook Song

Jungwook Song holds a PhD in computer engineering. He has helped companies including Hyundai Motor Company and KT adopt Kafka, build clusters, and troubleshoot deployments. He has spoken about Kafka operations at Kafka Summit London and Current and taught Kafka on Kubernetes at Fast Campus.

Contents

Table of Contents

  • Copyright
  • Preface
  • How to Use This Book
  • Setting Up Your Lab Environment
  • Part 1. Your First Order Pipeline
    • Chapter 1. Where Should You Store Order History and Current State?
    • Chapter 2. Writing and Reading Order History and Current State
    • Chapter 3. Building Current Order State from Events
  • Part 2. Results and Recovery
    • Chapter 4. How Fresh Is the Customer Data in a Lookup?
    • Chapter 5. Recovering SQL State and the Source Position from a Checkpoint
  • Part 3. Storage and Retention
    • Chapter 6. Locating Orders by Date and Key
    • Chapter 7. What Remains After You Delete an Order?
  • Part 4. Remote Logs and the Lakehouse
    • Chapter 8. Reading Historical Logs After the Local Copy Is Gone
    • Chapter 9. Reading Lake Rows Together with the Latest Changes
  • Part 5. Operations and Adoption
    • Chapter 10. Observing Tiering Lag and Checking Deployment Assumptions
    • Chapter 11. Reading Stored Orders After a TabletServer Restart
    • Chapter 12. Comparing Load Tests and Deciding What to Pilot
  • Topic Index
  • References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

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