Software architecture defines the fundamental structure of a software system.
Software architecture defines the fundamental structure of a software system.
Why is it important to learn software architecture?
Influences software's adaptability, scalability, performance and maintainability
Software Architecture is like designing a blueprint for a garden.
Architectural style → Overall layout of a garden
Architectural components → Grouping of like plants
Class files in components → Individual plants within a group
Gardens are influenced by weather in the same way a software architecture is influenced by changes in
technology, deployment, etc.
A sequence diagram is an interaction diagram showing the temporal order of interactions between objects or components to achieve a specific functionality or use case
When would you choose to use a Sequence Diagram instead of a UML Class Diagram?
Actor: External user or system
Objects: Entities of the system
Lifelines: shows object existence during interactions
Messages: Communication between objects
Activation boxes: indicates active processing of messages
Activation box exists so the message is processed immediately
No activation box so message processing and response is delayed
Sender waits for the receiver to complete the operation and return a response before continuing its own execution
Sender does not wait for the receiver to complete the operation; it sends the message and continues its own execution
alt represents alternate scenarios
loop represents repeated actions
We can create our sequence diagram by through Mermaid code and/or with Excalidraw
Sequence diagrams are often criticised for becoming unreadable in complex systems. What are some techniques to manage this complexity?
Helps teams visualise and communicate the software architecture of a system at different levels of abstraction.
The C4 Model includes 4 core diagrams:
These diagrams are a way to create "maps of your code" at different levels of detail, like zooming in and out on Google Maps
Shows the system as a "box" and its interactions with users and external systems
We can see the external users and systems represented as the different countries
Who is the intended audience for the Context Diagram in the C4 model?
It communicates the scope and external dependencies of the system in a simple and accessible way.
Breaks the system into containers (applications/services/databases) and shows how they interact.
Why separate the web frontend and backend service into different containers?
Zooms into a specific container to show its internal components and their relationships.
How does a Container Diagram differ from a Component Diagram?
Container
Component
Offers a detailed view of the source code structure (e.g., classes and interfaces) within a component.
Our UML diagrams :)