In a containerized microservice I'm using the dapr.io state management system as a data cache of equipment; providing a highly efficient way of accessing many equipment status at scale.
Using a simple CRUD approach, I can create, read, update and delete equipment statuses using dapr as follows:
And my main problem is getting a list of all keys:
As dapr doesn't support a list of all keys in the state store, I need to track all keys separately using my own implementation.
https://github.com/dapr/docs/tree/master/concepts/state-management
I've tested two methods so far:
In my view, the above methods add unnecessary complexity and create scale issues.
Is there a pattern for implementing a list of all keys using dapr without the above complexity?
Since release 0.10.0 there is an state API operation to get bulk state: https://github.com/dapr/docs/blob/master/reference/api/state_api.md#get-bulk-state