SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Building well-architected .NET
apps
Imaya Kumar Jagannathan
Senior solution architect–Microsoft
platform
Amazon Web Services
S V C 2 0 9
Brian Lewis
Partner solution architect–Microsoft
platform
Amazon Web Services
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“I really urge you to visit the Well-Architected
Framework because there is a lot of advice about
how you can build very extensive architectures on
top of AWS.”
Werner Vogels
Chief technology officer
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
What is the AWS Well-Architected
Framework?
Pillars Design principles Questions
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Pillars of AWS Well-Architected Framework
Security Reliability
Performance
efficiency
Cost
optimization
Operational
excellence
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Why should I apply the AWS
Well-Architected Framework?
Build and
deploy faster
Lower or
mitigate risks
Make
informed
decisions
Learn AWS
best practices
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
https://aws.amazon.com/well-architected/
AWS Well-Architected
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
.NET Framework vs. .NET Core
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Hosting options for .NET applications
AWS Well-Architected
Framework
Virtual machines Containers Serverless
AWS Well-Architected
Serverless Lens
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
What direction should developers go?
Answer: “It depends”
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Rehosting options for Windows workloads
Right size on AWS VMs
Virtual machines (VMs)
Pros
• Usually the fastest
migration strategy
• No architectural
modifications
Cons
• Miss most “cloudy” benefits
of target platform—both
technical and financial
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Replatforming options for Windows
workloads
AWS Well-Architected Framework
Virtual machines
(with fabric improvements)
Containers
Managed
virtual machines
Pros
• Realize some benefits of
cloud platform
• Minimal architectural
modifications
Cons
• Can be some rework
required
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Refactoring options for Windows workloads
AWS Well-Architected Framework
Serverless
Containers
Pros
• Realize full potential of
target cloud platform
Cons
• Requires the largest
investment and level of
effort to realize
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
AWS Availability Zones
AZ
AZ
AZ AZ
Transit
Transit
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Modernize with AWS Auto Scaling
Scale your infrastructure automatically
▪ Adds or removes Amazon
Elastic Compute Cloud
(Amazon EC2) instances
based on metrics and health
checks
▪ No additional charge
▪ Minimize cost and maximize
performance
Availability Zone 2 (AZ2)
Availability Zone 1 (AZ1)
Auto Scaling Group
Minimum Size: 2
Desired Size: 4
Maximum Size: 6
AWS Auto Scaling
group
Launch
configuration
Scaling plan
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Multi–Availability Zone Microsoft SQL Server
Availability Zone 1
Private subnet
Availability Zone 2
AWS region
Private subnet
Synchronous commit
Automatic failover
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Architecture: Reference three-tier web
application
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Optimizing costs and performance with Windows, Intel
and AWS
• Over 57% of all Windows deployments in the cloud run on AWS, almost 2X over the closest provider
• AWS has over 10 years of experience running Windows applications
• AWS offers the broadest family of instances
• General purpose, compute and memory optimized
• Packaged, custom AMI’s
• Multiple pricing models
• Maximum performance with optimized instances
• High memory – Largest SAP certified in-memory instances
• Z1d – fastest compute with Intel Xeon Scalable processor for design automation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
AWS Instance Types and Intel Technologies
WS Instance Type
High Memory
instances (6 TB, 9
TB, 12 TB)
Memory Optimized
z1d
Compute
Optimized C5n
General
Purpose M5
Memory
Optimized
Burstable
I/O
Optimized
GPU GPU
Compute
P3
Memory
Optimized X1e
R5 T3 I3 G3
Intel® processor
Intel® Xeon® Platinum
8176M
Intel® Xeon® Scalable
Processors
3.0 GHz Intel Xeon
Platinum 8000
Intel® Xeon®
Platinum 8175M
series processors
Intel® Xeon®
Platinum 8000
Series
Intel® Xeon®
Scalable Proc
essors
Intel E5-2686 v4
processor
Intel Xeon E5-
2686 v4
processors
Intel® Xeo
n® E5-2686
v4
Intel® Xeon® E7 8880
processors
Intel® process technology Skylake 14nm Skylake-SP Skylake Skylake 14nm Skylake-SP Yes 22nm Ivy Bridge 14nm Broadwell
14nm
Broadwell
22nm Haswell
Intel® AVX AVX-512 AVX-512 AVX-512 AVX-512 AVX-512 AVX-512 Yes Yes Yes AVX 2.0
Intel® AES-NI Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Intel® TSX - - - - - - - - - Yes
Intel® Turbo Boost Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
SSDC+1 - - - - - - - - - Y
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
AWS Elastic Beanstalk
Your code
HTTP server
Application server
Language interpreter
Operating system
Host
Elastic Beanstalk configures each
Amazon EC2 instance in your
environment with the components
necessary to run applications for
the selected platform. No more
worrying about logging into
instances to install and configure
you application stack.
Focus on building your application
Provided by you
Provided and managed by Elastic Beanstalk
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Elastic Beanstalk
AWS CodeDeploy
Amazon EC2
Replatform: Blue/green deployments on AWS
Amazon
Route 53
ELB / ALB
Auto Scaling Group
Managed AD
Multi-AZ
SQL Server RDS
Multi-AZ
ElastiCache
Auto Scaling Group
50% 50%
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
The role of containers in modernization
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Windows Server containers
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Scheduling and orchestration
Cluster manager Placement engine
Running containers at scale with Amazon Elastic
Container Service (Amazon ECS) or Amazon ECS
for Kubernetes (Amazon EKS)
Availability Zone #1 Availability Zone #2 Availability Zone #3
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Hosting options for .NET applications
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Business benefits of modernization
Cost savings
(TCO/CO)
Resource
efficiency
Business
agility
Operational
resilience
What is it?
Launch of new products
75% faster (Unilever)
Critical workloads run in
multiple Availability Zones
and regions for robust DR
(Expedia)
50%+ reduction in TCO
(GE)
More than 500 hours per
year of server configuration
time saved (Sage)
AWS customer
success
Infrastructure cost
savings/avoidance from
moving to the cloud
Efficiency improvement by
function on a task-by-task
basis
Benefit of improving SLAs
and reducing unplanned
outage
Deploying new features/
applications faster and
reducing errors
Example Data-center consolidation Large-scale, compute-
intensive workloads
Improved agility and
developer productivity to
drive innovation and digital
transformation
IT process efficiencies
Initial
focus
Most compelling
cloud benefits
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Serverless
Serverless is the native architecture of the cloud that enables you to
shift more of your operational responsibilities to AWS, increasing
your agility and innovation
AWS cloud
func(object x)…
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
AWS shared responsibility model
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Serverless services
• Compute – AWS Lambda , Lambda@Edge , AWS Fargate
• Storage – Amazon Simple Storage Service (Amazon S3), Amazon Elastic File System
• Data stores – Amazon DynamoDB , Amazon Aurora Serverless
• API Proxy – Amazon API Gateway
• Interprocess messaging – Amazon Simple Notification Service (Amazon SNS), Amazon
Simple Queue Service (Amazon SQS)
• Orchestration – AWS Step Functions
• Analytics – Amazon Kinesis, Amazon Athena
• Developer tooling – AWS CodeBuild, AWS CodeDeploy, AWS CodeCommit, AWS
CodeStar
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-Architecting for operational excellence
• Leverage Amazon CloudWatch and AWS
X-Ray together
• Key Lambda KPIs
• Throttling and errors
• Duration metric
• Key API Gateway KPIs
• 5XXError, 4XXError
• Integration latency
• CloudWatch custom metrics for application
insights
public string FunctionHandler(string inputString, ILambdaContext context)
{
context.Logger.Log("Application Insight KPI");
return "Success";
}
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for operational excellence
API stage variable and Lambda alias to decouple design
Map stage variable to the Lambda live alias
Alias
version1
version2
version3
version4
version5
version6
version7
version8
Stage variable = function
Prod stage
Function=version5
Beta stage
Function=version6
Test stage
Function=version7
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for operational excellence
• Use AWS Serverless Application Model (AWS SAM) to package,
deploy, and model applications
• AWS SAM local for debugging Lambda function locally
• Don’t use it as a replacement for performance or regression testing
• Use Lambda Layers wherever appropriate
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Managing configuration variables to decouple code
from configuration
Use environment variable
When configuration is local to Lambda function
Configuration can be stored in plain text
Well-architecting for operational excellence
Use AWS Systems Manager Parameter Store or AWS Secrets Manager
Configuration shared across different Lambda functions
Configuration needs to be encrypted for security
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for security
Authorize API call within API Gateway
Choose a suitable authorization method
AWS Identity and Access Management (IAM) authorization
Amazon Cognito user pools
API Gateway custom authorizer
The API keys feature is not a security mechanism IAM authorization
API Gateway custom authorizer
Amazon Cognito user pools
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for security
Track vulnerability using logs
Check compliance requirement before logging
Enable API Gateway method-level logging
Input validation
Use API Gateway basic request validation
Implement application-specific deep validation
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for reliability
Monitor and manage service
limits
Ensure significant gap between service
limit and hard limit
Isolate Lambda concurrent execution limit
for critical and non-critical paths
Workloads across different accounts
based on profile, threat, and org structure
Regulate access rates
Enable API-level throttling
Control usage using API keys
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for reliability
Asynchronous calls and events
Follow asynchronous pattern where possible
Define SLA and fail-in-flight requests overriding it
Enable dead-letter queues (DLQs) for fails
Build for resiliency
Prefer Step Functions where possible
Implement stage pattern to rollback transactions
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for performance efficiency
Leverage optimization settings
Caching in API Gateway
DAX in DynamoDB
Global and local secondary indexes in
DynamoDB
Global scope for Lambda function
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for performance efficiency
• Deploy with consideration
• Deploy Lambda in an Amazon Virtual Private Cloud
(Amazon VPC) only when necessary
• Plan multi-Availability Zone NAT gateways
• Pre-JIT your Lambda code
• Use Amazon Linux image to compile the solution
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Well-architecting for cost optimization
• Resource allocation
• Load test for optimal memory allocation
• Optimize CloudWatch logs
• Configure log level such as INFO, DEBUG
• Control log size using retention period
• Optimize execution
• Avoid unnecessary Lambda functions
• Optimize code execution time
• Let Step Functions handle orchestration
• API Gateway validations also help reduce
costs
Call service using Lambda
Call service using service proxy
Amazon Kinesis
Data Firehose
Kinesis Data
Firehose
Amazon
S3
Amazon
S3
Amazon S3
Bucket for
Log Files
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S U M M I T
Case study
Thank you!
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Imaya Kumar Jagannathan
@imaya
Brian Lewis
@BrianLewis_
Ad

More Related Content

Recently uploaded (19)

APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 

Featured (20)

Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
 
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
 
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
 
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
Ad

Well Archictecture Framework dotNET.pdf

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Building well-architected .NET apps Imaya Kumar Jagannathan Senior solution architect–Microsoft platform Amazon Web Services S V C 2 0 9 Brian Lewis Partner solution architect–Microsoft platform Amazon Web Services
  • 2. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 3. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. “I really urge you to visit the Well-Architected Framework because there is a lot of advice about how you can build very extensive architectures on top of AWS.” Werner Vogels Chief technology officer
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T What is the AWS Well-Architected Framework? Pillars Design principles Questions
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Pillars of AWS Well-Architected Framework Security Reliability Performance efficiency Cost optimization Operational excellence
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Why should I apply the AWS Well-Architected Framework? Build and deploy faster Lower or mitigate risks Make informed decisions Learn AWS best practices
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T https://aws.amazon.com/well-architected/ AWS Well-Architected
  • 8. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T .NET Framework vs. .NET Core
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Hosting options for .NET applications AWS Well-Architected Framework Virtual machines Containers Serverless AWS Well-Architected Serverless Lens
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T What direction should developers go? Answer: “It depends”
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Rehosting options for Windows workloads Right size on AWS VMs Virtual machines (VMs) Pros • Usually the fastest migration strategy • No architectural modifications Cons • Miss most “cloudy” benefits of target platform—both technical and financial
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Replatforming options for Windows workloads AWS Well-Architected Framework Virtual machines (with fabric improvements) Containers Managed virtual machines Pros • Realize some benefits of cloud platform • Minimal architectural modifications Cons • Can be some rework required
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Refactoring options for Windows workloads AWS Well-Architected Framework Serverless Containers Pros • Realize full potential of target cloud platform Cons • Requires the largest investment and level of effort to realize
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Availability Zones AZ AZ AZ AZ Transit Transit
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Modernize with AWS Auto Scaling Scale your infrastructure automatically ▪ Adds or removes Amazon Elastic Compute Cloud (Amazon EC2) instances based on metrics and health checks ▪ No additional charge ▪ Minimize cost and maximize performance Availability Zone 2 (AZ2) Availability Zone 1 (AZ1) Auto Scaling Group Minimum Size: 2 Desired Size: 4 Maximum Size: 6 AWS Auto Scaling group Launch configuration Scaling plan
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Multi–Availability Zone Microsoft SQL Server Availability Zone 1 Private subnet Availability Zone 2 AWS region Private subnet Synchronous commit Automatic failover
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Architecture: Reference three-tier web application
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Optimizing costs and performance with Windows, Intel and AWS • Over 57% of all Windows deployments in the cloud run on AWS, almost 2X over the closest provider • AWS has over 10 years of experience running Windows applications • AWS offers the broadest family of instances • General purpose, compute and memory optimized • Packaged, custom AMI’s • Multiple pricing models • Maximum performance with optimized instances • High memory – Largest SAP certified in-memory instances • Z1d – fastest compute with Intel Xeon Scalable processor for design automation
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Instance Types and Intel Technologies WS Instance Type High Memory instances (6 TB, 9 TB, 12 TB) Memory Optimized z1d Compute Optimized C5n General Purpose M5 Memory Optimized Burstable I/O Optimized GPU GPU Compute P3 Memory Optimized X1e R5 T3 I3 G3 Intel® processor Intel® Xeon® Platinum 8176M Intel® Xeon® Scalable Processors 3.0 GHz Intel Xeon Platinum 8000 Intel® Xeon® Platinum 8175M series processors Intel® Xeon® Platinum 8000 Series Intel® Xeon® Scalable Proc essors Intel E5-2686 v4 processor Intel Xeon E5- 2686 v4 processors Intel® Xeo n® E5-2686 v4 Intel® Xeon® E7 8880 processors Intel® process technology Skylake 14nm Skylake-SP Skylake Skylake 14nm Skylake-SP Yes 22nm Ivy Bridge 14nm Broadwell 14nm Broadwell 22nm Haswell Intel® AVX AVX-512 AVX-512 AVX-512 AVX-512 AVX-512 AVX-512 Yes Yes Yes AVX 2.0 Intel® AES-NI Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Intel® TSX - - - - - - - - - Yes Intel® Turbo Boost Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes SSDC+1 - - - - - - - - - Y
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS Elastic Beanstalk Your code HTTP server Application server Language interpreter Operating system Host Elastic Beanstalk configures each Amazon EC2 instance in your environment with the components necessary to run applications for the selected platform. No more worrying about logging into instances to install and configure you application stack. Focus on building your application Provided by you Provided and managed by Elastic Beanstalk
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Elastic Beanstalk AWS CodeDeploy Amazon EC2 Replatform: Blue/green deployments on AWS Amazon Route 53 ELB / ALB Auto Scaling Group Managed AD Multi-AZ SQL Server RDS Multi-AZ ElastiCache Auto Scaling Group 50% 50%
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T The role of containers in modernization
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Windows Server containers
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Scheduling and orchestration Cluster manager Placement engine Running containers at scale with Amazon Elastic Container Service (Amazon ECS) or Amazon ECS for Kubernetes (Amazon EKS) Availability Zone #1 Availability Zone #2 Availability Zone #3
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Hosting options for .NET applications
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Business benefits of modernization Cost savings (TCO/CO) Resource efficiency Business agility Operational resilience What is it? Launch of new products 75% faster (Unilever) Critical workloads run in multiple Availability Zones and regions for robust DR (Expedia) 50%+ reduction in TCO (GE) More than 500 hours per year of server configuration time saved (Sage) AWS customer success Infrastructure cost savings/avoidance from moving to the cloud Efficiency improvement by function on a task-by-task basis Benefit of improving SLAs and reducing unplanned outage Deploying new features/ applications faster and reducing errors Example Data-center consolidation Large-scale, compute- intensive workloads Improved agility and developer productivity to drive innovation and digital transformation IT process efficiencies Initial focus Most compelling cloud benefits
  • 28. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Serverless Serverless is the native architecture of the cloud that enables you to shift more of your operational responsibilities to AWS, increasing your agility and innovation AWS cloud func(object x)…
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T AWS shared responsibility model
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Serverless services • Compute – AWS Lambda , Lambda@Edge , AWS Fargate • Storage – Amazon Simple Storage Service (Amazon S3), Amazon Elastic File System • Data stores – Amazon DynamoDB , Amazon Aurora Serverless • API Proxy – Amazon API Gateway • Interprocess messaging – Amazon Simple Notification Service (Amazon SNS), Amazon Simple Queue Service (Amazon SQS) • Orchestration – AWS Step Functions • Analytics – Amazon Kinesis, Amazon Athena • Developer tooling – AWS CodeBuild, AWS CodeDeploy, AWS CodeCommit, AWS CodeStar
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-Architecting for operational excellence • Leverage Amazon CloudWatch and AWS X-Ray together • Key Lambda KPIs • Throttling and errors • Duration metric • Key API Gateway KPIs • 5XXError, 4XXError • Integration latency • CloudWatch custom metrics for application insights public string FunctionHandler(string inputString, ILambdaContext context) { context.Logger.Log("Application Insight KPI"); return "Success"; }
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for operational excellence API stage variable and Lambda alias to decouple design Map stage variable to the Lambda live alias Alias version1 version2 version3 version4 version5 version6 version7 version8 Stage variable = function Prod stage Function=version5 Beta stage Function=version6 Test stage Function=version7
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for operational excellence • Use AWS Serverless Application Model (AWS SAM) to package, deploy, and model applications • AWS SAM local for debugging Lambda function locally • Don’t use it as a replacement for performance or regression testing • Use Lambda Layers wherever appropriate
  • 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Managing configuration variables to decouple code from configuration Use environment variable When configuration is local to Lambda function Configuration can be stored in plain text Well-architecting for operational excellence Use AWS Systems Manager Parameter Store or AWS Secrets Manager Configuration shared across different Lambda functions Configuration needs to be encrypted for security
  • 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for security Authorize API call within API Gateway Choose a suitable authorization method AWS Identity and Access Management (IAM) authorization Amazon Cognito user pools API Gateway custom authorizer The API keys feature is not a security mechanism IAM authorization API Gateway custom authorizer Amazon Cognito user pools
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for security Track vulnerability using logs Check compliance requirement before logging Enable API Gateway method-level logging Input validation Use API Gateway basic request validation Implement application-specific deep validation
  • 38. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for reliability Monitor and manage service limits Ensure significant gap between service limit and hard limit Isolate Lambda concurrent execution limit for critical and non-critical paths Workloads across different accounts based on profile, threat, and org structure Regulate access rates Enable API-level throttling Control usage using API keys
  • 39. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for reliability Asynchronous calls and events Follow asynchronous pattern where possible Define SLA and fail-in-flight requests overriding it Enable dead-letter queues (DLQs) for fails Build for resiliency Prefer Step Functions where possible Implement stage pattern to rollback transactions
  • 40. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for performance efficiency Leverage optimization settings Caching in API Gateway DAX in DynamoDB Global and local secondary indexes in DynamoDB Global scope for Lambda function
  • 41. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for performance efficiency • Deploy with consideration • Deploy Lambda in an Amazon Virtual Private Cloud (Amazon VPC) only when necessary • Plan multi-Availability Zone NAT gateways • Pre-JIT your Lambda code • Use Amazon Linux image to compile the solution
  • 42. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Well-architecting for cost optimization • Resource allocation • Load test for optimal memory allocation • Optimize CloudWatch logs • Configure log level such as INFO, DEBUG • Control log size using retention period • Optimize execution • Avoid unnecessary Lambda functions • Optimize code execution time • Let Step Functions handle orchestration • API Gateway validations also help reduce costs Call service using Lambda Call service using service proxy Amazon Kinesis Data Firehose Kinesis Data Firehose Amazon S3 Amazon S3 Amazon S3 Bucket for Log Files
  • 43. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. S U M M I T Case study
  • 44. Thank you! S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Imaya Kumar Jagannathan @imaya Brian Lewis @BrianLewis_