Short-term in-memory cache for Scene-Device relationships to reduce need to call to Neo4j. The cache should be utilized instead of calling Neo4j when available for identifying devices to send updates to.
On receipt of kafka update, add scene to time-expired cache of scene ID's
Check Scene-Device cache (seperate, time-expired cache of scene ID's and device info) for scene
2a. If not present, execute query & populate. If configured to still send updates, do so
2b. If present, send update
On background thread, periodically query Neo4j and populate Scene-Device cache
Short-term in-memory cache for Scene-Device relationships to reduce need to call to Neo4j. The cache should be utilized instead of calling Neo4j when available for identifying devices to send updates to.