dapr / docs

Dapr user documentation, used to build docs.dapr.io
https://docs.dapr.io
Creative Commons Attribution 4.0 International
987 stars 715 forks source link

Adding a compression cost optimization section to the Cosmos DB docs #4151

Closed KrylixZA closed 1 month ago

KrylixZA commented 1 month ago

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