This PR adds further optimisations to the Cosmos DB state management, focusing on cost savings. The section breaks down how Cosmos DB RU/s are calculated and how developers can use compression algorithms to reduce the overall size of the object they are reading and writing to state and subsequently reduce the number of RU/s used. This is inspired by the work of my colleague who reduced our RU usage by 97% which he wrote about here: Maximizing Efficiency in Scalable Systems: Part I — Reducing costs of consumption-based state stores by up to 97% when using Dapr actors at scale
Description
This PR adds further optimisations to the Cosmos DB state management, focusing on cost savings. The section breaks down how Cosmos DB RU/s are calculated and how developers can use compression algorithms to reduce the overall size of the object they are reading and writing to state and subsequently reduce the number of RU/s used. This is inspired by the work of my colleague who reduced our RU usage by 97% which he wrote about here: Maximizing Efficiency in Scalable Systems: Part I — Reducing costs of consumption-based state stores by up to 97% when using Dapr actors at scale
Issue reference
Closes #4047