Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I would like to verify in my service /health check that I have a connection with my dynamodb. I am searching for something like select 1 in MySQL (its only ping the db and return 1) but for dynamodb.

I saw this post but searching for a nonexisting item is an expensive action.

Any ideas on how to only ping my db?

question from:https://stackoverflow.com/questions/65860152/verify-dynamodb-is-healthy

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
921 views
Welcome To Ask or Share your Answers For Others

1 Answer

I believe the select 1 equivalent in DDB is Scan with a Limit of 1 item. You can read more here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...