Know About Apache Kafka

Know About Apache Kafka

All you need to know about kafka before start learning

·

2 min read

Hello, guys, I am here to explain to you what Kafka is. In this quick overview, you will learn what kafka is and what problem it actually solving..

We have to take a problem statement before understanding it, it would be a great way to explain to you what Kafka is:

We are taking the example of Zomato, In the tomato there is a feature of live location sharing in this feature you get the live location of the rider where he is accordingly it simply calculates the time how this mechanism works we have to take an ever second data from the user and there should be one function that has to call to save that data into database ad after that app will fetch the data from the database and show you, the problem in this case that throughput of the database is not so much high in this scenario where we are saving data every second database will crash.

To solve this problem Kafka comes into the picture what Kafka does, the throughput of Kafka is very high it can manage millions of requests in a single sec unlike databases which can do this if you are thinking this way so we can just replace the database with Kafka it can not because Kafka store the information in a quick way but can store it in just like database done, so solving this problem we use Kafka and database parallelly, we can use Kafka as a middle man just shown into the figure.

Just shown in the figure what Kafka actually does is it takes the producers to request in a very quick way because throughput is very high it takes all the producer's data in a quick way and saves it in a database in bulk so the problem of requesting database in every ms will solved by this and the user will get the information at the same time also. I am leaving some resources that will help you to learn further about Kafka.

Video you can refer.