aws-containers / retail-store-sample-app

Sample application for demonstrating container platforms and related technology
MIT No Attribution
268 stars 302 forks source link

feat: Carts service checks DynamoDB connectivity at startup #537

Closed niallthomson closed 6 months ago

niallthomson commented 6 months ago

Issue #, if available:

Description of changes:

This PR introduces a start-up check for the carts service that verifies a query can be executed on the DynamoDB table if it is enabled. This provides quicker feedback in the event of misconfiguration, and also formats the feedback in a manner that is easier to understand via a Spring FailureAnalyzer.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.