How alibildir/notifo works
Main Components
• Frontend: The “frontend” folder shows that the UI is built with React, uses Redux for state management, TypeScript, and has a custom theme (Argon Design). This is the client-facing side where users interact, manage subscriptions, view notifications, etc.
• Backend Server: The “backend” folder contains several projects such as Notifo.Domain, Notifo.Infrastructure, and Notifo.Identity. This is the heart of the application built on ASP.NET Core 6 and SignalR for real-time communication.
• Notification Channels & Integrations: The project supports multiple channels like email (Amazon SES, Mailchimp, SMTP, Mailjet), web notifications (Sockets) and push notifications (Firebase, custom web push). These are implemented as modular “integration” components, each in its own directory (e.g., Notifo.Domain.Integrations/AmazonSES, Firebase, MessageBird, etc.).
• Domain & Infrastructure: Layers such as Notifo.Domain, Notifo.Infrastructure, and Notifo.Identity abstract core business logic, scheduling, event pipelines, logging, caching, and identity/authentication. They also include providers for MongoDB (as the primary datastore) and messaging queues/schedulers.
• External Services: MongoDB acts as the database, while external providers (via integrations) handle email, SMS, mobile push, and web push. SignalR serves the real-time connection layer.
• Management & API Layer: REST API endpoints (comprising many controllers under /Areas/Api) provide an OpenAPI-documented interface for interacting with the system, managing notifications, templates, subscriptions, etc.
Relationships and Interactions
• The Frontend communicates with the Backend API using REST and, where relevant, SignalR for real-time notifications.
• The API layer (controllers in /Areas/Api) accepts user requests (e.g., create notifications, subscriptions, or trigger events) and passes them down through the domain layer.
• The Domain layer applies business logic, including generating user events based on subscriptions and topic patterns.
• The Infrastructure layer handles cross-cutting concerns such as logging, caching, scheduling, and manages retries/message queues. It coordinates with integration modules and external services.
• Integration modules (for channels like Email, SMS, MobilePush, WebPush, etc.) process notifications using channel-specific adapters and report back statuses.
• Identity and security are managed through components in Notifo.Identity using OpenID Connect.
Architectural Patterns and Design Principles
• Layered Architecture: Clear separation between Presentation (Frontend), Application/API, Domain Logic, and Infrastructure/Integrations.
• Modular & Pluggable: Integration points for multiple channels are separated into modules (e.g., Amazon SES, Mailjet, Firebase) which can be easily extended or swapped.
• Event-Driven & Queue-Based: The system uses event pipelines to create user notifications and relies on schedulers and queues for reliable delivery.
• Real-Time Communication: SignalR is used for live updates (web sockets) ensuring real-time connectivity to the client.
Relevant Technologies
• Server: ASP.NET Core 6, SignalR, and MongoDB.
• Identity: OpenID Connect and custom identity providers.
• Frontend: React, Redux Toolkit, TypeScript, and Sass (with Argon Design theme).
• Integrations: Various channel-specific libraries and SDKs (e.g., Amazon SES SDK, Firebase, Twilio for SMS, etc.).
Final Integration
• Middleware pipelines (e.g., Notifo/Pipeline) that handle tasks like API exception filtering, logging, authorization, or telemetry.
Happy diagramming!