Skip to main content

Extensibility in your applications

Extensibility is one of the possible architecture qualities that you can strive for in your software architecture.

Wikipedia gives us the following definition for extensibility:

Extensibility is a software engineering and systems design principle that provides for future growth. An extensible system is one whose internal structure and dataflow are minimally or not affected by new or modified functionality, for example recompiling or changing the original source code might be unnecessary when changing a system’s behavior, either by the creator or other programmers.

I would have asked ChatGPT for a definition but it was overloaded at the moment of writing this post.

A typical (but certainly not the only) way to achieve this is through a plug-in architecture.

If you want a way on how to do this in .NET, you can have a look here:

Create a .NET Core application with plugins - .NET | Microsoft Learn

But it is not about the technical implementation details I want to talk. Instead I want to focus on the design heuristics when building an extensible architecture.

I think we all agree that extensibility is a nice quality to have in your architecture but the way you design it can have a large impact on the evolvability of your solution.

My main advice here is the following:

Isolate your extensions(plugins?) from the core system.

Maybe this sounds obvious but let me explain this further. It is important that your core system can evolve without requiring all your plugins to evolve as well. If you have a large ecosystem where a lot of extensions are created, you don’t want the authors of these extensions to have to upgrade to keep supporting your core solution.

I’ll give you an example. Maybe it is not a completely correct one but it is how I perceive it from the outside. I’ll use SAP as an example. The claim has always been that SAP was very extensible. Through ABAP you could extend almost every part of the ERP solution. It gave you a lot of flexibility. But this flexibility came with a cost, it was very expensive to upgrade SAP.

A friend of mine always worked as an SAP consultant and as long as I know him the only thing he did was working on big migration projects to move from one SAP version to the next. It was and maybe even is today a big cash cow.

With the move to the cloud and S/4HANA they moved to a ‘clean core’ approach where the extensions strictly separate from the core application and extensions can only interact through well defined upgrade-stable interfaces. This allows SAP to evolve their core product without breaking the extensions created by customers and other suppliers.

I find this approach similar to the way that Microsoft took with Dynamics where they expose data and functionality through the DataVerse and allow you to build extensions using Power Platform.

Popular posts from this blog

Azure DevOps/ GitHub emoji

I’m really bad at remembering emoji’s. So here is cheat sheet with all emoji’s that can be used in tools that support the github emoji markdown markup: All credits go to rcaviers who created this list.

Podman– Command execution failed with exit code 125

After updating WSL on one of the developer machines, Podman failed to work. When we took a look through Podman Desktop, we noticed that Podman had stopped running and returned the following error message: Error: Command execution failed with exit code 125 Here are the steps we tried to fix the issue: We started by running podman info to get some extra details on what could be wrong: >podman info OS: windows/amd64 provider: wsl version: 5.3.1 Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:2655: connectex: No connection could be made because the target machine actively refused it. That makes sense as the podman VM was not running. Let’s check the VM: >podman machine list NAME         ...

Cleaner switch expressions with pattern matching in C#

Ever find yourself mapping multiple string values to the same result? Being a C# developer for a long time, I sometimes forget that the C# has evolved so I still dare to chain case labels or reach for a dictionary. Of course with pattern matching this is no longer necessary. With pattern matching, you can express things inline, declaratively, and with zero repetition. A small example I was working on a small script that should invoke different actions depending on the environment. As our developers were using different variations for the same environment e.g.  "tst" alongside "test" , "prd" alongside "prod" .  We asked to streamline this a long time ago, but as these things happen, we still see variations in the wild. This brought me to the following code that is a perfect example for pattern matching: The or keyword here is a logical pattern combinator , not a boolean operator. It matches if either of the specified pattern...