Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 1.47 KB

6-extra-challenges.adoc

File metadata and controls

25 lines (13 loc) · 1.47 KB

6. Extra challenges

If you completed the workshop and are looking to do tasks without following step-by-step instructions, then these are some nice challenges to try. Try them in any order.

6.1 Use DynamoDb Streams

Enable DynamoDB stream on Reindeer table, process change events with AWS Lambda by comparing what has changed and logging that at Info level. If an existing item has changed, log fields that changed (before and after value).

Tip
for new lambda implementation you would need to create a new gradle module in software. Make sure the zip file name is unique, so something other than `function.zip , see packageDistribution task in build.gradle.kts. This zip file name is then referenced from infrastructure stack.

6.2 Add another method to GraphQL API

Add another API method that gets Reindeer by name.

Tip
You can use DynamoDB global secondary index for this.

6.3 Use a scheduled AWS Lambda

Schedule a new AWS Lambda to run 1 x hour. Lambda should count all the reindeer in Reindeer table and log the result on Info level. Eventual consistency is fine here.

Tip
for new lambda implementation you would need to create a new gradle module in software. Make sure the zip file name is unique, so something other than `function.zip , see packageDistribution task in build.gradle.kts. This zip file name is then referenced from infrastructure stack.