- setup .env file ( follow .env.dev example file )
- docker-compose up
- API call to /api/send-mail
- API receives data and publishes a new event with the received data
- Mail-worker has subscribed to the publisher's event and executes whatever code with the received data
Mail worker microservice can be scaled as necessary with Docker swarm or w/e. API just handles basic routing, no heavy work.