How it works · 10 of 49 Core
What is plugin (microkernel) architecture?
A small core others extend
Plugins (microkernel): A plugin (microkernel) architecture keeps a small core that does one job well and publishes a fixed plate of extension points; features arrive as plugins written against that plate, loaded only when needed, and ideally run where a misbehaving one can't freeze the core. The price is the plate itself: it must stay stable for years, and plugins can do only what it allows.
Loading the animation…
Say it like this A plugin architecture keeps a small core and a stable plate of extension points, so features snap on, load when needed, and a bad one can't freeze the core.
Under the hood — for builders
- The source, in its words
- Visual Studio Code is the example on most developers' screens. Its docs: "many core features of VS Code are built as extensions and use the same Extension API." Extensions run "in an Extension Host process" so they "cannot interfere with the stability and performance of VS Code"; the stated aim is that "misbehaving extensions should not impact the user experience."
- The plate: what a plugin may and may not do
- Microkernel: the small core plus the fixed set of extension points (the plate) it publishes. VS Code's plate, from its Extension Capabilities page:
- Run here: a slow plugin, in or out of the core
- A Python core types 17 keys, one due every 20 ms; a plugin hooks every key and spends 100 ms on it. In the core's process every key waits; in its own process (keys handed over a queue) the core never waits:
- Load when needed
- Activation events: VS Code wakes an extension only on its event, e.g. onLanguage:python; "the Markdown extension should only be loaded when a user opens a Markdown file".
- Measure it
- Core start-up time with and without plugins · plugins woken per session · the slowest plugin's time per event · breaking changes to the plate per year (aim: none).
- Watch out
- The plate is a public API: every change can break plugins you have never seen. Plugins sharing one host process can still slow each other.
- Sources
- VS Code docs: "Extension API", "Extension Capabilities Overview", "Extension Host", "Activation Events", code.visualstudio.com, read in session · toy core and plugin, Python, run 18 Nov 2026.
What happens in the plugins (microkernel) animation, step by step?
- Plugins (microkernel): a small core does one job, here editing text, and offers a plate others build on.
- Your turn: drag plugins onto the plate.
- Plugins load only when their moment comes: Markdown wakes when a Markdown file opens.
- A plugin goes bad. It runs in its own process, so the core keeps typing.
- Put the same plugin inside the core and every key waits for it.
- The price: the plate must stay stable, and plugins can do only what it allows. Next: splitting across a network.
What everyday example explains plugins (microkernel)?
A baseplate others build on. The plate's studs never move, so anyone's brick fits, and pulling one brick off leaves the rest standing.
Why should a team care about plugins (microkernel)?
When many teams or customers want different features on one product (an editor, a browser, a payments app with partner integrations), a small core with a published plate lets them add features without editing the core. Design the plate as carefully as a public API, load plugins lazily, and run untrusted ones out of process.