0

I' ve been developing Android app which is connected to AWS and I save data in DynamoDB in app using code:

AmazonDynamoDBClient ddb = clientManager
                .ddb();
DynamoDBMapper mapper = new DynamoDBMapper(ddb);

try {
     mapper.save(event);
}

I know that it is possible to manage data in DynamoDB via Lambda. My question is: Is it faster and safer to save and edit data in Lambda?

1 Answer 1

5

You would typically use API Gateway plus Lambda if you want to write to DynamoDB without your own back-end server. I'd expect it to be slower and more expensive to do that than if your client wrote directly to the DB, however.

If your client does go direct to the DB then don't store access/secret keys in the app. Use Cognito Identity or some other option to vend temporary keys.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.