wcf microservices in containers

13
WCF Microservices in Containers //build recap 2017 - bdotnet & xhackers @svswaminathan

Upload: svswaminathan

Post on 22-Jan-2018

111 views

Category:

Software


6 download

TRANSCRIPT

Page 1: WCF Microservices in containers

WCF Microservices in Containers

//build recap 2017 - bdotnet & xhackers

@svswaminathan

Page 2: WCF Microservices in containers

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

Page 3: WCF Microservices in containers

Agenda

• Intro to Windows Containers

• Intro to Microservices

• Running WCF Services in windows containers

• Demos

Page 4: WCF Microservices in containers

Containers vs VM

Page 5: WCF Microservices in containers

Containers vs VM

Page 6: WCF Microservices in containers

Container fundamentals

Page 7: WCF Microservices in containers

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 ?

Page 8: WCF Microservices in containers

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

Page 9: WCF Microservices in containers

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

Page 10: WCF Microservices in containers

What is supported for WCF ?

• Http /Https endpoints

• IIS Hosting

• Self Hosting

• Anonymous access endpoints

Page 11: WCF Microservices in containers

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

Page 12: WCF Microservices in containers

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

Page 13: WCF Microservices in containers

Thank you.

Swaminathan Vetri

Microsoft MVP

[email protected] @svswaminathan

Questions?