Sponsored Links

Kamis, 18 Januari 2018

Sponsored Links

Introduction to Apache Kafka - YouTube
src: i.ytimg.com

Apache Kafka is an open-source stream processing platform developed by the Apache Software Foundation written in Scala and Java. The project aims to provide a unified, high-throughput, low-latency platform for handling real-time data feeds. Its storage layer is essentially a "massively scalable pub/sub message queue architected as a distributed transaction log," making it highly valuable for enterprise infrastructures to process streaming data. Additionally, Kafka connects to external systems (for data import/export) via Kafka Connect and provides Kafka Streams, a Java stream processing library.

The design is heavily influenced by transaction logs.


Video Apache Kafka



History

Apache Kafka was originally developed by LinkedIn, and was subsequently open sourced in early 2011. Graduation from the Apache Incubator occurred on 23 October 2012. In November 2014, several engineers who worked on Kafka at LinkedIn created a new company named Confluent with a focus on Kafka. According to a Quora post from 2014, Jay Kreps seems to have named it after the author Franz Kafka. Kreps chose to name the system after an author because it is "a system optimized for writing", and he liked Kafka's work.


Maps Apache Kafka



Apache Kafka Architecture

Kafka stores messages which come from arbitrarily many processes called "producers". The data can thereby be partitioned in different "partitions" within different "topics". Within a partition the messages are indexed and stored together with a timestamp. Other processes called "consumers" can query messages from partitions. Kafka runs on a cluster of one or more servers and the partitions can be distributed across cluster nodes.

Apache Kafka efficiently processes the real-time and streaming data when used along with Apache Storm, Apache HBase and Apache Spark. Deployed as a cluster on multiple servers, Kafka handles its entire publish and subscribe messaging system with the help of four APIs, namely, producer API, consumer API, streams API and connector API. Its ability to deliver massive streams of message in a fault-tolerant fashion has made it replace some of the conventional messaging systems like JMS, AMQP, etc.

The major terms of Kafka's architecture are topics, records, and brokers. Topics consist of stream of records holding different information. On the other hand, Brokers are responsible for replicating the messages. There are four major APIs in Kafka:

  • Producer API - Permits the applications to publish streams of records.
  • Consumer API - Permits the application to subscribe to the topics and processes the stream of records.
  • Streams API - This API converts the input streams to output and produces the result.
  • Connector API - Executes the reusable producer and consumer APIs that can link the topics to the existing applications.

Apache Kafka - DZone - Refcardz
src: dz2cdn1.dzone.com


Kafka performance

Due to its widespread integration into enterprise-level infrastructures, monitoring Kafka performance at scale has become an increasingly important issue. Monitoring end-to-end performance requires tracking metrics from brokers, consumer, and producers, in addition to monitoring ZooKeeper which is used by Kafka for coordination among consumers. There are currently several monitoring platforms to track Kafka performance, either open-source, like LinkedIn's Burrow, or paid, like Datadog. In addition to these platforms, collecting Kafka data can also be performed using tools commonly bundled with Java, including JConsole.


Apache Kafka #1: Topic & Offset - YouTube
src: i.ytimg.com


Enterprises that use Kafka

The following is a list of notable enterprises that have used or are using Kafka:


Kafka Streams + Mesos for Highly Scalable Microservices - YouTube
src: i.ytimg.com


See also


All the Apache Streaming Projects: An Exploratory Guide - The New ...
src: storage.googleapis.com


References


What is Apache Kafka? Brief introduction - YouTube
src: i.ytimg.com


External links

  • Apache Kafka website
  • Apache Kafka presentation by Morten Kjetland

Source of the article : Wikipedia

Comments
0 Comments