1. Home
  2. Explore
  3. Computer Science
  4. Platform Engineering & DDD

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Platform Engineering & DDD

Platform Engineering, Domain-Driven Design, and the Art of Abstraction

The Hype Cycle of Topics

Every new topic in software engineering follows a predictable pattern. First, everyone talks about definition — what is it? Once the baseline is established, each person comes with their own point of view and labels. Then come experience reports about what can go wrong. Finally, someone says “you got it all wrong” and offers a correction. This talk combines all those phases for platform engineering and connects it with domain-driven design.

Domain-driven design (DDD) has an interesting history. Eric Evans’s book (2003) came out around the same time as Enterprise Integration Patterns. DDD “puttered along” for about a decade until Vaughn Vernon’s book gave it a boost. But DDD truly came to life with microservices — a concept that wasn’t conceivable when Evans wrote his book. The lesson: something completely different gave his work a giant boost. The same should happen now: platforms should give DDD another boost, and DDD should appear much more inside platform engineering.


The Complexity Problem: Technology Pushes Back

We often think we are in the driver’s seat with technology — we push technology forward (cloud, Kubernetes, AI). But this is a two-way street: technology also pushes back, and it pushes back with complexity. When we make something hard to understand, adoption becomes difficult, mistakes happen, and we hit our own limitations.

In recent years, the problem worsened because of the idea that the software delivery lifecycle is full of handovers and friction. The old model: requirements written down → someone codes → someone tests → release, only to find the users didn’t want it. The solution seemed to be “push everything left”: you build it, you run it, you secure it. The result? An average developer is expected to be a product owner, business analyst, DDD expert, security expert, and operational expert — with any remaining time for actual coding. Cognitive load has become a huge term because finding such people is nearly impossible.


Platform as a Solution: The Pyramid Assumption

The proposed solution is the platform — it promises to make cognitive load go away, to enable rather than restrict. But how does it achieve what previous approaches could not? There must be something fundamentally different.

The traditional model is a single pyramid: a common layer (OS, cloud, libraries, frameworks) that everyone builds on. The driver was cost — reuse economies of scale. But this pyramid has a baked-in assumption: you can anticipate everyone’s needs. The tip of the pyramid becomes tiny because you’ve pre-solved everything, and users just flick a switch.

Two problems:

  • How can anyone be smart enough to anticipate all needs?

  • Even if possible, you don’t want to anticipate everything — that kills innovation.

A platform is not a pyramid. It’s a double pyramid — a common base (the platform) that enables diversity, speed, and innovation on top, not just cost reduction.

The double pyramid captures the essence of what is different now. The goal is more models, more applications, not fewer. This is not about guardrails and harmonization — it’s about opening up opportunities.


The Car Metaphor for Platforms

The automotive industry has used a platform strategy for over half a century. The goal of a car platform was not to make fewer models — it was to have more models economically. Volkswagen started with the Golf and Jetta, then Passat and A4 — small variations, but the intent was always more diversity.

A consultant who advised BMW for decades explained: when he was young, BMW had essentially three model lines (3, 5, 7). Today they have over 30 model series (1, 2, 3, 4, 5, 6, 7, X1, X2, X3, M, electric, Mini…), each with many configurations. Without a platform strategy, that would not be economically possible. If nuts-and-bolts industries can do this, software can too.


A Test for a True Platform

Good test: if you build a real platform, the users on top should have made something that surprised you — something you did not anticipate. If that never happens, the platform probably didn’t enable the top half of the double pyramid. Aim for that surprise.


The Cadillac Cimarron Effect: Don’t Shrink the Top Half

There is always a temptation to shrink the top half of the double pyramid because custom development seems like extra work. That is a slippery slope that leads to badge engineering. In the US, a car manufacturer had the idea: “Why make a new car model? Just take an existing car, put all options in, and stick a different label on the trunk.” The result? The Cadillac Cimarron — a Chevy Cavalier dressed up as a Cadillac. Customers saw right through it. The lesson: what sits on top of the platform is equally important to what’s inside. Shrinking the top half takes away the innovation and diversity that are the whole point.


Platforms as Reified Architecture

To an architect, platforms are reified architecture — architecture brought to life. Architecture often lives on paper as reference architectures and design patterns. Platforms turn those decisions into running software. If your architecture guidance says microservices should be resilient and scalable, your platform should provide the runtime environment, communication patterns, observability, and deployment pipelines that enforce those decisions.

Sadly, many organizations have a disconnect: architects have pictures, platform teams have a platform, and they are two different things. They should be linked — the platform should embody the architecture.


Static vs. Dynamic: The Box Diagram Problem

A high-level platform diagram often shows “application developers” on top and “platform” underneath — the same picture as old infrastructure diagrams. The problem: static box models cannot express speed, velocity, or innovation. There is no movement.

Plot the software delivery cycle across these boxes and the difference becomes clear:

  • On the left: classic “throw it over the wall” cycle — development throws code to operations, operations throws problems back. The platform team is in the loop, creating delay.

  • On the right: the platform team is not in the loop for deployments. Example: deploying a serverless function on AWS — nobody at AWS does anything at the moment of deployment. They do capacity management, support, and build features, but they don’t deploy for you.

The platform team should be the grease, the axle — the low-friction thing that makes the wheel spin faster. If you are in the loop, that is an anti-pattern.

Another analogy: waiter vs. vending machine. A ticket-based system is like a waiter; the platform should be the vending machine — push a button and the thing comes out (a high-end vending machine with containers, runtimes, observability).


Platform Team Mindset: Multiple Customers

The double pyramid means platform teams serve multiple customers:

  • Sponsors (IT leadership, risk/compliance, governance) — care about reuse, compliance, cost.

  • Development teams — care about speed, ease of use, value for their project.

A common failure: platform teams sell the wrong thing to the wrong customer. Application developers don’t care about reuse — they care about faster, cheaper, better for their work. If you sell reuse to developers, they won’t understand the value. Be clear: value proposition differs for each audience.

Another trap: rebranding existing infrastructure/operations teams as platform teams. They know the technology well (Kubernetes, cloud, networking), but their mindset is wrong. Infrastructure teams are usually ticket-based, governance-heavy, and focused on boxing people in. A platform team must be customer-centered, product-oriented, self-service, transparent, and enabling. You want their skill set but need a different mindset. Mix personnel from application side with infrastructure folks to get both.


Guardrails vs. Lane Assist

A common outcome when platform teams serve sponsors too well: all the budget goes into guardrails (compliance, security reviews) and none into the golden path. The result: development teams are not excited because the platform doesn’t make their life easier.

A guardrail is a last-resort safety mechanism. When you hit a guardrail, you’re glad it’s there, but your car is wrecked. Nobody drives by scraping along the guardrail.

What you really want is lane assist — keep people in their lane so they never need the guardrail. Hitting a guardrail looks like a late security or architectural review (9 months in, before launch) that blocks the project. Lane assist means early feedback built into the platform itself, so teams never hit that wall.


Abstraction: The Core of Platform Design

Abstraction reduces cognitive load, but it is not easy. Engineers have trouble finding good names for things. They tend to name from the inside out — by how it’s built, not by the value it provides. Example: if engineers named the automobile, it would be “piston-crankshaft-gear-wheel-assembly-singleton-factory.” Fortunately, someone named it “automobile” — from the value (it moves itself).

A good abstraction should not leak implementation. It defines what you do with it, not how it’s built.

Test: In the US, the gas pedal is called “gas pedal” — a pure abstraction for “makes the car go.” But an electric car has no gas. The proper term is “accelerator” or “power pedal.” So: name by use, not by ingredients.

Defaulting Is Not Abstraction

A common mistake: “DynamoDB has too many settings, so I’ll default most of them — that reduces cognitive load.” But taking pieces out of a thousand-piece puzzle doesn’t make it easier — it makes it harder because settings have dependencies (performance, cost). That is convenience, not abstraction.

Example: AWS solution patterns named “Lambda SQS Lambda” — if you don’t know what those services are, the name means nothing. That’s the gas pedal? No. If abstraction uses the underlying language, it’s not an abstraction — it’s just repackaged content.

Essential vs. Non-Essential

Abstraction requires judgment — decide what is essential and what can be omitted. This is a human decision that varies by industry, location, business type, and team. Overdoing it creates an illusion — the abstraction doesn’t match reality, and problems bubble back later.

Classic illusion: RPC (Remote Procedure Call). The name suggests it’s just a procedure call, but “remote” changes everything: high latency, partial failures, timeouts, retries, idempotency. Trying to pretend those don’t exist leads to failure.

Good abstraction takes noise out so people can see what they otherwise would not see. Less vocabulary, more clarity.

Cognitive Load vs. API Size

You cannot measure cognitive load by the number of methods in your API. The ultimate “simple” API — one method called doTheRightThing(boolean) — has huge cognitive load because nobody knows what the boolean does, whether it’s expensive, or whether it scales.

Strive for intuitive — make complexity approachable, not pretend it doesn’t exist. Expose the inherent complexity of the domain (distributed systems, cloud services) in a way that can be understood.


Domain-Driven Design for Platforms

Platforms deal with a complex domain: distributed systems, cloud services, deploying software. When thinking about DDD, we usually think of the customer’s domain (banking, shipping containers). But technical domains have become equally complex and deserve careful modeling.

Don’t try to invent a better DynamoDB — don’t second-guess the cloud provider. They have many customers and smart people. Instead, make services the cloud provider cannot deliver — services specific to your business domain.

How? Combine the business domain with the technical domain. Examples:

  • A database configured to host customer data (PII) — only you can define encryption, replication, region restrictions, consistency requirements.

  • A ledger database — a financial construct that tracks all changes. The cloud provider gives you database capabilities; only you can add the “ledger” meaning.

These live at the intersection of business and technical domains. The cloud provider cannot know your internal regulations, industry rules, or preferences. That is your value as a platform team.


Challenges of Platform Abstraction

Failure Does Not Respect Abstraction

When something goes wrong, it happens at the runtime layer — cloud services, SQS, Lambda, etc. Your abstraction is gone. You need a traceback from runtime to abstract concept, like compilers have line number mappings. Use tagging or other mechanisms to link operations back to the high-level model.

Logical Abstractions Cannot Overcome Physical Limitations

Cross-cloud portability frameworks sound nice, but physical differences in service availability, features, cost, and quotas (e.g., exhaust a quota in one region but not another) cannot be abstracted away. Be realistic.

Composability vs. Size

Platforms naturally grow because customers request features. This can damage composability. The Lego principle: a single Lego brick does almost nothing, but composability is awesome. Protect the ability to put pieces together. More features without composability is like having more colored bricks that don’t fit. Always prioritize composability over size.


AI and the Human Role

AI can generate code, APIs, and infrastructure. Does it replace platform engineering and API design? The speaker asked Claude, and the answer was: AI is useful as a booster, but human expertise is still required. Domain-driven design and defining what is essential is a human activity. AI won’t take that away.


Final Warning: Don’t Believe Your Eyes

Just like impossible objects (the Penrose triangle) can trick your senses, illusions in software engineering — abstractions that pretend complexity away — are dangerous. Strive for honest abstractions that make real complexity approachable, not illusions that break at runtime.

Failure does not respect abstraction. Build platforms that acknowledge reality and provide clear mappings back to the underlying runtime.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent