Amazon API Gateway and AWS Lambda: Better Together

Download Amazon API Gateway and AWS Lambda: Better Together

Post on 20-Jan-2017

1.417 views

Category:

Software

0 download

TRANSCRIPT

Amazon API Gateway and AWS Lambda:Better TogetherDanilo PocciaAWS Technical Evangelist@danilopdanilopYou Want to BuildYour Brand New ApplicationApplication+DataApplication+DataWebsitesMobile AppsWearableApplication DataWebsitesMobile AppsWearableApplicationFilesDBContent +Some API CallsAPI CallsWebsitesMobile AppsWearableApplicationFilesDBAPI CallsWebsites(JavaScriptApps)Mobile AppsWearableJavaScriptAPI CallsApplicationFilesDBAPI CallsWebsites(JavaScriptApps)Mobile AppsWearableServicesAPI CallsJavaScriptAPI CallsApplicationFilesDBAPI CallsWebsites(JavaScriptApps)Mobile AppsWearableServicesAPI CallsJavaScriptAuthentication& AuthorizationCaching & ThrottlingBusiness LogicAPI CallsApplicationDBAPI CallsWebsites(JavaScriptApps)Mobile AppsWearableServicesAPI CallsJavaScriptFilesAmazonS3AmazonDynamoDBAuthentication & AuthorizationAmazonCognitoBusiness LogicAWSLambdaCaching & ThrottlingAmazon APIGatewayAPI CallsHow Does It Works?XAuthenticationProvidersEnd UsersUser CredentialsAuthenticationTokenAmazon CognitoIdentity BrokerIdentity Pool Id(Token)Identity IdAWS Temp Credentials(Depending onAuth / Unauth Role)Access toAWS Services(Including AmazonAPI Gateway)Identity IdAWS Temp CredentialsAmazon S3AmazonDynamoDBAmazonMobile AnalyticsAmazon CognitoSync StoreK / VAuthentication & AuthorizationAmazonCognitoCheck TokenXEnd UsersUser CredentialsAuthenticationTokenAmazon CognitoIdentity BrokerIdentity Pool Id(Token)Identity IdAWS Temp Credentials(Depending onAuth / Unauth Role)Access toAWS Services(Including AmazonAPI Gateway)Identity IdAWS Temp CredentialsAmazon S3AmazonDynamoDBAmazonMobile AnalyticsAmazon CognitoSync StoreK / VCustom AuthenticationServiceGet TokenToken Authentication & AuthorizationAmazonCognitoAmazonCloudFrontAPI Gateway CacheAmazonCloudWatchMonitoring & LogsEndpoints onAmazon EC2 orAWS Elastic BeanstalkInternetAny other publicly accessible endpointAWS Lambda FunctionsCaching & ThrottlingAmazon APIGatewayXAccess toAPI MethodManaged Cache to Store API Responses Reduced Latency and DDoS Protection through Amazon CloudFrontSDK Generation for iOS, Android and JavaScriptHTTP 429 Response for API Throttling (Managed by the SDK) Swagger SupportRequest / Response Data Transformation and API MockingBusiness LogicAWSLambdaAWS Lambda FunctionsAmazonAPI GatewayAmazon S3AmazonDynamoDBAmazon CognitoSync StoreK / VAmazonSNSAmazonKinesisAlexa Skills Kit (ASK)Alexa Voice Service (AVS)HTTPSInvokeCustomEventsHTTPSRESTAPI Callconsole.log('Loading function');exports.handler = function(event, context) { console.log('value1 =', event.key1); console.log('value2 =', event.key2); console.log('value3 =', event.key3); // Echo back the first key value context.succeed(event.key1); // context.fail('Something went wrong');};Build Back-end Services that Perform at ScaleRespond Quickly to New InformationRun Your Code without Managing InfrastructureCost-effective and EfficientAmazon API Gateway+AWS LambdaResource + HTTP Verb MethodResource + HTTP Verb Method/books + GET GetAllBooksResource + HTTP Verb Method/books + GET GetAllBooks/books + POST CreateNewBookResource + HTTP Verb Method/books + GET GetAllBooks/books + POST CreateNewBook/books/{id} + GET GetBookById/books/{id} + PUT CreateOrUpdateBookById/books/{id} + DELETE DeleteBookByIdLets Put Everything TogetherMedia Sharing ApplicationAmazonAPI GatewayBucket Usage TableMedia MetadataTableUser StatTableUser LocationTableK / VAmazon CognitoIdentity BrokerAmazon CognitoSync StoreAmazonSNSAmazonKinesisMedia BucketLogTableAuthentication & AuthorizationUpload Picture / VideoUpdate Bucket UsageCheck Bucket UsageDelete Over Quota MediaSend Notification to User / ApplicationExtract Metadata and Write on DBUpdate User StatisticsCall REST API to Get Media DescriptionUpload Location InfoUpdate User LocationLook for Users or Media Near Current LocationCall REST API to Get User InfoSync Media and User RatingWrite History of ChangesCheck and Update RatingsInvokeReadWrite / SendMicroservice ArchitectureFocus on You Ideaaws.amazon.com/freehttp://aws.amazon.com/freeAmazon API Gateway and AWS Lambda:Better TogetherDanilo PocciaAWS Technical Evangelist@danilopdanilop

Recommended

View more >