Click here to load reader
View
520
Download
5
Embed Size (px)
. . , . . , ? , , , ;; . .
, , , . ;;; .
.
, , . . . , TCP .
. .
FIFO , . MQ queue . 0, 1, 2 , , , , , .
, . 1 (Partitions) , . , , . .
.
. . log = - index =
, Default IO , le IO . DMA Direct memory Access CPU .
, OS , Direct Buffer IO ,
OS ,
OS , , , ,
, ...
, read() , .
,
1. read () , 2. .
JVM , .
. .
, leChannel , . ,
1. ,
,
2. ,
, ,
.
. , . , 0 . , . , , .
(Replication) . . 3 1 , 2 . . . . , .
,
.
Producers
,
.
partitioner ,
. , / .
API ,
- API .
()
.
, API .
API
, .
.
, group 1 2 , .
,
- API .
,
.
API ,
.
.
API . .. . byte , , \ ;;;;
, , , .
. . . . . . , .
Kafka has stronger ordering guarantees than a traditional messaging system, too. . A traditional queue retains messages in-order on the server, and if multiple consumers consume from the
queue then the server hands out messages in the order they are stored.
.
NSA , . . . , , , .