Amazon KCL 的 Python 库 amazon-kinesis-client-python

码农软件 · 软件分类 · 常用工具包 · 2019-08-17 10:41:37

软件介绍

amazon-kinesis-client-python 提供了一个到 Amazon Kinesis Client Library(KCL)接口,它是 Amazon KCL for Java 的一部分。开发者可以用 Amazon KCL 建立可处理大规模流数据的分布式应用程序。Amazon KCL 照顾了很多与分布式计算相关的复杂任务。这个接口管理着 MultiLangDaemon 的交互,所以开发者可以专注于实现他们可执行的记录处理器。

示例代码:

    #!env python
    from amazon_kclpy import kcl    import json, base64
    class RecordProcessor(kcl.RecordProcessorBase):
            def initialize(self, shard_id):
            pass

        def process_records(self, records, checkpointer):
            pass

        def shutdown(self, checkpointer, reason):
            pass

    if __name__ == "__main__":
        kclprocess = kcl.KCLProcess(RecordProcessor())
        kclprocess.run()


本文地址:https://www.codercto.com/soft/d/12551.html

Approximation Algorithms

Approximation Algorithms

Vijay V. Vazirani / Springer / 2001-07-02 / USD 54.95

'This book covers the dominant theoretical approaches to the approximate solution of hard combinatorial optimization and enumeration problems. It contains elegant combinatorial theory, useful and inte......一起来看看 《Approximation Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具