Mais conteúdo relacionado
Semelhante a Serverless - State of the Union (20)
Mais de Amazon Web Services (20)
Serverless - State of the Union
- 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless: State of the Union
Danilo Poccia
Principal Evangelist, Serverless
@danilop
- 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
- 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
THE SERVERLESS OPERATIONAL MODEL
No provisioning,
no management
Pay for value
Automatic
scaling
Highly available
and secure
- 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS SERVERLESS ADVANTAGE
Agility Total Cost efficiency
“The size of our team is half of what
is normally needed to build and
operate a site of this scale.” – Bustle
“Using AWS Lambda, we’ve
increased cost efficiency by a factor
of two.” – FINRA
Elasticity
“[We have] experienced near-zero
downtime and near-zero performance
degradation while serving 200-300
million IPO requests per month” -
Financial Engines
“What took us just a few days to build
using a serverless solution based on
AWS Lambda would have taken us six
months to build from scratch.”-
Edmunds
- 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
FOCUS ON DIFFERENTIATORS
Installing, configuring, and managing
my compute infrastructure is critical
to achieving my goals.
Having a standardized, flexible, and
on-demand compute environment is
critical to achieving my goals.
- 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS SERVERLESS PORTFOLIO
APPLICATION PRIMITIVES – COMPUTE AND DATASTORES
AWS
Lambda
AWS
Fargate
Amazon
API Gateway
Amazon
SNS
Amazon
MQ
Amazon
SQS
AWS
Step Functions
APPLICATION INTEGRATION
DEVELOPER TOOLS
SECURITY AND ADMINISTRATION
Amazon Aurora
Serverless
Amazon
S3
Amazon
DynamoDB
AWS
AppSync
AWS
IAM
Amazon
Cognito
Amazon
Inspector
Amazon
VPC
Amazon
GuardDuty
AWS
CloudFormation
AWS
Cloud9
AWS
CloudTrail
Amazon
CloudWatch
AWS
X-Ray
AWS
CodePipeline
AWS
Config
AWS
SSO
AWS
Shield
AWS
WAF
Amazon
Kinesis
AWS Serverless
Application
Repository
- 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AN EXPANDING LIST OF SERVERLESS CUSTOMERS
- 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EMERGING SERVERLESS MATURITY MODEL
AUGMENT
INFRASTRUCTURE
• Cron jobs
• Simple automation
• Extend AWS services
AUXILIARY
APPLICATIONS
• Internal
microservices
• Streaming
analytics
• Back office
workflows
BUSINESS CRITICAL
APPLICATIONS
• Time-sensitive processing
• User facing services
• IoT workflows
• Critical data workflows
- 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
processes 4,000 requests
per second
ingests, analyzes and
stores 17+ petabytes of
data per season
processes half a trillion
validations of stock
trades daily
executes 16 million
requests a month
processes tens of
billions of data
points monthly
SERVERLESS AT SCALE IS THE NEW NORM
API traffic to register and license
more than 47 million driver
records in Great Britain
- 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
High scale and resiliency at very low cost
Financial Engines is using AWS Lambda to power the core of its
computational “engines” which automate portfolio management
combined with access to human advisors.
Benefits of AWS Serverless
• Handles 200–300 million server requests per
month at rates of up to 60,000 per minute
• Reduced infrastructure costs by more than 90
percent
• Zero server downtime
Using AWS Lambda will
enable us to scale to serve
millions more who need
financial help.
Paul Gibson
Principal System Architect
- 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reduced cost and time, faster innovation
National Geographic uses AWS Serverless technologies to make 130
years of valuable accessible and discoverable.
Benefits of AWS Serverless
• Reduced development time by months
• Provides personalized access to 130 years of
multichannel content
• Leveraged managed services like Amazon
Rekognition and Amazon SNS to add
capabilities previously scoped out
The breadth of services
available on AWS gave us
the option to maximize our
agility and speed by
leapfrogging to serverless.
Nik Khilnani
Senior Director of Platform Development
- 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits of AWS Serverless
• Reduces new-account provisioning time from
2 weeks to 10 minutes
• Provides complete visibility into all accounts’
security profiles
• Ensures uniform configurations and controls
Faster Time to Market
Autodesk goes serverless in the AWS Cloud, reduces account-creation
time by 99%
Going serverless with AWS
Lambda relieves us from
managing servers and lets
us concentrate on building
features.
Alan Williams
Enterprise Architect
- 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
GROWING ECOSYSTEM
- 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
WHAT DRIVES OUR PRIORITIES?
Excelling in service fundamentals
Availability, latency, security, scale and associated controls
Enabling new application development patterns
New patterns through events, workflows, functions, and APIs
Minimizing undifferentiated code
Eliminating duplicate code, increase reuse
Empowering serverless developers and operations
Meet developers and operations where they are, lead them where they need to be
- 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SERVICE FUNDAMENTALS: 2018 RECAP
Enhanced compliance regime
ü FEDRAMP for API Gateway and Lambda
ü HIPAA for Step Functions, Serverless Application Repository
ü GDPR for all services
Scale, availability, and pricing improvements
ü AWS Lambda SLA (99.95%)
ü API Gateway tiered pricing (as low as $1.51/million)
ü Increased Step Functions throughput (1,000 transitions/sec)
- 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH : LAMBDA WITH FIRECRACKER
Security
Lightweight container
encapsulated with VM barrier
Workloads can run concurrently
with strong process isolation
Greater efficiencySpeed by design
Accelerates kernel loading to
reduce cold start times
User-space code <125ms and
150 microVMs /second/host
More processes can be run per
instance.
More efficient use of compute
resources.
- 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
NEW APPLICATION PATTERNS: RECAP
Better event integration
across services
ü SQS as an event source for
Lambda
ü Kinesis fanout improvements
– up to 20 Lambda
consumers
ü 5X faster reads from Kinesis
to AWS Lambda
Increased limits for more resource
intensive workloads
ü 15 minute functions
ü Increase maximum payload size of
asynchronous events to 256KB
Richer API controls
• Private APIs
• Increased API limits
• Granular resource policies
• Cross account authorizers
- 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
API GATEWAY CONNECTIVITY
To
From
Internet
Regional
AWS Service
Customer VPC
Customer VPC
Internet
Regional
AWS Service
Core Service
(Edge-optimized, public integrations)
Private VPC
Regional Endpoints
Regional Endpoints
+Private VPC
Private APIs
- 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH: RICHER WORKFLOWS
Simplify building workloads such as
order processing, report generation,
and data analysis
Add services in minutes
Write and maintain less code
- 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SIMPLER INTEGRATION, LESS CODE
With serverless polling With new service integration
AWS
Lambda
functions
No
Lambda
functions
- 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH: ALB INTEGRATION WITH LAMBDA
Enables easier transition from
existing compute stacks to
Lambda
Mix and match compute
options to build your backends
Robust load balancer controls
(health checks, programmable
rules engine, traffic shaping)
- 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SOON: SERVERLESS WEBSOCKETS
Build real-time two-way
communication applications
like chat and streaming
dashboards
Serverless APIs to handle
connections and messages
transfer between users and
backend services
All existing API Gateway
integrations out of the box
- 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH: LAMBDA LAYERS
Lets functions easily share code -
Upload layer once, reference
within any function
Promote separation of
responsibilities, lets developers
iterate faster on writing business
logic
Built in support for secure sharing
by ecosystem
- 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH: NESTED APPS (SAR)
Deploy new architectures as a set of
serverless apps (nesting)
Foster best organizational practices
and reduce duplication of effort
Share components, modules and
full applications privately with
teams or publicly with others to
improve agility
- 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DEVELOPERS AND OPERATIONS: 2018 RECAP
Better language selection
ü Added support for Go, Node
8, .NET core 2.1, Powershell
and Python 3.7 programming
languages
Powerful controls
ü API Gateway developer portal
(available in SAR & Github)
ü API Gateway WAF integration
ü API Gateway X-Ray support
Streamlined developer tooling
ü One click API Gateway endpoint
creation via console
ü SAM CLI open source and
Go debugger
ü SAR enhanced search and
private/public application filtering
ü SAR support for IAM, SQS, Step
Functions, Glue, Route53 and more
- 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
NEW: CUSTOM RUNTIMES
Bring any Linux compatible language
runtime;
Powered by new Runtime API -
Codifies the runtime calling
conventions and integration points
At launch powering Ruby support in
AWS Lambda, more runtimes from
partners (like Erlang)
Custom runtimes distributed as
“layers”
Layers Rule
Stack
- 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH: CROSS TOOLCHAIN APP VIEW
NEW: Application Views on the
Lambda Console let you view and
monitor all resources that
together make up your
application.
NEW: Toolkit for JetBrains’ IDEs -
IntelliJ and PyCharm - let
developers use their own tools to
create, test, step-through debug
and deploy serverless applications.
- 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH : DYNAMODB ON-DEMAND
- 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LAUNCH : DYNAMODB TRANSATIONS
- 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Nested Apps to Simplify Solving Recurring Problems
- 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Nested Apps in Your SAM template
TweetSource:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:077246666028:applications/
aws-serverless-twitter-event-source
SemanticVersion: 2.0.0
Parameters:
SearchText: '#serverless -filter:nativeretweets'
TweetProcessorFunctionName: !Ref MyFunction
SSMParameterPrefix: twitter-event-source
PollingFrequencyInMinutes: 1
BatchSize: 15
StreamModeEnabled: true
Serverless Application Repository ARN
Lambda function in the same template
- 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
@danilop