In this recipe, we will develop an AWS Lambda function that write to KDS using AWS Java SDK for Kinesis. Kinesis producers may also be developed using the Kinesis Producer Library (KPL); this is the more common option for non-serverless applications. However, with AWS Lambda, SDK-based code is generally preferred as we will be using less libraries.
Writing data into Kinesis Stream with SDK (Java)
Getting ready
You will need to have the following prerequisites for this recipe:
- You need an active AWS account. You need to follow the Getting started section in the recipes Your first AWS Lambda and Your first Lambda with AWS CLI from Chapter 1, Getting Started with Serverless Computing on AWS to set up Java, Maven, the parent...