Ported to Cloud with Wing_ Blue ZnZone app from _Hexagonal Architecture Explained_.pdf
AsherSterkin
91 views
12 slides
Jul 03, 2024
Slide 1 of 12
1
2
3
4
5
6
7
8
9
10
11
12
About This Presentation
Presentation to Wing wing community. Porting "Blue Zone" application featured in the "Hexagonal Architecture Explained" book.
Size: 1.08 MB
Language: en
Added: Jul 03, 2024
Slides: 12 pages
Slide Content
Ported to
Cloud
Presenter: Asher Sterkin
Software Technology Expert
“Lift-and-Shift” to Cloud Seldom Works Well
Directly porting software
applications to the cloud
often results in a system
that is more fragile, more
expensive, less secure,
and less performant.
Illustration created using DALLE-3 by OpenAI
Winglang + Hexagonal Architecture is a Better Choice
Using the new cloud-oriented
programming language Wing
in combination with
Hexagonal Architecture has
proven to be a winning
combination striking the right
balance between cost,
performance, flexibility, and
security.
Illustration created using DALLE-3 by OpenAI
The Hexagonal Architecture Essentials
Insulate “Value” from “Stuff”
The “Blue Zone” Application
The bluezone.endor.w Folder Structure
The bluezone.endor.w Folder Structure
application
src
bluezone.endor.w
test
outside
usecase.X.test.w
steps BuyTicketTestSteps.w
CheckCarTestSteps.w
ForIssuingFines.w
…
Parser.w
ports
usecases
ForParkingCars.w
BlueZone
BuyTicket
CheckCar
Code
RetrieveRates
POST
GET
GET
MockDataStore
Cloud
Resources
1.Direct call
2.Local HTTP REST (Json)
3.Remote HTTP REST (Json)
4.Local HTTP REST (HTML)
5.Remote HTTP REST (HTML)
Configurations
Topics for Discussion and Further Research
1.“Stuff vs Value” Metrics
a.Total: 55
b.src/application: 16
c.src/: 41
d.Files: 43
e.Strict Value to Stuff Ratio: 16*100/55 = 29.09%
f.Extended Value to Stuff Ratio: (15+19)*100/42 = 74.55%
2.HTTP error status code vs. HTML screens
3.Copilots and Code Generation
4.Wing extensions from endor.w
Illustration created using DALLE-3 by OpenAI
Winglang + Hexagonal Architecture = Great Potential
Using the new cloud-oriented
programming language Wing
in combination with
Hexagonal Architecture has
proven to be a winning
combination striking the right
balance between cost,
performance, flexibility, and
security.
Illustration created using DALLE-3 by OpenAI