An HLD shows the system as a whole, without implementation details: components, data flows, integrations and infrastructure. It is what the customer, the architects and the teams use to agree on a solution before anyone starts writing code and detailed designs (LLDs).
What an HLD contains
| Section | What it describes |
|---|---|
| Goals and scope | what the system is for, what is and is not part of it, the main quality requirements |
| Context | the users and external systems it exchanges data with |
| Components | the major parts of the system — services, databases, queues — and what each one is responsible for |
| Interaction | protocols and data formats, synchronous and asynchronous flows |
| Deployment | environments, servers or cloud services, the network, redundancy |
| Security | authentication, access control, encryption |
| Decisions and risks | why this option was chosen, what the alternatives were, what the limitations are |
HLD and LLD
An HLD answers the question of what the system consists of, an LLD — of how each component is built: modules and classes, database tables, API contracts, algorithms. Usually there is one HLD for the system or for a major change, while an LLD is written for each component once the HLD has been agreed.
Is there a standard
There is no single standard for an HLD: the set of sections depends on the company and the project. The closest standards in meaning are ISO/IEC/IEEE 42010 (which describes architecture through stakeholders, viewpoints and views) and IEEE 1016-2009 (which describes software design; IEEE lists it as “Inactive-Reserved”). HLD diagrams work well with the C4 model — at the context and container levels.
Sources
the term is written from these pagesVerified 8 Nov