Skip to content

Conversation

@edsonwade
Copy link
Owner

feat: Add Kafka producer example with different acks configurations

  • Implement ProductorDemoAcks class to demonstrate Kafka producer with acks configurations (0, 1, all).
  • Add detailed explanations and examples for each acks configuration in ProductorAcks.md.
  • Provide logging for message sending with key, partition, and offset information.
  • Include troubleshooting steps for Kafka broker leader issues.

This commit provides a comprehensive example and documentation for using Kafka producer with different acks settings, helping to understand the trade-offs between latency and message delivery guarantees.

- Implement Kafka producer with callback and sticky partitioning
- Add consumer example with offset limit
- Configure producer properties including acks, retries, linger.ms, buffer. Memory, and batch.size
- Demonstrate RoundRobinPartitioner and custom partitioner usage
- Include examples for producer compression and horizontal/vertical scaling
- Update documentation with Kafka commands for consumer offset reset, partitioners, and producer properties
feat: Add Kafka producer with key example

- Implemented a Kafka producer that sends messages with keys to ensure messages with the same key are sent to the same partition.
- Added detailed explanation and code examples in the README file.
- Included configuration for producer properties, message sending, logging, and exception handling.
- Explained round-robin and sticky partitioning techniques.
- Implement `ProductorDemoAcks` class to demonstrate Kafka producer with `acks` configurations (`0`, `1`, `all`).
- Add detailed explanations and examples for each `acks` configuration in `ProductorAcks.md`.
- Provide logging for message sending with key, partition, and offset information.
- Include troubleshooting steps for Kafka broker leader issues.

This commit provides a comprehensive example and documentation for using Kafka producer with different `acks` settings, helping to understand the trade-offs between latency and message delivery guarantees.
@edsonwade edsonwade self-assigned this Feb 18, 2025
@edsonwade edsonwade added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Feb 18, 2025
@edsonwade edsonwade merged commit a68f826 into main Feb 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant