aspire compatible facade for cosmos global distributed lock #8971
Replies: 4 comments
-
hosting integrations pass environment variables to the application, if you can read them then you are golden. |
Beta Was this translation helpful? Give feedback.
-
execution summary
testbed ascii model as abridged per
a gateway that tries to satisfy the lease request
and the associated lock orchestration api operation surface
regards |
Beta Was this translation helpful? Give feedback.
-
operation summary work on proving the behavior of the aspire compatible cosmos distributed lock client has converged on
the model generates a nicely annoying distribution across the timedomain with multiple collision surfaces the testbed makes sumptuous use of containers, and the cosmos vnext simulator regards |
Beta Was this translation helpful? Give feedback.
-
on security a global lock with its state persisted in cosmosdb exposes implementation details that provoke the following follow ons
as such the obvious encryption layer required
example suspect persisted artifact
regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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