Kotlin
henrybrown's profile
Henry Brown

@henrybrown•May 02
160
Post cover image

Kotlin Flows: Buffer, Conflate, and Debounce

From dly.to•May 02•1m read time

A practical guide to handling backpressure in Kotlin Flows when producers emit values faster than consumers can process them. Covers three key strategies: buffering (accumulating values up to a configurable capacity), conflation (dropping intermediate values and keeping only the latest), and debouncing (waiting for upstream silence before emitting). Includes examples of buffer capacity configuration, operator fusion when combining buffer with flowOn, and a real-world autocomplete search scenario using a 250ms debounce timeout.

Sort:

henrybrown's user avatar
Henry Brown
@henrybrown
Joined Aug 2. 2024
160

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard