Messaging service for communication between microservices.
Messaging service as part of the of the platform for media caching on trains. Allows communication between microservices. A service can send messages on specific topics, which other services can register to receive updates on (publish/subscribe). The message broker supports message replay, which means that a client which registers for a specific topic will instantly receive the last message sent on this topic. Service of the caching platform benefit from this feature when recovering from an error state. They do not miss messages which may be crucial for resuming operation.
Message broker is an instance of NATS streaming service.
Note: Typically you would use the up.sh
script from the Platform project to install, build and run this service as part of a composite of docker services. Read on if you intend to run the service directly on your host system.
Prerequesits:
$ docker-compose up -d