awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 128 forks source link

AWS AppSync SDK with AppSync APIs v2 protocol (pure WebSockets) #509

Closed haider0324 closed 9 months ago

haider0324 commented 2 years ago

AWS AppSync APIs v1 protocol (MQTT over WebSockets) will be disabled for all AppSync APIs in favor of v2 protocol (pure WebSockets).

**1. We are using appsync sdk version 3.1.11 (released at 6th Nov 2020 on https://github.com/awslabs/aws-mobile-appsync-sdk-ios/releases?page=2 ). Is it mandatory to use Amplify, if we already used AWS Appsync SDK to support AppSync APIs v2 protocol (pure WebSockets)?

  1. Could we achieve all the services capabilities provided in Appsync v2 protocol (pure WebSockets) through appsync sdk?
  2. How i get to know whether specific appsync api is v1 version or v2 version? Could i get this information from AWS Console? And also want to know how i can find this information in client appsync sdk?**

Environment:

Device Information:

Thanks for your support

lawmicha commented 2 years ago

Hi @haider0324

Is it mandatory to use Amplify, if we already used AWS Appsync SDK to support AppSync APIs v2 protocol (pure WebSockets)?

No it is not mandatory to use Amplify. AppSync SDK works with AppSync's v2 protocol. We are however have plans to deprecate AWS AppSync SDK for Amplify in the future. Depending on your use case, you can either use Amplify.API or Amplify.DataStore

Could we achieve all the services capabilities provided in Appsync v2 protocol (pure WebSockets) through appsync sdk?

Do you have a particular service capability that you are referring to, or doc that mentions any new capabilities with the v2 protocol? From my understanding, the SDK can connect to the v2 endpoints and all improved capabilities are agnostic to the library. For example, if you are able to establish more than 100 subscriptions at a time or pass larger payloads with the v2 protocol, there is no specific client side logic that restrict or is coupled to these capaiblities.

  1. How i get to know whether specific appsync api is v1 version or v2 version? Could i get this information from AWS Console? And also want to know how i can find this information in client appsync sdk?

I'm not sure, perhaps AWS forums for AppSync https://repost.aws/tags/TA-rppqfLWSMyo15gvoFCr5A has the answer to this. Feel free to update us if you find out, and if anyone else knows please comment on this issue.