Building the mailing service

In the next step, we will put a mailing service into our Microservice architecture. After a checkout was processed, the user should be notified via e-mail about the status of the checkout.

Tip

As mentioned before, the focus of this chapter is on building the communication patterns between individual services. Because of this, we will not implement the mailing service's actual mailing functionality in this section, but instead focus on how this service will communicate with other services. Have a look at Chapter 3, Building a Social Newsletter Service, to see how you can use PHP to actually send e-mails to other recipients.

In theory, you could implement the mailing service just as you did the inventory service - build ...

Get PHP 7 Programming Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.