By Sriram Mannava
Let's assume we are building a web application for a seat reservation system that users use to book seats for some event. The application needs to be highly responsive to the seats available for an event and must reflect the change in available seats in real time for a given event.
To build such an application, we must ensure that the result set for a query is always available in the cache in order to serve data faster to the users, and any change in the backend (a seat reserved or canceled) must be immediately reflected across the cache so that users can see the updated data immediately.
Continuous Queries is a technique that helps keep our application cache in sync with the underlying data source efficiently. It allows you to monitor and react to changes in cached data in real time so that the cache always reflects the most up-to-date information.
Read full ArticleContinuous querying in a cache offers several advantages, which makes it a useful strategy while building applications.