wcf microservices in containers
TRANSCRIPT
WCF Microservices in Containers
//build recap 2017 - bdotnet & xhackers
@svswaminathan
Swaminathan Vetri
Senior Engineer @ Target
Microsoft MVP - Visual Studio & Development technologies
Windows/Web/Cross platform mobile developer
Blogger, Speaker, Amateur photographer, Gadget freak
@svswaminathan Wannabeegeek.com
Agenda
• Intro to Windows Containers
• Intro to Microservices
• Running WCF Services in windows containers
• Demos
Containers vs VM
Containers vs VM
Container fundamentals
Windows containers
• What are Containers ?
• Windows Server Containers• Provides isolation through process & namespace technology
• Hyper-V Containers• Provides isolation by running each container in highly optimized VM
• When to use what ?
Microservices
• Microservices is an approach to application development where every part of the application is deployed as a fully self-contained component, called a microservice that can be individually scaled and updated.
• Agility - can scale out dynamically depending on usage, with resource isolation every service is restrained from accessing other service’s resources
• Solves Management, Deployment, Orchestration and patching needs without affecting High availability
WCF services in containers ?
• Windows containers are now available to use
• Service endpoints are easy to configure
• Reduce or eliminate maintenance of Virtual machines
• Better support for service oriented architecture
What is supported for WCF ?
• Http /Https endpoints
• IIS Hosting
• Self Hosting
• Anonymous access endpoints
WCF Image Dockerfile
FROM microsoft/iis
SHELL [“powershell”, “-command”, “$ErrorActionPreference = ‘Stop’;
$ProgressPreference=‘SilentlyContinue’;”]
RUN Add-WindowsFeature NET-WCF-HTTP-Activation45;\
Add-WindowsFeature NET-WCF-TCP-Activation45;\
Add-WindowsFeature Web-WebSockets
References
• https://azure.microsoft.com/en-us/blog/containers-docker-windows-and-trends/
• https://docs.microsoft.com/en-us/virtualization/windowscontainers/index
• https://github.com/Microsoft/wcf-docker-samples