Skip to content

Conversation

@sabinaptas
Copy link
Collaborator

No description provided.

@sabinaptas sabinaptas marked this pull request as draft October 7, 2025 16:20
Karafka framework has a long-running server process responsible for fetching and consuming messages. Consumers should inherit from the **ApplicationConsumer**. You need to define a ```#consume``` method that will execute your business logic code against a batch of messages. Karafka fetches and consumes messages in batches by default.

Karafka fetches and consumes messages in batches by default.
### Consuming Messages in Batches
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my mistake here, it will be changed to H2

```
**Result:** The `#consume_one` method will be called for each message in the batch, allowing you to process messages individually while maintaining the benefits of Karafka's batch fetching.

### Accessing Topic Details
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, in Wiki it is H3 displayed under the Consuming Messages Topic. Is it a subsection? Or can I move it/treat it as H2 in TOC? I understood, it is a separate procedure from Consuming Messages (in batches or individually) per se.

Copy link
Collaborator Author

@sabinaptas sabinaptas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have finished the first round of the whole "Consuming Messages" chapter. Please, go through the changes and reply to my comments :-).

Copy link
Collaborator Author

@sabinaptas sabinaptas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I submit review again.

@sabinaptas sabinaptas marked this pull request as ready for review October 17, 2025 10:50
Copy link
Collaborator Author

@sabinaptas sabinaptas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mensfeld all checks are correct. Please merge these files, deploy them and let me know when to close the PR.

@mensfeld mensfeld merged commit 92b7fc2 into master Oct 22, 2025
4 checks passed
@mensfeld mensfeld deleted the Producing-and-Consuming-Messages-TW-Review branch October 22, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants