I am creating an iOS app that will query my database without doing any object manipulation or calculation, I can do this in several ways:
Query directly using DynamoDB iOS SDK
Query using AWS Lambda iOS SDK, and then executing a lambda function that queries DynamoDB directly.
My question is, which is more execution-time and cost efficient?
My thoughts are that option 1 is the best as it does not require a function or any execution time.
I know that I am charged for the DynamoDB query and I know that I am charged for the execution time of the lambda function. However, I am not sure if I will be charged for using the DynamoDB SDK method or for something else or if I might forgetting another possible cost or thing that I am not taking into account.
Thank you.