AWS IOT v2 SDK migration from v1 sdk

1

We need to know why we are migrating from v1 sdk to v2.?

What are the major issues in v1 sdk and how is it impacting our clients.?

What are major advantages of IOT v2 sdk. and how many clients it will benefit.?

what should be the rollout plan for v2 sdk changes. Can we cross v2 API with some v1 API and then test it.

  • Which SDK are you using? Regarding your questions for rollouts or cross testing with v2 and v1, both v2 and v1 continue to use the standard AWS IoT MQTT, Websocket, and HTTP endpoints and commands; i.e. pub/sub to MQTT topics, or Shadow endpoints remain the same regardless of which version you are using.

    As stated in the README for the Javascript SDK (https://github.com/aws/aws-iot-device-sdk-js-v2):

    This SDK is built on the AWS Common Runtime, a collection of libraries (aws-c-common, aws-c-io, aws-c-mqtt, aws-c-http, aws-c-cal ...) written in C to be cross-platform, high-performance, secure, and reliable. The libraries are bound to JS by the awscrt package.

    Each of the V2 IoT SDKs have been developed to use the AWS Common Runtime with the same goals in mind.

  • Thanks David We are already using using IOT java v1 SDK. while doing load testing we encountered AWSIotException: too many publishes. One possible reason could be maxInflightMessage count which is 10 by default and can't be changed in v1 SDK. So can it be resolved in v2 sdk. Also we get disconnect after every 24hrs from Mqtt Client and we need to refresh credentials for that. Is the new version using same methods?

已提問 2 年前檢視次數 669 次
1 個回答
0

Hi. Per the READMEs (and as David just mentioned in his comment), the V2 SDKs are:

built on the AWS Common Runtime, a collection of libraries written in C to be cross-platform, high-performance, secure, and reliable.

The CPP, Python, Java and JS V2 SDKs all use the awscrt and all benefit from the reuse of common code. Since the V2 SDKs have been around for a long time already, and the V1 SDKs only get security updates, the V1 SDKs lack many of the more recent AWS IoT features compared to V2. For example (depending on the language), named shadows, Greengrass IPC, PCKS11, fleet provisioning, device defender and more.

Additionally, all of the V2 SDKs are validated against AWS IoT Core Device Advisor.

profile pictureAWS
專家
Greg_B
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南