advanced microservices with - openshift blog · this fast-moving session will guide us along the...

32
1 1 Advanced Microservices with .NET http://redhatloves.net

Upload: nguyencong

Post on 22-Jun-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

11

Advanced Microservices with .NET

http://redhatloves.net

This fast-moving session will guide us along the evolution from a .NET application running on a server to a microservices architecture with zero-downtime deployments and advanced techniques for maximizing performance. If you’re ready to use your .NET skills and jump into the future with microservices and Linux containers, this is for you.

The Technologies● Linux Containers● Kubernetes● OpenShift● Zero-downtime deployments● Blue/Green release● Canary release● The “Circuit Breaker” pattern

Just SOME of The issues:1. Deploying software just takes too long!2. Software is too complex3. It takes forever to scale up (or down)

The Evolution from Server to Microservices

(demo: running from VM command line)

dotnet run

(demo: building and running docker image)

./pub.sh

docker build -t dotnethello .

docker run -d -p 5000:5000 dotnethello

http://10.1.2.2:5000

(demo: OpenShift)

oc login

oc new-project mydotnet

./create_green_1.sh

http://10.1.2.2:5000

./curl_dotnet.sh (in new ssh terminal)

Blue/Green Release

(demo: Blue-Green Deployment)

./create_blue_2.sh

(demo: Canary Release)

./canary_create_1.sh

(optional: edit and publish Startup.cs)

./canary_create_2.sh

./curl_dotnet_canary.sh

(demo: Circuit Breaker)

/howdy/docrun.sh

/circuitbreaker_console_app/dotnet run

use /slowdown & /normal switches in URL

Resourcesgithub.com/dotnet/

github.com/aspnet/

github.com/redhat-dotnet-msa/

Resourcesredhatloves.net

dot.net

live.asp.net

thepollyproject.org

Resources@DonSchenck

[email protected]

Zero-cost RHEL, Development Suite

https://developers.redhat.com/downloads/

Grab the github repo for this presentation

https://github.com/redhat-dotnet-msa