Let’s say you are tasked to write a service that handles user registration. Upon registration, two emails will be sent out — one welcome email, and another for confirming the email. How would you design it?
Dissecting the Problem
Surely it’s not difficult. All we need is just one
register function that persists…