12
CHAPTER 2 | Choosing Between .NET and .NET Framework for Docker Containers
When to choose .NET Framework for Docker
containers
While .NET 7 offers significant benefits for new applications
and application patterns, .NET Framework
will continue to be a good choice for many existing scenarios.
Migrating existing applications directly to a Windows Server container
You might want to use Docker containers
just to simplify deployment, even if you are not creating
microservices. For example, perhaps you want to improve your DevOps
workflow with Docker
—
containers can give you better isolated test environments and can also eliminate deployment issues
caused by missing dependencies when you move to a production environment.
In cases like these,
even if you are deploying a monolithic application, it makes sense to use Docker and Windows
Containers for your current .NET Framework applications.
In most cases for this scenario, you will not need to migrate your existing applications to .NET 7; you
can use Docker containers that include the traditional .NET Framework. However, a
recommended
approach is to use .NET 7 as you extend an existing application, such as writing a new service in
ASP.NET Core.
Dostları ilə paylaş: