Another common requirement for modern applications is the support of SMS/MMS messaging. In this article, we will build OutboundSMSService, which parallels the structure and implementation of the service by including both a REST Controller endpoint and a MessageQueue listener. We supplement this architecture with a pluggable provider interface to support multiple options when selecting a messaging service provider. This article will be implementing a Twilio service provider implementation to demonstrate integration with a third-party messaging service. We will exercise the REST endpoint the generated Swagger ui, and we will use RabbitMQ to enqueue messages for OutboundSMSService to consume. We end the article by viewing the OutbounndSMSService's operation metrics using a Grafana dashboard.
"Mobile spam" by Christiaan Colen is licensed under CC BY-SA 2.0