-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: add pagination to deposit fetching #1252
base: main
Are you sure you want to change the base?
Conversation
The idea of using the the |
I'd propose to decide on a strategy for sorting for Emily and implement a filtering mechanism on the signers side in a separate PR |
If I got to choose, I would probably have opted for a streaming protocol backed by durable topic subscriptions (at least that's what they're called in the message broker world..). For example MQTT over Websockets (AWS version), instead of polling. That would obsolete the above challenges. |
I love the idea and believe this is the cleanest way to go for the signers. We'll have to design it for a future milestone though, it will require a different infra because of the usual limitations of the current setup... |
# The pagination timeout, in seconds, used to fetch deposits and withdrawals | ||
# requests from Emily. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to use Emily for withdrawal requests, just for deposits. The plan was for the signers to just use the stacks node for withdrawals.
signer/src/config/default.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is missing the page_size
config parameter. I think we should have it here, even if we have some parameters that we exclude from the docker/mainnet/sbtc-signer/signer-config.toml.in
example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to the page_size
, is it supposed to specify a number of items or the number of bytes to return per page? Is there a maximum or minimum value enforced by AWS? And do we want this to be a config parameter at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the specific number of items. If the number is too big, Dynamo will always cap the query results to 1MB.
I needed to have access to it for testing purposes only, but I am unsure yet if we'll ever need to manually modify this value in the settings. I am open to remove it from the configs if you think it's better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably best to remove it from the configs since we don't plan on having folks change it.
Description
Closes: #1148
Changes
Testing Information
get_deposits
Checklist: