@dwylhq @founderscoders @ThomasCookUK @nodegirls_LDN
Stateless
Event Driven
Microservices
In the Cloud
var starwars = require('starwars');
exports.handler = function (event, context, callback) {
if (event.isJedi) {
return callback(null, starwars());
} else {
return callback("Sorry you can't get a quote");
}
};
Input Object
Environment
callback(err, res)
"Do. Or do not. There is no try"
Served from an S3 bucket
HTTP endpoint on API Gateway
Static website
S3 Save
S3 Get
S3 Bucket Data store
Frontend
API
Backend
/graphql
GraphiQL
3rd Party API
GraphQL server
S3 Save
S3 Get
API Get
S3 static website
Frontend
API
Backend
1. Create S3 bucket for data store
2. Deploy Lambdas
3. Deploy API Gateway endpoint and map to GraphQL Lambda
4. Enable CORS
5. Get API Invoke URL
1. Create S3 bucket for UI and enable static hosting
2. Bundle and Deploy UI
www.github.com/nikhilaravi
@dwylhq
www.dwyl.io
www.github.com/dwyl