Example: Technical Structure & Live App
In this lesson, we'll look at a real live example of Kafka.
Technical structure #
The drawing above shows how the example is structured technically.
Apache httpd #
The Apache httpd distributes incoming HTTP requests. Thus, there can be multiple instances of each microservice. This is useful for showing the distribution of records to multiple consumers.
In addition, only the Apache httpd server is accessible from the outside. The other microservices can be contacted only from inside the Docker network.
Zookeeper #
Zookeeper serves to coordinate the Kafka instances and stores, information about the distribution of topics and partitions. The example uses the image at https://hub.docker.com/r/wurstmeister/zookeeper/.
Kafka instance #
The Kafka instance ensures the communication between the microservices. The order microservice sends the orders to the shipping and invoicing microservices. The example uses the Kafka image at ...