The Architecture of Kafka

In this lesson, we'll discuss the architecture of Kafka.

Introduction #

In the area of microservices, Kafka is an interesting option. In addition to typical features such as high throughput and low latency, Kafka can compensate for the failure of individual servers via replication and can scale with a larger number of servers.

Kafka stores the message history #

Above all, Kafka is able to store an extensive message history. Usually, MOMs aim only to deliver messages to recipients. The MOM then deletes the message because it has left the MOM’s area of responsibility, thus saving resources.

However, it also means that approaches such as event sourcing (see Events) are possible only if every microservice stores the event history itself. Kafka, on the other hand, can save records permanently. Kafka can also handle large amounts of data and can be distributed across multiple servers.

Kafka also has stream-processing capabilities. For ...