Skip to content
MDL
Talk to ArcH

MDL — Minimalist Development Language

A notation focused on software architecture, but that works for everything: business, architecture, process and data modeling — multi-context, in a single notation.

See examplesWatch

Maintained by ArcH, a company that does software architecture and software development with AI.

MDL 2.0 diagram in OPS format of the ArcH Framework: context, core with the framework interface, and layers of adapters and technologies for each module
Arch Framework OPS: a whole solution — screens, services, adapters and technologies — in one MDL picture.

What is MDL

MDL (Minimalist Development Language Specification) is a notation for drawing software. It has been around for over 10 years and has had very few changes.

Seven elements and a single connector, the link, are enough to go from the business to the data modeling in the same drawing, at different levels of abstraction. It is maintained by ArcH, which applies it every day.

  • 7elements
  • 1connector
  • 10+years of use
  • 1notation for everything

Why MDL

  • One notation, many contexts

    Business, architecture, process and data modeling in the same notation, with no new symbols to learn for each one.

  • Simple to read

    Few elements, a single connector and a few rules. Anyone on the team can read it, not only the architect.

  • Draw as a team

    On paper or on a whiteboard, so that users, developers and infrastructure analysts all understand it and use it as the project's official documentation.

  • Redraw, do not tweak

    The diagram is so simple that making a new drawing is easier than patching the old one.

  • Numbers that tell the story

    Numbered links with domain language describe the business flow step by step, in the order it happens.

  • Tested over the years

    A notation with a long history and very few changes, used every day by the company that maintains it.

Multi-context, in a single notation

The same elements and the same link draw four different views of a solution:

The notation

MDL 2.0 has 7 components. Each one has its own shape, so a drawing can be read at a glance.

  • User

    stick figure, as in a use case

    Any actor that acts on the system: a person, an area, a robot, an AI, an agent.

  • Front-end

    parallelogram, the “pencil”

    A screen or interface, client-side or not, web or not.

  • Back-end

    ellipse or circle

    Core, service, API, BFF, microservice. Also a process or a context (DDD).

  • Data

    cylinder

    Any data repository: a database, a cache, even FTP.

  • Part

    rectangle without a strong fill

    A part of any element: tiers, layers, cloud, a node, a table of a database with its fields.

  • Boundary

    dashed rectangle

    A limit or border: a context, a group, an environment.

  • Black-box

    solid filled rectangle

    Something you do not want to detail: a legacy system, a market tool, a large component.

The drawing rules

Four rules cover almost everything. Each one comes with its drawing.

Link ends

The ends work on any link and on either side.

Link ends
EndFigureMeaning
open arrowLink with an open arrowDirection.
closed diamond (composition)Link with a closed diamondThe diamond side is the whole, the composition. MDL does not have an open diamond.
open triangle (specialization)Link with an open triangleSpecialization (inheritance).
closed dot (always link)Link with a closed dot, the always linkAlways happens, so it needs no number. For example, the core with the database in 100% of the flows.
arrows on both ends—Bidirectional.

With no arrow on the other side, the direction is that of the diamond, dot or triangle side. With an arrow on the other side, the diamond marks the composition and the arrow marks the direction.

Dashed line

Dashed line
LineFigureBecomes
dashed linkDashed link, the weak linkWeak link: not necessarily physical, and it may or may not happen.
dashed composition—Aggregation.
dashed specialization—Implementation.

Cross link

A cross link is a link that passes over elements and layers to connect two distant points, without needing an arrow for each layer. For example, from the user or the screen straight to the core or the database, crossing the infrastructure tiers and security. It appears in red and keeps the drawing clean. Use it from one relevant point to another, such as from the last layer of the front to the first layer of the core. See the cross link in the link and cross link example.

Two MDL 2.0 diagrams: above, the link with numbers and descriptions between user, interface, API gateway, BFF and database; below, the same flow with a red cross link
Link and cross link

Colors

The palette is the ArcH standard. Elements are light (except the black-box), with text and border in the dark tone of the same color.

MDL 2.0 colors
DomainSampleColor
front-end / userPurple, light on the element. Dark purple on the name, on the user and on the arrow that starts from it.
core / back-endLight blue.
securityGreen: dark if it is a black-box, light if it is not.
data / database / data layerYellow.
externalGray.
black-boxSolid dark; the classic is black, with white text.
flow detour / cross linkRed.
  • Link color: it is the color of the origin. An arrow that leaves the front is purple; one that leaves a green black-box is green.
  • Layers: the more external, the slightly darker; the more internal, the lighter. A sub-sub-layer can have a white background with a border in the layer color: the contrast shows the depth.
  • Outer frames (title, dark frame) are decoration, not part of the notation.

See all the rules

Connectors

MDL has a single connector, the link. Every variation is a different end or a dashed line, and anything can connect to anything as long as it makes sense. Each connector below has its drawing and a video that shows how to do it.

  • Specialization

    An open triangle: inheritance of everything from the parent element. With no arrow on the other end, it takes no number or description.

    See how to do it

    Conectores do MDL 2.0 : seus diagramas mais fáceis de entender e desenhar

  • Composition

    A closed diamond on the whole: the element that receives it is made of the related ones. MDL has no open diamond.

    See how to do it

    Por que utilizar a notação MDL para desenhar a camada de dados?

Examples by use

Ten diagrams, open or fictional, from the notation to the reference architecture. Click one to enlarge it.

MDL 2.0 diagram with the notation components: user, front-end, back-end, data, black-box, part and boundary, and the links with their ends

MDL 2.0 components

Notation

The notation elements (user, front-end, back-end, data, black-box, part and boundary) and the link ends: arrow, always link, bidirectional, composition and specialization.

Two MDL 2.0 diagrams: above, the link with numbers and descriptions between user, interface, API gateway, BFF and database; below, the same flow with a red cross link

Notation

Above, a payment with numbered links (1, 2, 3) that say what happens in each step. Below, the same flow with a red cross link that passes over the interface and the gateway.

MDL 2.0 business diagram: a customer and an insurer, data and calculation screens and two external systems, connected by links numbered 1 to 4

Business drawing

Business

A fictional insurance quote example: two actors, three screens and two external systems, with the steps numbered 1 to 4.

MDL 2.0 technical view diagram: client-side, security tools, server-side with cloud, network and API gateway, cores, databases and external systems, with red cross links

Technical view

Technical

The same example as a technical view: from the screen to the core and the database, crossing security, cloud and network through red cross links, with the external systems at the bottom.

MDL 2.0 data view diagram: services connected to a customer database with the tables person, individual, legal entity, phone and address

Data view

Data

A database with its tables and fields, showing composition, the specialization of person into individual and legal entity, and two tables that are only indicated.

MDL 2.0 diagram in OPS format of the ArcH Framework: context, core with the framework interface, and layers of adapters and technologies for each module

ArcH Framework — OPS

OPS — One Picture Solution

The OPS of the ArcH Framework: the context (microservice, API/BFF and batches), the core with the framework interface and, for each module, the adapters and technologies.

MDL 2.0 diagram of the ArcH-School solution: two APIs behind an API gateway, with numbered links and the ArcHDB database with the tables aluno and notas

ArcH-School

Reference architecture and framework

A school solution with two APIs behind an API gateway and a database with the tables aluno and notas, with numbered links and an [IF] decision based on the average grade.

MDL 2.0 architecture diagram with a framework: micro front-ends and mobile apps call BFFs, APIs and microservices that use the arch framework, and domains form a package

With Framework

Reference architecture and framework

A reference architecture with a framework: front-ends call BFFs, APIs and microservices, all supported by the arch framework, and the domains are organized in a package named by context.

MDL 2.0 bounded contexts diagram: five contexts drawn as dashed circles, some overlapping, with domains as ellipses inside them

Bounded Context

DDD — Domain-Driven Design

Five bounded contexts drawn as boundaries, with the domains as ellipses inside them and some contexts overlapping.

MDL 2.0 domain relationships diagram: twelve domains connected with link ends marked U and D, a shared kernel and two anti-corruption layers

Domain Relationships

DDD — Domain-Driven Design

The relationships between twelve domains, with each link end marked U (upstream) or D (downstream), a shared kernel and anti-corruption layers.

See all examples by use

Community

Join our community on ArchOne.

Click here to participate

Do you have an MDA case?

Get in touch, it can help us improve the approach.

Send us your case

[email protected]

Talk to ArcH

Want to apply MDL in your team?

Training, architecture and software development with MDL. Leave your details and an architect from ArcH will get in touch.