Posts

Showing posts with the label Apache Kafka

Apache Kafka Vs ActiveMQ

ActiveMQ and Kafka are two different kind of Messaging System. ActiveMQ has been for long in the industry with full stability and so rich feature whereas Kafka is the new beast which bring a totally new flavour to handle the large volume of data and high throughput. Lets starts with the similarities and differencies between ActiveMQ and Apache Kafka 1) JMS : ActiveMQ is an implementation of JMS(Java Messaging Service) API whereas Apache Kafka is totally different distributed message system which uses its own protocol. 2) Performance : Message publishing speed in ActiveMQ is 300 msg/sec over  a single thread whereas Message publishing speed in Kafka is 165k  msg/sec over a single thread. 3) Message Ordering  :  Kafka ensures that the messages are received in the order in which they were sent at the partition level. JMS does not have any such contracts. 4) Persistence of Message :  Kafka brokers store the messages for a specified period of t...

Apache Kafka : Distributed Messaging System

Image
Apache Kafka is a distributed publish-subscribe messaging system which can handle a large volume of data and can send data from one point to another point. Kafka messages are persisted on the disk and replicated within the cluster to prevent data loss Kafka is a fast , scalable , distributed in nature by its design, partitioned and replicated commit log service. Benefits of using Kafka : Reliability   : Kafka is distributed, partitioned, replicated and fault tolerance. Scalability :  Kafka messaging system scales easily without down time.. Durability :  Kafka uses Distributed commit log which means messages persists on disk as fast as possible, hence it is durable.. Performance :  Kafka has high throughput for both publishing and subscribing messages. It maintains stable performance even many TB of messages are stored. In comparison to other messaging systems, Kafka has better throughput, built-in partitioning, replication and inherent fault-tol...