Skip to content

Instantly share code, notes, and snippets.

@linux-china
Last active August 29, 2015 14:09
Show Gist options
  • Save linux-china/21253a519a68686710d5 to your computer and use it in GitHub Desktop.
Save linux-china/21253a519a68686710d5 to your computer and use it in GitHub Desktop.
DDD architecture
@startuml
[Infrastructure] #Aqua
[Shared]
note left of Shared : XxxSupport, Utils
package "model package" {
[Model] <<Domain>>
[Repository] <<Domain>>
[Factory] <<Domain>>
}
package "Logic Layer" {
[Service] <<Domain>>
[Event] <<Domain>>
[Application]
note right of Application : Facade,OpenAPI,\nRemote Service etc
}
package "App Layer" {
[WebApp] <<App>>
[MobileBackend] <<App>>
[Interface] <<App>>
[MobileApp] <<App>>
}
[Shared] --> [Infrastructure]
[Repository] --> [Shared]
[Repository] --> [Model]
[Service] -[#0000FF]> [Repository]
[Factory] --> [Model]
[Event] -[#0000FF]> [Service]
[Event] -[#0000FF]> [Repository]
[Application] -[#0000FF]> [Repository]
[Application] -[#0000FF]> [Service]
[Application] -[#0000FF]> [Event]
[Application] ....> [Infrastructure]
[Application] ....> [Shared]
[WebApp] ..> [Application]
[WebApp] ..> [Service]
[WebApp] ..> [Event]
[Interface] --> [WebApp]
[MobileBackend] ..> [Application]
[MobileBackend] ..> [Service]
[MobileBackend] ..> [Event]
[MobileApp] --> [MobileBackend]
skinparam component {
FontSize 13
BackgroundColor<<Domain>> gold
BackgroundColor<<App>> DarkKhaki
FontName Courier
}
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment