It would be really nice if there was an easy way to cache responses to queries.
For example, if we have a collection of
rooms that is not frequently updated, it would be helpful if the response could be cached so we don’t have to incur read/lookup/compute operations every time we want to fetch a list of the rooms and their names.
Since there are no webhooks, we cannot use any cache mechanism/gateway over Fauna, as we don’t have a way of knowing when the cache should be invalidated.
One potential approach would be to add a TTL property on mutations/functions, so we could at least cache the responses to an arbitrary duration. But that’s far from optimal.