-
Notifications
You must be signed in to change notification settings - Fork 248
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
Timestream's ReloadEndpoint
is unclear
#1124
Comments
I can't remember exactly why we made this opt-in instead of opt-out, but the general idea is that endpoint discovery makes service calls on your behalf to figure out what the endpoint is. So this is a bit more explicit that it's doing that.
I think |
Leaving this open to track improving documentation. |
This can now be improved with the SRA I think. When the code was written, resolve endpoint was synchronous (hence the need for background refresh). |
Thanks John, appreciate the quick reply.
I'm still not understanding what endpoint refreshing is and why it's necessary. Is the endpoint just the correct place to talk to Timestream? I found https://docs.aws.amazon.com/general/latest/gr/timestream.html - I assume it is related. However in this documentation, it seems like the endpoint is constant. What does reloading the endpoint accomplish? |
Endpoint discovery is a more general SDK feature. I'm not so familiar with Timestream, so I can't say one way or another if the endpoints change, but DynamoDB also uses endpoint discovery, and I think the endpoints can change there. Or at the very least, they're allowed to change, and thus, must be refreshed periodically. |
Describe the issue
I've made good attempts to understand how Timestream's ReloadEndpoint works, which doesn't seem to documented well. It still doesn't make sense to me, unfortunately.
The docs.rs of
ReloadEndpoint
only says "Endpoint reloader."Here's roughly our code:
My questions are:
ReloadEndpoint
have?.with_endpoint_discovery_enabled()
? It will not work without this.Links
aws-sdk-rust/sdk/timestreamwrite/src/client.rs
Lines 18 to 23 in 29883b1
The text was updated successfully, but these errors were encountered: