kafka usecase in real world

movieflix

kafka usecase in real world_第1张图片
image.png
  • topic:
video play position:
  a topic that can have multiple producers;
  should be highly distributed if high volume > 30 partitions;
  choose "user_id" as a key, to make sure all my user's data in order;

recommendations
  low volume topic
  kafka streams recommendation source data from analytical training

GetTaxi

requirement

kafka usecase in real world_第2张图片
image.png

social media architecture of kafka

basically decoupled different components, we can call the model CQRS(command query responsibility segregated)

kafka usecase in real world_第3张图片
image.png
  • format data as an event.

User_234 liked post_123 at 3 am

kafka usecase in real world_第4张图片
image.png

  • big data ingestion
kafka usecase in real world_第5张图片
image.png

real time: like spark/storm
batch: hadoop/RBMS


monitoring

kafka usecase in real world_第6张图片
image.png

important metrics

kafka usecase in real world_第7张图片

two types of index:

kafka usecase in real world_第8张图片
image.png

kafka usecase in real world_第9张图片
image.png

advertised hostname and listeners:

kafka usecase in real world_第10张图片
image.png

你可能感兴趣的:(kafka usecase in real world)