Conversation
…enting DDD and Clean Architecture principles. Introduce new modules, services, and DTOs for improved structure and maintainability. Update Redis configuration in docker-compose and enhance notification processing logic.
…tionChannel, streamlining the code for better readability and maintainability.
…e enterprise-level architecture and async processing capabilities of the notification microservice.
…rom Docker builds, improving build efficiency and reducing image size.
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.
🎯 Overview
Implementation of a complete notification microservice with email and Telegram support, following Domain-Driven Design (DDD) principles and Clean Architecture.
✨ Features Implemented
Core Functionality
Architecture
API Endpoints
POST /notifications- Create and send notificationsGET /notifications- List notifications with filtersGET /notifications/stats- Get notification statisticsGET /notifications/test-telegram- Test Telegram connectionPOST /notification-config- Configure notification channelsGET /notification-config- Get configuration by emailPUT /notification-config/:id- Update configurationGET /health- Health check endpointTechnical Stack
🔧 Configuration
All sensitive data is managed through environment variables:
MONGODB_URIREDIS_URLRESEND_API_KEYTELEGRAM_BOT_TOKENTELEGRAM_CHAT_ID🚀 Deployment
Ready for production deployment with Docker:
📊 Status
🎉 Ready for Production
This implementation provides a robust, scalable notification system that can handle email and Telegram notifications asynchronously with proper error handling and monitoring.