feat: add batch support - #18
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughBatch event processing support was added to the Commanded event handler infrastructure, introducing the Changes
Sequence Diagram(s)sequenceDiagram
participant EventStore
participant EventHandler
participant UserApp
UserApp->>EventStore: Append batch of events
EventStore->>EventHandler: Send {:events, events} message
alt Batch processing enabled
EventHandler->>EventHandler: handle_batch(events)
EventHandler->>UserApp: Send batch result/notification
EventHandler->>EventStore: ack_event for last event in batch
else Single event processing
loop For each event
EventHandler->>EventHandler: handle(event, metadata)
EventHandler->>UserApp: Send event result/notification
EventHandler->>EventStore: ack_event for event
end
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (18)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.