Is it okay to use aws javasdk v2 and v1 together? #3977
-
I am developing an application using Dynamo DB in Spring boot 3.0.5 version. The Spring Data Project does not officially support Dynamo DB. Many example codes released on the Internet are based on the SDK V1, but there are many difficulties in developing based on aws official documents for the V2, and I don't think it's possible to develop it with the V2, is the designed to be used with V1? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yes, you can use Java SDK v1 and v2 side-by-side. We have a page in the Developer Guide that shows how to set the dependencies in the pom file:
If you are using a service client in v1 (like S3 or Dynamo DB), all clients should have an equivalent in v2, you should be able to call any service API from v1 or v2. Can you elaborate on the difficulties you have encountered when developing using Java SDK v2? We are genuinely interested, so we can improve the documentation around v1 to v2 migration. |
Beta Was this translation helpful? Give feedback.
-
Thank you @debora-ito 😄 |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Yes, you can use Java SDK v1 and v2 side-by-side.
We have a page in the Developer Guide that shows how to set the dependencies in the pom file:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/migration-side-by-side.html
If you are using a service client in v1 (like S3 or Dynamo DB), all clients should have an equivalent in v2, you should be able to call any service API from v1 or v2.
If you are using a high-level library …