khaledhikmat / pledge-manager

Pledge Manager is an experimentation of technologies
1 stars 1 forks source link

Consider switching to Cosmos DB and Event Bus rather than Redis #41

Closed khaledhikmat closed 2 years ago

khaledhikmat commented 2 years ago

The main motivation is that Redis does not seem to handle keys well enough. In Cosmos, we may be able to leverage collections and partitioning and also Cosmos .NET SDK in case we need fine-grained control over queries.

khaledhikmat commented 2 years ago

I found this nice Cosmos DB intro video: https://www.youtube.com/watch?v=qkPi3XKjObI Actually Mark Brown series is all pretty good.

khaledhikmat commented 2 years ago

https://app.pluralsight.com/library/courses/building-event-driven-microservices-azure-cosmos-db-change-feed/table-of-contents

khaledhikmat commented 2 years ago

https://app.pluralsight.com/library/courses/data-modeling-partitioning-patterns-azure-cosmos-db/table-of-contents

khaledhikmat commented 2 years ago

Yeah....I know what to do now. I added an IPersistenceService which will handle the persistence need of the application. I created in-memory implementation which seems to satisfy the needs. I will do a Cosmos implementation next.