zoukankan      html  css  js  c++  java
  • [AWS DA Guru] Kinesis

    Overview

    Kinesis Streams

    Streaming data and video in real-time

    Kinesis Data Firehose

    Data analytics with BI tools

    Kinesis Data Analytics

    Real-time data analytics with SQL

    Kinesis Streams

    • Has Producers and Consumers
    • Has Shards
    • Has Retention period

    Kinesis Shard

    The data capacity of the stream is determined by the number of shards. If the data rate increase, you can increase capacity on your stream by increase the number of shards.

    • Kinesis streams are made up of shards
    • Each shared is a sequence of one or more data recods and provides a fixed unit of capacity
    • 5 read pre second. Max total read rate is 2 MB per second
    • 1000 writes per second. Max total write rate is 1 MB per second

    Kinesis Firehose

    • No shards
    • No consumers
    • Using existing BI tools
    • Store data

    Kinesis Data Analytsis

    • Real-time
    • SQL

    Kinesis Client Library

    • The KCL ensures that for every shared there is a recod processor.
    • If you have only one consumter, the KCL will create all the recod processors on single consumer.
    • If you have two consumers it will load balance and create half the processors on one instance and half on another.

    Scaling Out Consumers

    • With KCL, the number of instances does not exceed the number of shards
    • You never need multiple instances to handle the processing load of one shard.
    • However, one worker can process multiple shards.
    • It's fine that number of shards exceeds the number of instances.
    • Reshard, doesn't mean need more instances.
    • Instead, CPU utilisation is what should drive the quantity of consumer instances you have, NOT the number of shards in your Kinesis stream.
    • Using Auto Scaling group, and base scaling decision on CPU load on your consumers.

  • 相关阅读:
    Spring@Profile注解
    day 32 子进程的开启 及其用法
    day 31 udp 协议SOCK_DGRAM
    day 30 客户端获取cmd 命令的步骤
    day 29 socket 理论
    day 29 socket 初级版
    有关 组合 继承
    day 27 多态 接口 类方法 静态方法 hashlib 摘要算法模块
    新式类和经典类的区别
    day 28 hasattr getattr serattr delattr 和带__内置__ 类的内置方法
  • 原文地址:https://www.cnblogs.com/Answer1215/p/14732642.html
Copyright © 2011-2022 走看看