Member-only story
Apache Kafka Secrets: A Guide to Avoiding Common Mistakes, Pitfalls and Detailed Example
4 min readJun 22, 2023
Apache Kafka is an open-source distributed publish-subscribe messaging system designed for real-time data stream processing, and Node.js is a server-side JavaScript. Kafka is used to securely process and transmit large-scale messages, while Node.js is used to translate these messages into a format that clients can understand and serve.
Points to Consider When Working with Apache Kafka:
- Data Persistence: Kafka stores data permanently on disk. This prevents data loss but can also quickly deplete disk space. Therefore, it’s crucial to regularly monitor your disk space and scale it as necessary.
- Number of Partitions: When dividing your topics into partitions, carefully choose the number of partitions. Too many partitions can degrade performance.
- Security: One of Kafka’s default settings is to operate without any security. However, you can increase the level of security by altering these settings to include SSL/TLS and SASL.
- Consumer Offsets: If you prefer to commit offsets manually, bear in mind that this process can be complex and potentially lead to errors.
Unreached Messages: