Skip to content

SMS Service

This microservice is designed to send SMS messages, update their status, and manage the sending queue.


Main Functions

  • Create new SMS messages and enqueue them
  • Update the status of SMS messages (delivered, error, not sent)
  • Check the SMS sending queue and send messages
  • Log successes and errors during the sending process

How It Works

  • SMS messages are sent via a configured gateway using REST API
  • Phone numbers are validated; invalid numbers are automatically marked with a special status
  • Message status is updated based on the gateway response (Submitted, NotSent, PhoneInvalid)
  • Each SMS sending operation is logged, including counts of successful and failed messages
  • The sending queue is periodically checked, and messages are sent according to the schedule