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

CLI command for callback requests #648

Open
JakeUrban opened this issue Jul 19, 2022 · 0 comments
Open

CLI command for callback requests #648

JakeUrban opened this issue Jul 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@JakeUrban
Copy link
Contributor

What problem does your feature solve?

Polaris makes callback requests to remote servers when requested in SEP-6 & 24 transactions. Callbacks have now been added to SEP-12 & SEP-31, and on top of that, the standards now recommend that anchors include a header with their signature to verify authenticity.

Polaris needs to be updated to support these changes, but as the use of callbacks increase (and the need for polling decreases), Polaris should have a long-running CLI command to make these requests outside the web server's request & response cycle.

This will ensure that making these callback requests does not slow down the response time of the web server while creating a most resilient system for making the requests asynchronous.

What would you like to see?

A new CLI command that reads from the DB for queued callback requests to be made and makes them, marking them as complete when the callback was successfully received, retrying on connection failure, and marking as error if an unexpected response was returned.

@JakeUrban JakeUrban added the enhancement New feature or request label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant