Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.41 KB

File metadata and controls

35 lines (25 loc) · 1.41 KB
                                     #  Powertools for AWS Lambda (Java) - Batch Example

This project contains examples of Lambda function using the batch processing module of Powertools for AWS Lambda (Java). For more information on this module, please refer to the documentation.

Three different examples and SAM deployments are included, covering each of the batch sources:

Deploy the sample application

This sample is based on Serverless Application Model (SAM). To deploy it, check out the instructions for getting started with SAM in the examples directory

This sample contains three different deployments, depending on which batch processor you'd like to use, you can change to the subdirectory containing the example SAM template, and deploy. For instance, for the SQS batch deployment:

cd deploy/sqs
sam build
sam deploy --guided

Test the application

Each of the examples uses a Lambda scheduled every 5 minutes to push a batch, and a separate lambda to read it. To see this in action, we can simply tail the logs of our stack:

sam logs --tail $STACK_NAME