aspire compatible facade for cosmos global distributed lock #8971
secheledelaruse
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this follows up an earlier idea of an aspire facade for the cosmos db global distributed lock design pattern listed here
execution summary
the canonical distributed lock strategy is amenable to abstraction with dependency injection
my back of the napkin analysis suggests that independent client consumption of the api surface requires only each client to maintain its own lock ownership state, which leverages global atomicity via the underlying cosmos lock lease with ownership information updatable and queryable by any client
to do
accomplished so far in this repo
abstracted design pattern guidance example code with dependency injection friendly interfaces and api surface
first cut of aspire custom client integration with simple settings that require a url and registers the ecosystem of dependent services in di

working on integrating the canonical azure durable functions say hello orchestration with a timer trigger interlocked with the lease duration for distribued locks

if this interests you
regards
Beta Was this translation helpful? Give feedback.
All reactions