-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Explanation of the freeze of resources development #4142
Comments
Hi @SamStephens — to clarify, the feature freeze on resources is not a deprecation. As mentioned in the note on that resources documentation page, the resources interface will continue to operate during Boto3’s lifecycle:
Also in the comment you referenced:
We recommend using the DynamoDB client interface for access to newer service features which you can track in the CHANGELOG. Feature requests related to the Boto3 resources interface are not prioritized because we are striving for more consistency among the AWS SDKs, so efforts involving new functionality in high-level interfaces would be better directed towards longer term cross-SDK solutions. |
@tim-finnigan I still think this is effectively a deprecation; that existing usage will continue to be supported, but for new code we should avoid resources and use the lower level client where feature development will continue. "Existing interfaces will continue to operate during boto3’s lifecycle". Yes, but surely there will be a boto4 one day that does not include resources, now they're out of favour I cannot imagine you'll support resources indefinitely. Also, even on boto3 users are eventually going to find themselves needing newer AWS features that will never be supported by resources, and need to rewrite their resource using code using the lower level interface. I kind of wish you did call this a deprecation. I just built a bunch of functionality using DynamoDB resources (because they're so superior to the lower level client experience), and it's a bit of a kick in the teeth to only then discover they're not fully supported anymore.
This is what I was looking for; an understanding of why the policy exists, and what we should expect for the development of higher level interfaces in the future now resources are no longer favored. Are there any cross-SDK high-level interfaces already, or plans for any? Or is this TBD? |
Thanks for following up and sharing your feedback. Just to be clear I'll repeat for emphasis that the resources interface in Boto3 is and will continue to be supported for the entirety of Boto3, but feature requests related to resources are not being prioritized. But we do recommend using the client methods in order to access the latest API functionality released by the DynamoDB service team. Plans for future interfaces are still TBD. I'm sure the SDK teams will want to gather more feedback like this to inform future decisions around high-level interfaces, and I will share your feedback with our PM team. You can refer to the AWS Developer Tools Blog for announcements involving the SDKs. In the meantime I'll convert this to a discussion in the Q&A category which we recommend using for general questions. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the issue
I just discovered via #1068 that Resource interface has entered a feature freeze, so is effectively deprecated.
The note at the top of https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html provides no description of the rational, nor of what alternative will be provided in the future version where support is dropped entirely.
The lack of resources will be felt particularly for DynamoDB users, where the resource oriented interface handles a lot of conversion that has to be explicitly done using the low level interface, and is clearly superior for most use cases. As an example:
The definition of ExpressionAttributeValues from the Table resource version of query:
The definition of ExpressionAttributeValues from the client version of query:
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html
The text was updated successfully, but these errors were encountered: