LocalStack is a cloud service emulator that runs in a single container on your laptop or in your CI environment. With LocalStack, you can run your AWS applications or Lambdas entirely on your local machine without connecting to a remote cloud provider! Whether you are testing complex CDK applications or Terraform configurations, or just beginning to learn about AWS services, LocalStack helps speed up and simplify your testing and development workflow.
LocalStack supports a growing number of AWS services, like AWS Lambda, S3, Dynamodb, Kinesis, SQS, SNS, and many more! The Pro version of LocalStack supports additional APIs and advanced features. You can find a comprehensive list of supported APIs on our ☑️ Feature Coverage page.
LocalStack also provides additional features to make your life as a cloud developer easier! Check out LocalStack’s User Guides for more information.
Reactive Examples with AWS on LocalStack
- AWS SDK for Java 2.x
- AWS SDK for Java 2.x; Use asynchronous programming
Content
- #1: aws-localstack-s3-example-1
- #2: aws-sdk-java-v2-dynamodb-s3-1
Example#1
aws-localstack-s3-example-1
Description and code: https://jreact.com/index.php/2024/03/03/aws-localstack-s3-example-1/
S3 (Simple Storage Service) is an object storage service that provides a highly scalable and durable solution for storing and retrieving data. In S3, a bucket represents a directory, while an object corresponds to a file. Each object or file within S3 encompasses essential attributes such as a unique key denoting its name, the actual content it holds, a version ID for versioning support, and accompanying metadata. S3 can store unlimited objects, allowing you to store, retrieve, and manage your data in a highly adaptable and reliable manner.
Example#2
aws-sdk-java-v2-dynamodb-s3-1
Description and code: https://jreact.com/index.php/2024/03/09/aws-sdk-java-v2-dynamodb-s3-1/
Description
- This example is using the Java AWS SDK v2 (AWS guide).
- It describes an example use of S3 and DynamoDB.
- Relation to reactive programming: Use asynchronous programming
Prerequisites
- Environment: LocalStack
- Maven 3.9 & Java 17
- Docker
- AWS CLI and awslocal
