In the previous section, you learned about the AWS IoT SDK, we just haven't tested it yet. In this section, we will use it in the following two features of our serverless store:
- Live comments in a product review page
- Notifications after a payment has been accepted
The first feature is a type of a public notification, as it uses an IoT topic that all users can read. The second one is a private notification, so only one person and the Lambda backend are allowed to access the IoT topic to subscribe or publish messages. We will cover both of them to learn how to give proper access for each case.
Those two examples will illustrate how you can work with IoT to serve notifications, but it does not limit what you can do with it. You can think in other use cases. For example, IoT can also be used for serverless multiplayer games. You could build...