Apache Kafka اسئلة واجوبة المقابلات
سؤال 6. Is it possible to use Kafka without ZooKeeper?
No. It is impossible to bypass Zookeeper and connect directly to the Kafka server. If somehow, ZooKeeper is down, then it is impossible to service any client request.
سؤال 7. What do you know about Partition in Kafka?
In every Kafka broker, there are few partitions available. And, here each partition in Kafka can be either a leader or a replica of a topic.
سؤال 8. Why is Kafka technology significant to use?
There are some advantages of Kafka, which makes it significant to use:
- High-throughput: We do not need any large hardware in Kafka, because it is capable of handling high-velocity and high-volume data. Moreover, it can also support message throughput of thousands of messages per second.
- Low Latency: Kafka can easily handle these messages with the very low latency of the range of milliseconds, demanded by most of the new use cases.
- Fault-Tolerant: Kafka is resistant to node/machine failure within a cluster.
- Durability: As Kafka supports messages replication, so, messages are never lost. It is one of the reasons behind durability.
- Scalability: Kafka can be scaled-out, without incurring any downtime on the fly by adding additional nodes.
سؤال 9. What are main APIs of Kafka?
- Producer API
- Consumer API
- Streams API
- Connector API
سؤال 10. What are consumers or users?
Mainly, Kafka Consumer subscribes to a topic(s), and also reads and processes messages from the topic(s). Moreover, with a consumer group name, Consumers label themselves.
الاكثر فائدة حسب تقييم المستخدمين:
- Explain the concept of Leader and Follower.
- Enlist the several components in Kafka.
- What are main APIs of Kafka?