Is it possible to containerize a .NET assembly or do the equivalent?

73 Views Asked by At

I am in the process of building out a "Modular Monolith" whereby the individual services are stored as .NET projects within the overall solution. That way the additional assemblies only load when they are called. It is a sort of half-way compromise in-between a Monolith and a Microservices architecture.

We are moving to an AWS infrastructure and I have been asked if it is possible to containerize each individual assembly. I don't believe this is possible, but wanted to ask anyway just because I figured someone here might have an alternative ideas. I have heard the concept of assymetric scaling where you can assign thread pool size to individual JARS (Which I believe you can do for .NET as well) but I'm not sure if this would provide the same power as containerizing each assembly.

I haven't tried anything yet as I am still trying to get my head around the problem at a design level.

1

There are 1 best solutions below

3
On BEST ANSWER

It is a sort of half-way compromise in-between a Monolith and a Microservices architecture.

That's just a properly-designed monolith. And there's nothing wrong with that.

I have been asked if it is possible to containerize each individual assembly

That would be a microservices-based solution, introducing some kind of RPC for the calls between assemblies.