authenticationdomain-driven-designmicroservicesbounded-contexts

Communication microservice - Email verification Link


I have 2 microservices Identity & Communication. When user signs up, I want to send him an activation link to his email. Activation link is generated on Identity side, how can I pass it to Communication Microservice to send an email? or Communication microservice shoudn't exist as a separate microservice, but each microservice can use IEmailSender utility to send emails?


Solution

  • Communication Bounded Context is wrong for my system. Its just a technical Help SErvice which every Bounded Context should have in Order to fulfill its business capabilities. For example Identity in order to Activate Account needs this infrastructural posibility. Removed communication BC, and sending emails directly from Identity.