Now that our cache is fully implemented, it’s time to make the Momento Pizza app even cooler with live updates! To do that, we’ll be incorporating Momento Topics into our solution.
To do this, we will need to make a few updates:
You might be wondering to yourself, “what are topics and how does implementing them give me live updates?”
Great question, I’m glad you asked!
Momento Topics is a serverless services that enables real-time communication between two components of an application. Technically speaking, subscribing to a topic for updates will open a long-term connection with Momento, akin to a WebSocket.
When someone publishes data to the topic, Momento will push it automatically to all the subscribers, including browser-based connections. From an architecture point of view, it will look something like this 👇
Ready to start building?