This is a follow up to #203. Ideally, we should probably just cache all state data locally by watching the NATS kv bucket. This would greatly reduce the amount of lookups directly to the database and the amount of traffic going across NATS. Minimum requirements would be a new implementation of a state store that would send data to NATS KV on write while simultaneously updating the local cache. All other cache stores would receive the update via watching the KV bucket.
This is a follow up to #203. Ideally, we should probably just cache all state data locally by watching the NATS kv bucket. This would greatly reduce the amount of lookups directly to the database and the amount of traffic going across NATS. Minimum requirements would be a new implementation of a state store that would send data to NATS KV on write while simultaneously updating the local cache. All other cache stores would receive the update via watching the KV bucket.