zoukankan      html  css  js  c++  java
  • [SAA + SAP] 22. Kinesis & AWS MQ

    SAA

    • Shared 2 MB/sec, all shards shared 2MB/s
    • Enhanced: Per shard 2MB/sec

    • Max retiention 365 days
    • Can replay data
    • same partition goes to same shard

    • Serverless
    • Near real time

    • Each record 1MB max
    • S3 backup
    • Destionations: S3, Redshift, ElasticSearch

    • Stream can be replayed
    • Stream is realtime
    • Firehose can do transformation using Lambda

    • For SQS, use GroupId in order to group message together

    • Same patition key goes to same shard

    Kinesis: max number of consumer = shard number

    SISO: 100 GroupID = 100 consumers

    • STOMP, AMQP, MQTT protocols
    • Migrating application to cloud
    • Has Failover

    • Using EFS as storage

    SAP

    • Kinesis data is automatically replicated synchronously to 3 AZ

    • Order at Shard level
    • You can merge shard / reshard

    • Producers
      • KPL for C++, Java
      • Kinesis Agent: can write to Data Stream and Kinesis Data Firehose
    • Consumers
      • KCL: Checkpoint, coordinated reads write to DynamoDB

    • You can put Source Records into S3
    • You can put transformation failures job into S3
    • You can put Delivery Failures job into S3

    • FIrehose is near real time because it has buffer
    • Max size for buffer is 32 MB, once reach that will flush buffer
    • Max time is 1 min
    • Buffer sizse can be automaticlly increase to increase throughput
    • If you need real-time flush, use Data streams with Lambda

  • 相关阅读:
    Python3 collections模块的使用
    基于python的分治法和例题
    docker容器间通信 (共用宿主机)
    HTML之form表单ENCTYPE属性解析
    搭建基于码云gitee平台代码自动部署
    centos7下docker搭建nginx+phpfpm环境
    mysql主从配置
    centos7升级自带mariadb
    linux下安装docker
    centos7安装postgreSql11
  • 原文地址:https://www.cnblogs.com/Answer1215/p/15110882.html
Copyright © 2011-2022 走看看