Professional Documents
Culture Documents
© 2020, Amazon Web Services, Inc. or Its Affiliates. All Rights Reserved. Amazon Confidential and Trademark
© 2020, Amazon Web Services, Inc. or Its Affiliates. All Rights Reserved. Amazon Confidential and Trademark
Agenda
12:00 Break
Kubernetes empresarial con EKS. Integraciones y ejecución
12:10
sobre entornos serverless con Fargate
13:05 Ejecución de contenedores a escala con instancias de Spot
14.00 Wrap-up
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Who we are
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Modern Application Development
Achieving excellence in the cloud
Alfredo Velasco
Modern App Development – Serverless Specialist
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Application Stategies
Retire Replatform
Rehost
“Lift and shift” Refactor
SaaS
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Nuevas funcionalidades para
desarrollar aplicaciones en AWS
Alfredo Velasco
Modern App Development – Serverless Specialist
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Amazon views serverless as the native architecture
of the cloud
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Comparison of operational responsibility - Compute
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Part of the AWS Serverless Portfolio
AWS
Amazon AWS Amazon Amazon Aurora Amazon
Lambda
S3 Fargate DynamoDB Serverless Kinesis
APPLICATION INTEGRATION
DEVELOPER TOOLS
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Serverless applications
Changes in Node.js
data state Python
Java
Requests to C#
endpoints Go
Ruby
Changes in Runtime API
resource state
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Lambda execution model
Synchronous (push) Asynchronous (event) Stream (poll-based)
Amazon
Amazon API DynamoDB
Amazon
Gateway SNS
Amazon
Kinesis
Amazon
S3
Amazon SQS
/order
reqs
changes
AWS Lambda
Lambda Lambda service
function function
function
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Lambda Destinations
• Invocation criteria:
• 6MB payload
• Maximum Batch Window
• Maximum Batch Size
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Dealing With Data Streams Spikes
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Enhanced Controls on Stream Processing
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Trace Down Bad Records with BisectOnFunctionError
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Amazon SQS FIFO as an event source
Provisioned Concurrency for AWS Lambda
Amazon
EFS
file system
New Workloads on AWS Lambda
Simplify Application Architecture
Process files of any size
Reduce Costs
22
Amazon API Gateway
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
API Architecture
Lambda
Functions
Edge-Optimized
Fully-managed Amazon EC2
Mobile client API Gateway Cache
CloudFront (REST only)
Distribution
HTTPS Any other
AWS service
Websites
All publicly
accessible
Customer-managed endpoints
CloudFront Distribution
Regional
Services
Endpoints
Applications in VPC
& Services
in the same
AWS Region AWS Direct
Connect
Private
Applications
& Services Amazon
in VPC CloudWatch On-premises
Monitoring
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Types of APIs: Supported Protocol Details
Client Client
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
26
HTTP APIs for Amazon API Gateway
Achieve up to 70% cost reduction and 60% latency reduction
compared to REST APIs.
• Resource Policies:
• Apply global security for the entire API
• IAM Authorization:
• Provides AuthN & AuthZ via IAM credentials (new for HTTP APIs)
• Lambda Authorizer: (aka custom authorizer)
• Perform any type of Auth required. ie. Basic, Oauth, etc (new for HTTP APIs)
• Cognito Authorizer:
• Integrate with Cognito User Pools
• JWT and OpenID Connect
• Available in HTTP APIs
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Step Functions
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Turning functions into apps
“I want to invoke
“I want to sequence “I want to retry “I want to run tasks another Step
tasks” failed tasks” in parallel” Functions”
C
A B A A B A
Parallel State
“I want
A try/catch/finally” “I want to dynamically run
“I want to wait for a
Callback
tasks in parallel”
B ? C A A C A Services
“I want to select tasks
based on data” Map State
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Two Workflow Types
EXPRESS
STANDARD
WORKFLOWS
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Workflows Types
Flexibility to select the right workflow type for your needs, or integrate them together where needed
• IT automation, Report generation, Order • Pay per use at $0.20 per million requests
processingPayment and billing and $0.000000312 per second
processing. Machine learning model
training • High volume data processing, IoT data
ingestion, Order / cart validation,
• Integrations with long-running tasks on Payment reconciliation
AWS services - AWS Batch, AWS Fargate,
Amazon SageMaker, and AWS Glue • Does not log events into DB
• Max execution time of 5 mins
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Developer Experience
Tooling
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Serverless Application Model (SAM)
AWS SAM CLI: create, build, test and deploy your applications
https://github.com/awslabs/serverless-application-model
https://github.com/awslabs/aws-sam-cli
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Local testing
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Deploy : Dev/Preprod or Prod Environment
Laconia
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
CI/CD Pipeline
CI/CD
AWS
CodePipeline
AWS CodeCommit AWS CodeBuild AWS SAM/ AWS Codebuild AWS SAM /
Build CloudFormation Integration tests CloudFormation
Unit tests
Role Role
Staging
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark. Prod
Developer Experience
Observability
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Three pillars of observability
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Serverless Observability
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Lambda Ready Monitoring Partners
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
CloudWatch built-in metrics:
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
AWS Lambda API Extensions
PREVIEW
Ø Let customers run agents by extending Lambda’s execution
environment
Ø Manage secrets / token renewal process, run daemon to collect metrics over UDP,
transport telemetry to any destination directly from the Lambda environment
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Lambda Lifecycle Visibility Pre-Extensions
Execution
environment
Customers must embed code
into the function logic in
order to gain visibility during
PREVIEW
spun up function invocation
Duration
Execution
Invoke environment
Invoke spun down
Time
CloudWatch and X-Ray
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Lambda Extended Lifecycle
Execution
environmen
t spun up
PREVIEW
Duration
Execution
Invoke environment
Invoke spun down
Time
Enable
Ideally, run when there is something to Provide time after the invoke Provide time for
customers
do, and not run when there is nothing to to get telemetry about this some clean-up /
and
do. invoke out final tasks
partners to
start
services
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
CloudWatch Lambda Insights
PREVIEW
Ø Provides access to automated dashboards summarizing the performance and
health of your Lambda functions that provide visibility into issues such as
memory leaks or performance changes caused by new function versions.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
CloudWatch ServiceLens
Unified access to metrics, logs, traces and canaries.
Enabling performance monitoring from end-user interaction to infrastructure layer
insights Amazon CloudWatch AWS X-Ray
Metrics Traces
Logs Analytics
Events Service Map
Alarms Latency detection
Dashboards (server & client)
ServiceLens
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.
Thank you
© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark.