美文网首页
kafka usecase in real world

kafka usecase in real world

作者: 赐我理由在披甲上阵 | 来源:发表于2019-06-13 10:49 被阅读0次

    movieflix

    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

    image.png

    social media architecture of kafka

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

    image.png
    • format data as an event.

    User_234 liked post_123 at 3 am

    image.png
    • big data ingestion
    image.png

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


    monitoring

    image.png

    important metrics


    two types of index:

    image.png
    image.png

    advertised hostname and listeners:

    image.png

    相关文章

      网友评论

          本文标题:kafka usecase in real world

          本文链接:https://www.haomeiwen.com/subject/ttthxctx.html