Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple inbox/exclusive lock usage from invocation target #2326

Open
slinkydeveloper opened this issue Nov 20, 2024 · 0 comments
Open

Decouple inbox/exclusive lock usage from invocation target #2326

slinkydeveloper opened this issue Nov 20, 2024 · 0 comments
Labels

Comments

@slinkydeveloper
Copy link
Contributor

Right now we couple the inbox usage in the partition processor to the invocation target, see

if metadata.invocation_target.invocation_target_ty()

I propose to add a new field to ServiceInvocation, e.g. locking_semantics, that is optional and when present, enables the usage of the exclusive service lock and of the inbox. The first variants would be:

enum LockingSemantics {
  Lock { key: String }
  NoLock
}

Names to be defined/open to suggestions.

This new field would then be used by the virtual object exclusive handlers, replacing the current coupling to invocation target, and by #1299 as well.
It might turn out to be useful for #12 too, if we add another variant ReplaceExistingOne or similar.

@slinkydeveloper slinkydeveloper added enhancement New feature or request partition-processor semantics System semantics and behaviour and removed semantics System semantics and behaviour labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant