Skip to content

Instantly share code, notes, and snippets.

@oitee
Created January 12, 2022 13:18
Show Gist options
  • Save oitee/725732646af54024d4bc242608e1cf4e to your computer and use it in GitHub Desktop.
Save oitee/725732646af54024d4bc242608e1cf4e to your computer and use it in GitHub Desktop.
New Twirl Architecture
@startuml
title New Twirl Architecture
top to bottom direction
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
Person(User, "User", "Someone who wants to shorten links")
System_Boundary("Heroku", "Heroku") {
ContainerDb(Postgres, "PostgreSQL", "Stores users and short-to-long link mapping")
Container(Twirl, "Twirl", "HTTP Server")
}
System_Boundary("GCP", "Google Compute Engine"){
Container(Ngnix, "NGNIX", "Reverse Proxy on twirl.otee.dev")
}
Rel(User, Ngnix, "(1) HTTP Request")
Rel(Ngnix, User, "(2) Redirect to Twirl through browser")
Rel(User, Twirl, "(3) Redirected HTTP Request")
Rel(Twirl, Postgres, "(4) SQL Query")
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment