10. Why DynamoDB?
- Need for this app: persistent data store across requests
- A JSON file on S3 also a possibility given scale
- Something like Redis (Amazon Elasticache) could also work, but price
prohibitive
- DynamoDB pricing structure is confusing, but you get 25GB storage and
~200M requests per month in the Free Tier
13. What is Amazon Lambda?
- Old method: I need a server to execute my code
- Server sits idle sometimes, other times is completely overwhelmed
- Use AWS computing power, and be billed by the 100ms
- Theoretically infinitely scalable, if you have the money
- Can run Node, Java, or Python
14. Coding for Lambda
- Amazon Lambda uses Node.js: v0.10.36
- Deployment in it’s most basic state involves a manual zip upload
- lightweight is best-- adding Babel.js was a pain for uploads
- Expect your tests to work locally
15. Coding for Lambda
Create a user and credentials for what you need:
https://console.aws.amazon.com/iam/home?region=us-east-1#users
16. ~/.aws/config
[default]
output = json
region = us-east-1
Coding for Lambda: Config and Credentials
~/.aws/credentials
[default]
aws_access_key_id =
LINDNWVQQKAKP7BIA5TX
aws_secret_access_key =
L4Q8mgs4o4dO4qe3RBbXPSZPfhOQF
nj1U2dlDn30