EP92: Top 5 Kafka use cases

This week’s system design refresher:


Top 5 Kafka use cases

Kafka was originally built for massive log processing. It retains messages until expiration and lets consumers pull messages at their own pace.

No alt text provided for this image

Let’s review the popular Kafka use cases.

Over to you: Do you have any other Kafka use cases to share?


ByteByteGo Newsletter is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.


What is OSI Model?

How is data sent over the internet? What does that have to do with the OSI model? How does TCP/IP fit into this?

graphical user interface, application

7 Layers in the OSI model are:

  1. Physical Layer

  2. Data Link Layer

  3. Network Layer

  4. Transport Layer

  5. Session Layer

  6. Presentation Layer

  7. Application Layer


Logging, Tracing, Metrics

Logging, tracing and metrics are 3 pillars of system observability. The diagram below shows their definitions and typical architectures.

No alt text provided for this image

Over to you: Which tools have you used for system monitoring?


Top 4 Kubernetes Service Types in one diagram

The diagram below shows 4 ways to expose a Service.

No alt text provided for this image

In Kubernetes, a Service is a method for exposing a network application in the cluster. We use a Service to make that set of Pods available on the network so that users can interact with it.

There are 4 types of Kubernetes services: ClusterIP, NodePort, LoadBalancer and ExternalName. The “type” property in the Service's specification determines how the service is exposed to the network.