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

Enqueue tasks via distributed promise store #468

Open
dfarr opened this issue Nov 19, 2024 · 0 comments
Open

Enqueue tasks via distributed promise store #468

dfarr opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or request heroic (advanced)

Comments

@dfarr
Copy link
Member

dfarr commented Nov 19, 2024

Callbacks can be registered against promises that exist on a different durable promise store from the root promise. When this occurs, the task will exist on the leaf promise store, but will need to be sent (and populated with the root promise information) by the root promise store.

A general approach:

  1. create task on leaf promise store when leaf promise is completed
  2. check the root promise id, if it is a foreign promise enqueue using the http subsystem by calling a new endpoint on the foreign promise store
  3. the new endpoint enqueues a task and will look roughly similar to the SenderSubmission
  4. the system that ultimately receives the task will communicate with the leaf promise store
@dfarr dfarr added the enhancement New feature or request label Nov 19, 2024
@flossypurse flossypurse moved this to Backlog in Resonate Engineering Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request heroic (advanced)
Projects
Status: Backlog
Development

No branches or pull requests

1 participant