Skip to content

Commit 963d9fc

Browse files
committed
(fix) read me
1 parent 45e0a4b commit 963d9fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ Next, we need to choose the type of consumer to use. We have five kinds of consu
4545
commit policy | description
4646
------ | ------------
4747
automatic commit | Commit offsets of records consumed from kafka automatically in a fixed interval.
48-
sync commit | Commit offsets synchronously only when all the consumed records has been handled.
49-
async commit | Commit offsets asynchronously when all the consumed records has been handled. If there are too many pending async commit requests or last async commit request failed, it'll switch to synchronous mode and switch back when the next synchoronous commit success.
50-
partial sync commit | Whenever there's any handled consumer records, only commit all the handled records to broker synchronously. Leave those records still handling until they are done.
51-
partial async commit | whenever there's any handled consumer records, commit all the handled records to broker asynchronously. Leave those records still handling until they are done. If there are too many pending async commit requests or last async commit request failed, it'll switch to synchronous mode and switch back when the next synchoronous commit success.
48+
sync commit | Commit offsets synchronously only when all the fetched records have been processed.
49+
async commit | Commit offsets asynchronously only when all the fetched records have been processed. If there are too many pending async commit requests or the last async commit request was failed, it'll switch to synchronous mode to commit synchronously and switch back when the next synchoronous commit success.
50+
partial sync commit | Whenever there is a processed consumer record, only those records that have already been processed are committed synchronously, leaving the ones that have not been processed yet to be committed.
51+
partial async commit | Whenever there is a processed consumer record, only those records that have already been processed are committed asynchronously, leaving the ones that have not been processed yet to be committed. If there are too many pending async commit requests or the last async commit request was failed, it'll switch to synchronous mode to commit synchronously and switch back when the next synchoronous commit success.
5252

5353
Taking sync-committing consumer as an example, you can create a consumer with a thread pool and subscribe it to a topic like this:
5454

0 commit comments

Comments
 (0)