Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- specification {
- // Define a container type for our application components
- element container {
- style {
- shape rectangle
- color lightblue
- }
- }
- // Define a person type for users
- element person {
- style {
- shape person
- color green
- }
- }
- }
- model {
- // Define the containers
- sftp = container "SFTP" {
- description "Handles file transfers via SFTP."
- }
- worker = container "Worker" {
- description "Consumes files from SFTP."
- }
- appDB = container "App DB" {
- description "Database for the application."
- }
- webApp = container "WebApp" {
- description "Web application interface."
- }
- // Define the user as a person
- user = person "User" {
- description "User that connects to the WebApp."
- }
- // Define relationships among elements
- worker -> sftp "Consumes files from"
- worker -> appDB "Connects to"
- webApp -> appDB "Connects to"
- user -> webApp "Uses"
- }
- views {
- view containerDiagram {
- title "Container Diagram"
- include *
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement