10 Things Architects Should Know About Serverless Architecture
10 Things Architects Should Know About Serverless Architecture
Serverless Architecture
Duvier Zuluaga
Partner Solutions Architect
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What to expect …
• General level.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
1- It is not 10 things anymore L
more likely you need to know 100s things these days!
2020 ??? If you are a historian, none of these dates are accurate J
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Your VPC
AWS Lambda
API functions Endpoints
Gateway in your VPC
cache
Mobile apps
AWS
Endpoints on Lambda
Amazon EC2 functions
Websites
Internet Amazon
CloudFront
All publicly
accessible
endpoints
Services
Regional API Endpoints
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Task 1 is Learning
Serverless landscape is evolving so fast. Keep continue your learning.
Start with:
aws.amazon.com/serverless/
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
2- Monolithic /Microservice / Serverless
Best Practices for Building Enterprise Grade APIs with Amazon API Gateway
www.youtube.com/watch?v=9ElpSPXk-g8
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
3- Microservices API Driven Architecture is not
REST-API only any more.
REST APIs
GraphQL
Event WebSockets (via AppSync or API Gateway) You might want to ask these questions
from your customer:
IoT Core
• Mobile Development? Web? Or both?
• Subscription & Realtime notification?
• Performance ?
• WAF ?
• Private APIs
• Custom Authentication
• Security
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
4- Benefits of Serverless Architecture
Green Computing
Elasticity
Innovation and Time to market
5=0
• Regulatory compliance requirements.
• Validation
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security Overview of AWS Lambda
https://d1.awsstatic.com/whitepapers/Overview-AWS-Lambda-Security.pdf
OWASP Foundation
https://www.owasp.org/images/5/5c/OWASP-Top-10-Serverless-Interpretation-en.pdf
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Secrets Manager
Rotate Secrets
Manage access Secure and
Safely Pay as you go
with fine-grained audit secrets
policies centrally
https://aws.amazon.com/blogs/security/how-to-securely-provide-database-
credentials-to-lambda-functions-by-using-aws-secrets-manager/
6- Workflow Engines
§ Synchronise S3 Buckets
§ EBS Snapshot Management
§ Video on-demand
§ Image or Document Processing
§ Media Analytics
§ Long Lived Transaction
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Workflow configuration
• Built-in service primitives
• AWS service integrations Some latest AWS Step Function features
• Coordination of distributed released in 2019:
components
• Component reuse
Aug - Nested workflows.
• Workflow abstraction
Sep - Dynamic Parallelism in workflows.
• State management
Oct - Amazon SageMaker integration.
• Built-in error handling re:Invent - AWS Step Functions Express Workflows
• History of each execution
• Visual monitoring
• High availability
• Automatic scaling
• Security and compliance
• Pay per use
• High volume orchestration
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
7- Event Driven Architecture
- Message bus
- Message queuing
- Message buffering Amazon
Simple
Amazon
Simple Queue
Amazon MQ
- Event stream
- Data stream
- …
Amazon Kinesis Amazon Kinesis AWS Data Amazon
Data Streams Data Firehose Pipeline Managed
Streaming for
Kafka
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
8- CI/CD
You need to design or integrate to a CI/CD that works for your enterprise customer.
AWS Serverless Application Model AWS Cloud Development Kit AWS Amplify
SAM CDK
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
9- Monitoring
Define how the serverless monitoring can be architected or integrated for the app.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
10- Performance Optimization
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
11- Serverless Well Architected
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.