After you have learned how to migrate your existing Unicorn Store Spring Boot application in the Migration section, you are now going to build a net new Unicorn Location Service.
This service will receive coordinates from Unicorns all over the world. In the following diagram you will see the architecture you are going to build.
-
(1) You can interact with the service via a REST-API that provides a POST /locations endpoint to create new location records
-
(2) API Gateway integrates with the createUnicornLocation Lambda function
-
(3) The Lambda function stores the records in Amazon DynamoDB
- Minimal logging
- Minimal serialization
- AWS SDK best practises
- Tiered compilation
- Common Runtime Client
- Accelerate - Use GraalVM to reduce your cold-starts by up to 80%
Both the final project and the initial setup have been checked with CFN-Nag. Please refer to the Github repository to install the cfn_nag tool and run a scan on the project by providing:
cfn_nag_scan --input-path template.yaml
cfn_nag_scan --input-path final/unicorn-location-api-final/template.yaml