Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 670 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 670 Bytes

Buffer Oriented Data Consume Component

Introduction

when we have some business need to query some original data from db, and those data needs to be split to many parts, each part's amount will less than or equals to the original data amount.
but in some situation we still want to consume each split parts until their data amount accumulated to the same amount as original, so we need some places to accumulate these data, and we name them data buffer, when they are accumulated to the amount we want, notify the listener or consumer to consume them.

Design

this component architecture is based on producer-consumer model and refer the epoll model.