Just Kotlin
giorgishalvashvili's profile
Giorgi Shalvashvili@giorgishalvashvili•Apr 23
1.6K

Kotlin Flows: Buffer, Conflate, and Debounce

From youtube.com•Apr 23•7m watch time

Explains how to handle backpressure in Kotlin Flows when an emitter produces values faster than a collector can process them. Covers three strategies: buffering (accumulating values up to a configurable capacity), conflation (dropping intermediate values and keeping only the latest), and debouncing (waiting for the upstream to be silent for a set duration before emitting). Practical examples include configuring buffer capacity, using operator fusion when combining buffer and flowOn, and a real-world autocomplete search scenario demonstrating debounce with a 250ms timeout.

Sort:

giorgishalvashvili's user avatar
Giorgi Shalvashvili
@giorgishalvashvili
Joined Aug 1. 2024
1.6K

Would you recommend this post?

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