This component handles the functionality related to sending an email through Altinn Notifications.
This is a backend WebAPI solution written in .NET / C# following the clean architecture principles. The solution is into three projects, each with their associated test project.
The API layer that consumes services provided by Altinn.Notifications.Email.Core
Relevant implementations:
- Program.cs
- Kafka consumer implementation
The domain and application layer that implements the business logic of the system.
Relevant implementations:
- Interfaces for external dependencies implemented by infrastructure layer
- Domain models
- Services for handling sending of e-mails
The infrastructure layer that implements the interfaces defined in Altinn.Notifications.Email.Core for integrations towards 3rd-party libraries and systems.
Relevant implementations:
- Client for integrating with e-mail service
- Kafka producer implementation
[ Guide coming.. ]
To run a Kafka broker and Kafdrop (visualization and administration tool) locally you need to have Docker installed on your machine.
In a terminal navigate to the root of this repository
and run command docker-compose -f setup-kafka.yml up -d
Kafdrop will be available on localhost:9000