“Create an e-commerce package diagram with web, catalog, checkout, orders, and payments packages and their dependencies.”
Entenda as decisões por trás dele.
Keep UI, catalog, checkout and payment concerns separate.
Show which package calls another.
Isolate the external gateway behind its package.
Keep classes as package representatives.
Use for architecture discussions before drilling into a class or component diagram.
Dúvidas comuns
What belongs in a package diagram?
Major modules, namespaces or layers and the dependencies between them.
Why use representative classes?
They make the responsibility of a package clear without turning the diagram into a full class model.
What does a dashed arrow mean?
It indicates a dependency: one package uses or relies on another.