• 2. APIS官网剖析(博主推荐)


    不多说,直接上干货!

      一切来源于官网

    http://kafka.apache.org/documentation/

    2. APIS

    2、APIS
    Apache Kafka引入一个新的java客户端(在org.apache.kafka.clients 包中),替代老的Scala客户端,
    但是为了兼容,将会共存一段时间。
    为了减少依赖,这些客户端都有一个独立的jar,而旧的Scala客户端继续与服务端保留在同个包下。
    Kafka includes four core apis:
    1. The Producer API allows applications to send streams of data to topics in the Kafka cluster.
    2. The Consumer API allows applications to read streams of data from topics in the Kafka cluster.
    3. The Streams API allows transforming streams of data from input topics to output topics.
    4. The Connect API allows implementing connectors that continually pull from some source system or application into Kafka or push from Kafka into some sink system or application.
    Kafka有4个核心API:
      1、Producer API 允许应用程序发送数据流到kafka集群中的topic。
      2、Consumer API 允许应用程序从kafka集群的topic中读取数据流。
      3、Streams API 允许从输入topic转换数据流到输出topic。
      4、Connect API 通过实现连接器(connector),不断地从一些源系统或应用程序中拉取数据到kafka,或从kafka提交数据到宿系统(sink system)或应用程序。
      Kafka exposes all its functionality over a language independent protocol which has clients available in many programming languages. However only the Java clients are maintained as part of the main Kafka project, the others are available as independent open source projects. A list of non-Java clients is available here.
    kafka公开了其所有的功能协议,与语言无关。只有java客户端作为kafka项目的一部分进行维护,其他的作为开源的项目提供,这里提供了非java客户端的列表。
    https://cwiki.apache.org/confluence/display/KAFKA/Clients
     
     
     
  • 相关阅读:
    类的加载与ClassLoader的理解
    反射:获取Class 类的实例(四种方法)
    磁盘调度算法
    死锁检测算法
    银行家算法
    最低松弛度调度算法模拟
    多级反馈队列调度算法
    内存中:请求调页存储管理方式的模拟
    内存的动态分区分配方式的模拟
    “短进程优先”调度算法
  • 原文地址:https://www.cnblogs.com/zlslch/p/6767527.html
Copyright © 2020-2023  润新知