Skip to content

Homework 5#4

Merged
async-human merged 4 commits intomainfrom
homework-5
Jan 30, 2026
Merged

Homework 5#4
async-human merged 4 commits intomainfrom
homework-5

Conversation

@async-human
Copy link
Copy Markdown
Owner

No description provided.

Introduces Kafka and Kafka UI services via docker-compose for event-driven communication. The order service now publishes `OrderPaid` events to Kafka after successful payment. This includes a new generic Kafka consumer and producer framework in `platform/pkg/kafka`, along with necessary configuration updates and environment variables for Kafka.
The new `assembly` service consumes `order.paid` events, simulates an
assembly process, and then produces `order.assembled` events.

The `order` service now includes an `ASSEMBLED` status and a repository
method to update an order's status. Its consumer, upon processing an
`order.paid` event, now updates the order's status to `ASSEMBLED` in
the database. Additionally, the `order` service's Kafka topic
configurations were adjusted for consistency, and the consumer now
correctly references its own topic.

Environment configurations have been updated to include settings for the
new `assembly` service and to align Kafka topic names across services.
Implements a new notification microservice responsible for sending user notifications.
- Consumes `order.paid` and `order.assembled` Kafka events.
- Sends Telegram notifications for order status updates.
- Includes new configuration files and environment variables for deployment.
- Integrates Telegram bot and Kafka consumer services.
Reordered imports for consistency across all services and removed trailing newlines. Consolidated Kafka consumer configuration logic in the `notification` service by introducing a generic `kafkaConsumerConfig` and specific constructors. Applied minor formatting and whitespace adjustments throughout the codebase.
@async-human async-human merged commit 4cf9738 into main Jan 30, 2026
2 of 3 checks passed
@async-human async-human deleted the homework-5 branch January 30, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant