Skip to content

Commit

Permalink
Add flow diagram producer->buffer->consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Nov 4, 2023
1 parent be687bd commit 5ca256d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@

`bounded-queue` helps solves the [producer–consumer problem](https://en.wikipedia.org/wiki/Producer%E2%80%93consumer_problem).

```mermaid
graph LR;
P(Producer);
B[bounded-queue];
C(Consumer);
P-- batched item -->B;
B-- batched item -->C;
style B fill:#99E,stroke:#333
```
The `bounded-queue` allows the producer and consumer to operate in

## Introduction

Imagine you have to read records from a database and write those to another database.
Expand Down

0 comments on commit 5ca256d

Please sign in to comment.