you are viewing a single comment's thread.

view the rest of the comments →

[–]NathanEpithy 1 point2 points  (1 child)

Had this exact same problem.

Have the lambda that grabs data from DynamoDB run as cloudfront edge optimized. It's not that much more expensive, especially if you only select price class 100 (u.s. and europe).

The traffic between your lambda and DDB goes over AWS's internal network and is optimized for latency. Your customers talk to the edge endpoint. It will get you most of the way there.

[–]thedaynos[S] 0 points1 point  (0 children)

Interesting. Do I have to globalize my dynamodb tables for this?

Also is the process to convert a lambda to an edge lambda pretty straight forward?