PDF_Slide__Memodernisasi_aplikasi_Microsoft_Anda_dengan_cepat_di_AWS.pdf

Ropiudin5 46 views 42 slides Apr 29, 2024
Slide 1
Slide 1 of 42
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42

About This Presentation

memoderenisasi aplikasi microsoft dengan cepat menggunakan aws


Slide Content

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Builders Online Series
Firman Priatno
Senior Solution Architect –AWS Indonesia
Rapidly modernize your
Microsoft applications
on AWS

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
•Market Observation
•Porting Assistant for .NET
•AWS Microservice Extractor for .NET
•Database modernization with Babelfish
for Aurora PostgreSQL
Agenda

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Market Observation

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
.NET 5.0
.NET Framework 1.0
.NET Framework 2.0
.NET Framework 4.0
.NET Framework 4.5
.NET Core 1.0
.NET Core 2.0
.NET Core 3.0
.NET Framework 4.8
.NET 6.0
.NET core runs on both
Linux & Windows

.NET 7.0
Microsoft officially announced
.NET full framework 4.8 is the
last version. No more new features.
.NET Framework only
works on Windows
Avoid paying Windows Licensing fees
Saves ~50% of instance running cost
20232022202120202019201720162012201020052002

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
.NET Core ❤ARM processors
AWS Graviton2
Burstable Compute optimised General purposeMemory optimised
ARM64 Performance
in .NET 7AWSGraviton3
M7g R7g C7g T4g
•Up to 25% better compute performance.
•Up to 2x higher floating-point
performance.
•Up to 2x faster cryptographic performance.
•Up to 3x better ML performance w/
bfloat16.
•DDR5 memory 50% more memory b/w.
Up to 40% better price performance over
comparable x86 instances
AWS Graviton2 AWS Graviton3

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Upgrade .NET Framework
Upgrade legacy .NET Frameworks to .NET 4.8.
Windows OS is kept as it is.
E.g.
2.0 →4.8
3.5 →4.8
4.5 →4.8
Move the codebase to .NET core
Usually the OS is also upgraded to Linux containers.
DevOps practices are improved. Avoid paying ~50% of
instance running cost as Windows licensing fees.
Change the data store
Mix of Dynamo DB, RedShift, ElastiCache& Aurora
SaaSification
Change the business model
Modernization path we typically see
Sooner or later customer has
to do these steps

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Porting Assistant for .NET

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Assisted portingAssessment reportScan
Porting Assistant
for .NET
Scans .NET Framework
applications to find APIs and
NuGet Packages that are
incompatible with .NET Core
Generates compatibility
assessment and suggests
available replacements
Updates packages and
changes project reference
files for you to start porting
Insight and assistance
for porting from .NET
Framework to .NET Core

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monolithic vs
Microservices Architecture

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Monolithic application Refactored microservices
Limits experimentation: Independent teams: can build, test, and release
new functionality independently
Impacts scalability: a spike in demand may
require architectural changes to the entire app
Impacts availability:
Granular scaling: without replicating the entire
application
Localized failures: don’t risk uptime for the
whole application

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges when moving to microservices
Need to use multiple tools to co-relate source code and runtime metrics

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Microservice
Extractor for .NET

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We are going to extract Inventory as a microservice
These classes depend on Inventory
Inventory needs these three classes

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service Extraction
Inventory ServiceRest of the modified application
Service
API

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service Extraction
Inventory ServiceRest of the modified application
Service
API

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service
API
Service Extraction
Inventory ServiceRest of the modified application
Two implementation of the same interface
RemoteOriginal

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service
API
Service Extraction
Inventory ServiceRest of the modified application

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Microsoft SQL Server
modernization

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2 Instance Cost License Cost
~70%~30%
R5.2xlarge instance + 100GB EBS Running on Linux + Sydney
Microsoft SQL Server standard cost on Amazon EC2

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges in migrating from commercial
to open source
Tools
1. AWS Schema Conversion Tool
2. AWS Database Migration Service (DMS)
Application
TDS Endpoint
T-SQL
Microsoft SQL Server
Application
Amazon Aurora PostgreSQL
PostgreEndpoint
PL/pgSQL
Previously…
Rewrite T-SQL
Rewrite app code
Switch drivers

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Babelfish
Amazon Aurora
DB
Application
MS SQL Server code
& client drivers
Application
PostgreSQL code
PostgreSQL drivers
Babelfish endpoint
PostgreSQL endpoint
T-SQL over TDS
PL/pgSQL
Translation layer enables Aurora PostgreSQL
to understand Microsoft SQL Server’s
proprietary T-SQL
Keep existing queries & tools

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Babelfish for PostgreSQL (Open-Source Project)
Apache 2.0
license
Use it for any purpose, innovate
and distribute your modifications
with confidence
Contribute to help steer the
direction of Babelfish
Customize and add
new features
Is community-driven and
provides transparency into
the feature roadmap
Available on GitHub

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Babelfish Compass Report
Out of 27functions only
oneneeds our attention
Out of 817stored
procedures only 23need
our attention
Out of 145tables only
oneneeds our attention
Found no
issues

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Focus on use case. Don’t fix everything.
Commented out stored procedure body
Error Message: MY NOT IMPLEMENTED EXCEPTION-[dbo].[UpdateTabSetting]
Stack trace
During Testing
Original stored procedure Commented out stored procedure
Raise an error when
the stored
procedure is called

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Babelfish Compass Rewrite
BabelfishCompass.bat MyReportC:\MyScript.sql -rewrite -reportoptionsxref,status=all,detail

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Babelfish Compass Report
Manual Rewrite
Found the
exact location
of the issue
Used twice with
the same
parameters

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
•~3 to 6 Hours
•Self-serviced & self-paced
•We will provide free AWS
accounts to try the labs
Run the free Babelfish
App Modernization
Workshop
•~ Takes about 15min
•Do an assessment
with the help of AWS
solution architects
Run a PoCwith
BabelfishCompass
BabelfishApp Modernization Workshop
Call to action
We have capable
partners with proven
experience to
modernize databases.
Plug in a Partner
Build your business
case faster
Access AWS PoC
Funding
Scan Me

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
•Market Observation
•Porting Assistant for .NET
•AWS Microservice Extractor for .NET
•Database modernization with Babelfish
for Aurora PostgreSQL
What you learned today

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Access 600+ free digital courses with AWS Skill Builder
Focus on the cloud skills and services that are most relevant to
you across 30+ AWS solutions, including digital self-paced
learning plans and ramp-up guides.
AWS TRAINING & CERTIFICATION
LEARN YOUR WAY EXPLORE.SKILLBUILDER.AWS »
Validate your cloud expertise with an AWS Certification
Take the step towards earning an industry-recognisedcredential.
Learn more about how to become an AWS Certified Cloud
Practitioner, and AWS resources that can help you prepare.
ACCESS RESOURCES TO PREPARE FOR YOUR EXAM »

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you for attending AWS Builders Online Series
We hope you found it interesting! A kind reminder to complete the survey.
Let us know what you thought of today’s event and how we can improve the event
experience for you in the future.
[email protected]
twitter.com/AWSCloud
facebook.com/AmazonWebServices
youtube.com/user/AmazonWebServices
linkedin.com/company/amazon-web-services
twitch.tv/aws

© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
Sriwantha Attanayake
Principal Partner Solution Architect
www.linkedin.com/in/sriwantha
Tags