A microservice template for a service that emits events