I interviewed at Thunder Networking Technologies (Shenzhengqiao)
Interview
Project description, why use Kafka? Deep dive in Kafka source codeKafka
1. What business pain points does this project solve by introducing Kafka?
2. What are the key performance indicators of the system that Kafka helps optimize?
3. How does Kafka integrate with other middleware or storage components in the project architecture?
4. What challenges did you encounter when applying Kafka in actual business scenarios?
5. How to ensure data consistency between upstream producers and downstream consumers in the project?
6. How does Kafka support horizontal scaling with business growth in the project?
7. What business scenarios in the project rely on Kafka's message persistence feature?
8. How to monitor and alert Kafka cluster exceptions in the project?
Why Kafka & Comparison Questions
9. Why choose Kafka instead of RabbitMQ/RocketMQ/ActiveMQ?
10. What are the differences between Kafka and traditional message queues in data reliability?
11. How does Kafka achieve high throughput compared to other MQ?
12. Why is Kafka more suitable for log collection and stream processing scenarios?
13. What are the disadvantages of Kafka that need to be compensated in the project?
14. Why does Kafka use partition + replica architecture instead of full replication?
15. Why is Kafka's sequential disk write more efficient than random I/O?
16. Why does Kafka support message replay while many MQs do not?
Kafka Source Code & Principle Questions
17. How is the overall module division of Kafka Broker source code?
18. What is the core process of Producer message sending in source code?
19. How does Kafka implement partition allocation strategy in source code?
20. What core classes are responsible for message storage in Kafka source code?
21. How does Kafka implement zero-copy in the underlying source code?
22. How does the ISR mechanism work in Kafka source code?
23. What is the source code implementation logic of Kafka leader election?
24. How does Kafka handle high concurrent write requests at the source level?
25. How is the consumer offset management implemented in source code?
26. What is the source code logic of Kafka's high watermark and LEO