Here we found our first bottleneck: Dynamo DB reserved concurrencies.
Since we don’t know yet what traffic to expect, let’s move to On demand concurrency by editing our cdk stack :
cd ~/environment/workshopfiles/one-observability-demo/PetAdoptions patch -p0 < patches/ddb-billing-mode.patch
This patch is simply setting
billingMode: ddb.BillingMode.PAY_PER_REQUEST to the dynamodb table.
Let’s deploy this change:
cd ~/environment/workshopfiles/one-observability-demo/PetAdoptions/cdk/pet_stack cdk synth && cdk deploy Services
Now we should be safe on the DynamoDB side, let’s scale up !