I have an lagom event sourcing/CQRS
employee service that publishes events to a Kafka topic named
employee-kafka-events. I need to write a
mail-notification service that would subscribe to this kafka topic and sends mail notifications for certain events on that topic.
How do I write this
mail-notification service as a Lagom managed service? Clearly, this
mail-notification service doesn’t have a use case of exposing any REST endpoint. Is it possible to write a service in Lagom as a managed service that doesn’t expose any REST endpoint? If yes, how would we define the
ApplicationLoader of such a service? If not, then how could I make use of Lagom Message Broker API? If it’s not even possible to use Lagom’s message broker API then what libraries can I use from Lighbend stack to implement the
Since Lagom is an opinionated framework, what opinion does it holds for such a use case???