feat(infra): add Kafka + Zookeeper to docker-compose (#468)#538
Merged
anonfedora merged 2 commits intoJun 27, 2026
Merged
Conversation
|
@Dami24-hub is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Dami24-hub Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
anonfedora
approved these changes
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Feature/issue 468 event driven architecture
Description
This Pull Request transitions the platform's core monolithic communication layer from synchronous, direct service-to-service calls to a decoupled, scalable, Event-Driven Architecture (EDA).
Given the explicit technical requirements for event replay capability over arbitrary time periods and event sourcing for critical aggregates, Apache Kafka has been chosen as the message streaming platform. The existing primitive event bus in
achievement-event-bus.tshas been deprecated and replaced with a centralized, robust streaming architecture.Key Changes
1. Infrastructure & Core Configuration
docker-compose.yml.2. Architectural Components
BaseKafkaProducerandBaseKafkaConsumerclasses. Consumer instances handle batches concurrently to maximize throughput.*.dlq) for isolation and manual intervention, preventing head-of-line blocking.3. Advanced State Management
4. Observability & Governance
Performance and Acceptance Verification
acks=alland consumers with manual commit offsets to guarantee at-least-once delivery without data loss.Related Issue
Closes #468