July 2018
Intermediate to advanced
336 pages
9h 23m
English
Redis offers asynchronous data transfer between an application using a publisher/subscriber model, which enables one application to publish to a channel and another application to subscribe to that channel and perform actions when an event is received. The publishers need not know about the subscribers, and vice versa in this model, which enables loose coupling and high scalability.
In the case of these two microservices, the Taxi Microservice needs to know when a Taxi Booking is accepted in the Taxi Booking Microservice so that it can update the status of a Taxi. For this reason, the Taxi Booking microservice will publish a Taxi Booking Accepted Event, and the Taxi Microservice will subscribe to it. ...
Read now
Unlock full access