.NET and Java together in Azure Spring Cloud with Pet Clinic

Published Jan 25 2021 03:22 PM 3,263 Views
Visitor

In case you hadn't noticed, it’s a polyglot world. The number of scenarios where your application needs to communicate with services using a runtime you know nothing about is greater than ever. Fortunately, things like RESTful endpoints and JSON make life a lot easier. But what if your application needs to share settings with other applications? Or what if a backing service’s address changes between datacenters? How will your application know to switch?

 

The answer - as you may have guessed - doesn’t come right off the shelf. In this post we will look at some best practice solutions using an external configuration provider and a service registry. Both will complicate local development and testing, as well as add some debt to the person (or team) that maintains it in production. Both solutions have a ton of configurable possibilities, which, of course, makes things even more complicated.

 

Let’s focus on (arguably) the two most popular products to solve these challenges. As an external configuration provider, Spring Cloud Config is a top performer. The most popular way to configure the value store is with a Git based repository. Just check-in a YAML file of name-value pairs and tell Config Server how to connect with it. Config server will monitor the repo for future changes and interpret things like different profiles for different environments.

 

Using Eureka from the Spring Cloud Netflix project is a safe bet to implement service discovery. It’s a time tested solution that came from an organization that knows a little something about microservices. Starting a registry instance doesn’t have a whole lot of overhead. The work is more focused on each application that wants to register itself or discover register services. The app needs to implement a Eureka client for proper interaction, and it has lots of possibilities.

 

Config Server and Eureka Discovery themselves are worthy of their own discussion, which I’ll leave to folks smarter than me to cover. The fun really starts when you combine them both. Say, for example, you have an ASP.NET Core microservice that follows the config first pattern. That means in appsettings.json you add two simple values - the address of the config server and turn on FailFast. That’s it. The application won’t start if it can’t contact the server. Upon successfully connecting the application’s default logging levels, address to discovery server, management endpoint policies, connection strings, and everything else you can imagine will be loaded in.

 

The application also relies on the service discovery pattern to find the address of other services. For instance, instead of setting the HTTP client’s base URL to an IP address or FQDN, the application instead uses the name of the service like ‘https://another-service/api/something/2’ as the base. A request is first sent to the discovery service to find addresses where instances of the service can be reached. Then Steeltoe uses an ILoadBalancer to decide the best address to use. The decision could be based on a load balancing algorithm, the health of instances, or other strategies. Steeltoe then forwards the request to the actual service, and the response comes directly back to the calling application. To you (the Developer) all of this is wrapped up in a single HTTPClient call.

 

This combination of discovery and external config is quite powerful in situations where settings and service addresses stay fluid - i.e. the cloud. But I have yet to meet a developer that is willing to manage all this for the entire organization.

 

Meet the Pet Clinic application

In the Spring Java world, there is an application known as Pet Clinic that has been around since the dawn of...well… Spring. Its purpose is to highlight the many features of Spring and has become so popular that it has its own GitHub org. Of the many Pet Clinic derivations, the spring-petclinic-microservices version offers a relatively real-world cloud platform scenario. This version breaks the application into different microservices and uses Spring API Gateway to host the web UI as well as host a few public endpoints.

 

Note that API Gateway doesn’t have any backing database. Its endpoints dynamically create responses by calling other backing services and aggregating the results together. It insulates those backing services from ever having to be publicly available.

 

Referring to the below architecture drawing you’ll see the relationship Eureka and Config server play. Almost everything relies on retrieving config dynamically and either discovering service addresses or registering itself as discoverable.

 

daviddieruf_0-1611327796795.png

 

 

Also of note is the Spring Boot Admin Server. This service packs a powerful debugging punch and can serve as a priceless resource to developers wanting to see exactly how each application’s container is configured and turn logging levels up and down instantly. Admin Server can provide so much insight into all the services because the ‘actuator’ feature is enabled in each. You can learn more about Spring Boot Actuators for Spring Java apps and Steeltoe Management Endpoints for .NET apps in their respective docs.

 

The last feature of the Pet Clinic Microservices architecture is for performance & debugging with distributed tracing. In this case, Zipkin is the chosen server. Each application is given direction to export traces to the Zipkin server in a compliant format. The power here is around simplicity. In Spring you use Sleuth and in Steeltoe you use the Zipkin exporter. Both are dead simple to implement and know exactly how to monitor requests and build spans into traces. In fact, both can also monitor an application’s logging and correlate logs with request traces! This is a very powerful feature for developing and debugging.

 

Deploy Pet Clinic on Azure Spring Cloud

As you review the previous architecture, the elephant in the room is how many working parts the Pet Clinic Microservice application has. Each service brings value and takes the application to a higher cloud-native status, but adds to the management burden.

 

Azure Spring Cloud aims to minimize the management burden. When you create an instance of Azure Spring Cloud you get a fully managed Eureka, Config, and Zipkin compatible tracing service. They have taken care of the hard stuff. Each application running in Azure Spring Cloud is given the address to these services in a secure manner. This means Spring and Steeltoe applications are going to feel right at home the second they start running.

 

daviddieruf_1-1611327796837.png

 

 

The customers, vets, and visits services don’t need to be public, only the API Gateway. The Admin Server also doesn’t need a public address. Instead it can use the automatically generated “Test Endpoint” that is behind Azure auth.

 

The applications still export traces to a Zipkin compatible service. The service provides a very useful map to drill into details via Application Map in Azure Application Insights.

 

As you can see Azure Spring Cloud helps developers be more cloud-native by managing the infrastructure and providing native bindings to Spring and Steeltoe thus minimizing the maintenance burden.

 

Get Started

For .NET developers, the Steeltoe team has refactored each Spring microservice to ASP.NET Core 3.1 and added in all the Steeltoe fixin’s so everything just works. Review the source code here and get started. The main branch of the application is meant for local development. Note, to run the entire application, you’ll need maven to compile the Spring pieces and (within the Docker Compose) you’ll see the Dockerfile used for compiling the .NET services. On my Windows desktop I used a combination of Docker Desktop with WSL and VS Code with WSL to get everything running.

 

If you would rather run everything as Spring Boot (no .NET services), refer to the spring-petclinic-microservices repo. There you will find exact instructions to run the application locally.

 

Once you are ready to get started with Azure Spring Cloud, you have quite a few options. If you prefer to get a little more familiar with Azure Spring Cloud without diving in with Pet Clinic, you’ll find how to’s, tutorials, overview, and getting started guides for both Java and .NET in the documentation. There are step by step instructions to help get familiar with the overall service and deploy different flavors of microservices.

 

When you’re ready to see Azure Spring Cloud in full swing, head over to the azure-spring-cloud branch of the Steeltoe application. There you will find a “deploy-to-Azure Spring Cloud” script in both powershell and bash. Either will get everything going in Azure Spring Cloud and help you see the full potential of the Azure Spring Cloud managed service.


You can also find a Spring only version of Pet Clinic for Azure Spring Cloud in the Azure samples.

%3CLINGO-SUB%20id%3D%22lingo-sub-2087416%22%20slang%3D%22en-US%22%3E.NET%20and%20Java%20together%20in%20Azure%20Spring%20Cloud%20with%20Pet%20Clinic%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2087416%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EIn%20case%20you%20hadn't%20noticed%2C%20it%E2%80%99s%20a%20polyglot%20world.%20The%20number%20of%20scenarios%20where%20your%20application%20needs%20to%20communicate%20with%20services%20using%20a%20runtime%20you%20know%20nothing%20about%20is%20greater%20than%20ever.%20Fortunately%2C%20things%20like%20RESTful%20endpoints%20and%20JSON%20make%20life%20a%20lot%20easier.%20But%20what%20if%20your%20application%20needs%20to%20share%20settings%20with%20other%20applications%3F%20Or%20what%20if%20a%20backing%20service%E2%80%99s%20address%20changes%20between%20datacenters%3F%20How%20will%20your%20application%20know%20to%20switch%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20answer%20-%20as%20you%20may%20have%20guessed%20-%20doesn%E2%80%99t%20come%20right%20off%20the%20shelf.%20In%20this%20post%20we%20will%20look%20at%20some%20best%20practice%20solutions%20using%20an%20external%20configuration%20provider%20and%20a%20service%20registry.%20Both%20will%20complicate%20local%20development%20and%20testing%2C%20as%20well%20as%20add%20some%20debt%20to%20the%20person%20(or%20team)%20that%20maintains%20it%20in%20production.%20Both%20solutions%20have%20a%20ton%20of%20configurable%20possibilities%2C%20which%2C%20of%20course%2C%20makes%20things%20even%20more%20complicated.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ELet%E2%80%99s%20focus%20on%20(arguably)%20the%20two%20most%20popular%20products%20to%20solve%20these%20challenges.%20As%20an%20external%20configuration%20provider%2C%20Spring%20Cloud%20Config%20is%20a%20top%20performer.%20The%20most%20popular%20way%20to%20configure%20the%20value%20store%20is%20with%20a%20Git%20based%20repository.%20Just%20check-in%20a%20YAML%20file%20of%20name-value%20pairs%20and%20tell%20Config%20Server%20how%20to%20connect%20with%20it.%20Config%20server%20will%20monitor%20the%20repo%20for%20future%20changes%20and%20interpret%20things%20like%20different%20profiles%20for%20different%20environments.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EUsing%20Eureka%20from%20the%20Spring%20Cloud%20Netflix%20project%20is%20a%20safe%20bet%20to%20implement%20service%20discovery.%20It%E2%80%99s%20a%20time%20tested%20solution%20that%20came%20from%20an%20organization%20that%20knows%20a%20little%20something%20about%20microservices.%20Starting%20a%20registry%20instance%20doesn%E2%80%99t%20have%20a%20whole%20lot%20of%20overhead.%20The%20work%20is%20more%20focused%20on%20each%20application%20that%20wants%20to%20register%20itself%20or%20discover%20register%20services.%20The%20app%20needs%20to%20implement%20a%20Eureka%20client%20for%20proper%20interaction%2C%20and%20it%20has%20lots%20of%20possibilities.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EConfig%20Server%20and%20Eureka%20Discovery%20themselves%20are%20worthy%20of%20their%20own%20discussion%2C%20which%20I%E2%80%99ll%20leave%20to%20folks%20smarter%20than%20me%20to%20cover.%20The%20fun%20really%20starts%20when%20you%20combine%20them%20both.%20Say%2C%20for%20example%2C%20you%20have%20an%20ASP.NET%20Core%20microservice%20that%20follows%20the%20config%20first%20pattern.%20That%20means%20in%20appsettings.json%20you%20add%20two%20simple%20values%20-%20the%20address%20of%20the%20config%20server%20and%20turn%20on%20FailFast.%20That%E2%80%99s%20it.%20The%20application%20won%E2%80%99t%20start%20if%20it%20can%E2%80%99t%20contact%20the%20server.%20Upon%20successfully%20connecting%20the%20application%E2%80%99s%20default%20logging%20levels%2C%20address%20to%20discovery%20server%2C%20management%20endpoint%20policies%2C%20connection%20strings%2C%20and%20everything%20else%20you%20can%20imagine%20will%20be%20loaded%20in.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20application%20also%20relies%20on%20the%20service%20discovery%20pattern%20to%20find%20the%20address%20of%20other%20services.%20For%20instance%2C%20instead%20of%20setting%20the%20HTTP%20client%E2%80%99s%20base%20URL%20to%20an%20IP%20address%20or%20FQDN%2C%20the%20application%20instead%20uses%20the%20name%20of%20the%20service%20like%20%E2%80%98https%3A%2F%2Fanother-service%2Fapi%2Fsomething%2F2%E2%80%99%20as%20the%20base.%20A%20request%20is%20first%20sent%20to%20the%20discovery%20service%20to%20find%20addresses%20where%20instances%20of%20the%20service%20can%20be%20reached.%20Then%20Steeltoe%20uses%20an%20ILoadBalancer%20to%20decide%20the%20best%20address%20to%20use.%20The%20decision%20could%20be%20based%20on%20a%20load%20balancing%20algorithm%2C%20the%20health%20of%20instances%2C%20or%20other%20strategies.%20Steeltoe%20then%20forwards%20the%20request%20to%20the%20actual%20service%2C%20and%20the%20response%20comes%20directly%20back%20to%20the%20calling%20application.%20To%20you%20(the%20Developer)%20all%20of%20this%20is%20wrapped%20up%20in%20a%20single%20HTTPClient%20call.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThis%20combination%20of%20discovery%20and%20external%20config%20is%20quite%20powerful%20in%20situations%20where%20settings%20and%20service%20addresses%20stay%20fluid%20-%20i.e.%20the%20cloud.%20But%20I%20have%20yet%20to%20meet%20a%20developer%20that%20is%20willing%20to%20manage%20all%20this%20for%20the%20entire%20organization.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EMeet%20the%20Pet%20Clinic%20application%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20the%20Spring%20Java%20world%2C%20there%20is%20an%20application%20known%20as%20Pet%20Clinic%20that%20has%20been%20around%20since%20the%20dawn%20of...well%E2%80%A6%20Spring.%20Its%20purpose%20is%20to%20highlight%20the%20many%20features%20of%20Spring%20and%20has%20become%20so%20popular%20that%20it%20has%20its%20own%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fspring-petclinic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EGitHub%20org%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20Of%20the%20many%20Pet%20Clinic%20derivations%2C%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fspring-petclinic%2Fspring-petclinic-microservices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Espring-petclinic-microservices%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20version%20offers%20a%20relatively%20real-world%20cloud%20platform%20scenario.%20This%20version%20breaks%20the%20application%20into%20different%20microservices%20and%20uses%20Spring%20API%20Gateway%20to%20host%20the%20web%20UI%20as%20well%20as%20host%20a%20few%20public%20endpoints.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENote%20that%20API%20Gateway%20doesn%E2%80%99t%20have%20any%20backing%20database.%20Its%20endpoints%20dynamically%20create%20responses%20by%20calling%20other%20backing%20services%20and%20aggregating%20the%20results%20together.%20It%20insulates%20those%20backing%20services%20from%20ever%20having%20to%20be%20publicly%20available.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EReferring%20to%20the%20below%20architecture%20drawing%20you%E2%80%99ll%20see%20the%20relationship%20Eureka%20and%20Config%20server%20play.%20Almost%20everything%20relies%20on%20retrieving%20config%20dynamically%20and%20either%20discovering%20service%20addresses%20or%20registering%20itself%20as%20discoverable.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22daviddieruf_0-1611327796795.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F248543i3E0EA4CC6C223BD4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22daviddieruf_0-1611327796795.png%22%20alt%3D%22daviddieruf_0-1611327796795.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAlso%20of%20note%20is%20the%20Spring%20Boot%20Admin%20Server.%20This%20service%20packs%20a%20powerful%20debugging%20punch%20and%20can%20serve%20as%20a%20priceless%20resource%20to%20developers%20wanting%20to%20see%20exactly%20how%20each%20application%E2%80%99s%20container%20is%20configured%20and%20turn%20logging%20levels%20up%20and%20down%20instantly.%20Admin%20Server%20can%20provide%20so%20much%20insight%20into%20all%20the%20services%20because%20the%20%E2%80%98actuator%E2%80%99%20feature%20is%20enabled%20in%20each.%20You%20can%20learn%20more%20about%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.spring.io%2Fspring-boot%2Fdocs%2Fcurrent%2Freference%2Fhtml%2Fproduction-ready-features.html%23production-ready%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3ESpring%20Boot%20Actuators%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20for%20Spring%20Java%20apps%20and%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.steeltoe.io%2Fapi%2Fv3%2Fmanagement%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3ESteeltoe%20Management%20Endpoints%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20for%20.NET%20apps%20in%20their%20respective%20docs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20last%20feature%20of%20the%20Pet%20Clinic%20Microservices%20architecture%20is%20for%20performance%20%26amp%3B%20debugging%20with%20distributed%20tracing.%20In%20this%20case%2C%20Zipkin%20is%20the%20chosen%20server.%20Each%20application%20is%20given%20direction%20to%20export%20traces%20to%20the%20Zipkin%20server%20in%20a%20compliant%20format.%20The%20power%20here%20is%20around%20simplicity.%20In%20Spring%20you%20use%20Sleuth%20and%20in%20Steeltoe%20you%20use%20the%20Zipkin%20exporter.%20Both%20are%20dead%20simple%20to%20implement%20and%20know%20exactly%20how%20to%20monitor%20requests%20and%20build%20spans%20into%20traces.%20In%20fact%2C%20both%20can%20also%20monitor%20an%20application%E2%80%99s%20logging%20and%20correlate%20logs%20with%20request%20traces!%20This%20is%20a%20very%20powerful%20feature%20for%20developing%20and%20debugging.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDeploy%20Pet%20Clinic%20on%20Azure%20Spring%20Cloud%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAs%20you%20review%20the%20previous%20architecture%2C%20the%20elephant%20in%20the%20room%20is%20how%20many%20working%20parts%20the%20Pet%20Clinic%20Microservice%20application%20has.%20Each%20service%20brings%20value%20and%20takes%20the%20application%20to%20a%20higher%20cloud-native%20status%2C%20but%20adds%20to%20the%20management%20burden.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAzure%20Spring%20Cloud%20aims%20to%20minimize%20the%20management%20burden.%20When%20you%20create%20an%20instance%20of%20Azure%20Spring%20Cloud%20you%20get%20a%20fully%20managed%20Eureka%2C%20Config%2C%20and%20Zipkin%20compatible%20tracing%20service.%20They%20have%20taken%20care%20of%20the%20hard%20stuff.%20Each%20application%20running%20in%20Azure%20Spring%20Cloud%20is%20given%20the%20address%20to%20these%20services%20in%20a%20secure%20manner.%20This%20means%20Spring%20and%20Steeltoe%20applications%20are%20going%20to%20feel%20right%20at%20home%20the%20second%20they%20start%20running.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22daviddieruf_1-1611327796837.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F248544iAAA164B087E8593A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22daviddieruf_1-1611327796837.png%22%20alt%3D%22daviddieruf_1-1611327796837.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20customers%2C%20vets%2C%20and%20visits%20services%20don%E2%80%99t%20need%20to%20be%20public%2C%20only%20the%20API%20Gateway.%20The%20Admin%20Server%20also%20doesn%E2%80%99t%20need%20a%20public%20address.%20Instead%20it%20can%20use%20the%20automatically%20generated%20%E2%80%9CTest%20Endpoint%E2%80%9D%20that%20is%20behind%20Azure%20auth.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20applications%20still%20export%20traces%20to%20a%20Zipkin%20compatible%20service.%20The%20service%20provides%20a%20very%20useful%20map%20to%20drill%20into%20details%20via%20Application%20Map%20in%20Azure%20Application%20Insights.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAs%20you%20can%20see%20Azure%20Spring%20Cloud%20helps%20developers%20be%20more%20cloud-native%20by%20managing%20the%20infrastructure%20and%20providing%20native%20bindings%20to%20Spring%20and%20Steeltoe%20thus%20minimizing%20the%20maintenance%20burden.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGet%20Started%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20.NET%20developers%2C%20the%20Steeltoe%20team%20has%20refactored%20each%20Spring%20microservice%20to%20ASP.NET%20Core%203.1%20and%20added%20in%20all%20the%20Steeltoe%20fixin%E2%80%99s%20so%20everything%20just%20works.%20Review%20the%20source%20code%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsteeltoeoss-incubator%2Fspring-petclinic-microservices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20and%20get%20started.%20The%20main%20branch%20of%20the%20application%20is%20meant%20for%20local%20development.%20Note%2C%20to%20run%20the%20entire%20application%2C%20you%E2%80%99ll%20need%20maven%20to%20compile%20the%20Spring%20pieces%20and%20(within%20the%20Docker%20Compose)%20you%E2%80%99ll%20see%20the%20Dockerfile%20used%20for%20compiling%20the%20.NET%20services.%20On%20my%20Windows%20desktop%20I%20used%20a%20combination%20of%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.docker.com%2Fdocker-for-windows%2Fwsl%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3EDocker%20Desktop%20with%20WSL%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20and%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcode.visualstudio.com%2Fdocs%2Fremote%2Fwsl%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EVS%20Code%20with%20WSL%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20to%20get%20everything%20running.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20you%20would%20rather%20run%20everything%20as%20Spring%20Boot%20(no%20.NET%20services)%2C%20refer%20to%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure-Samples%2Fspring-petclinic-microservices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Espring-petclinic-microservices%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20repo.%20There%20you%20will%20find%20exact%20instructions%20to%20run%20the%20application%20locally.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EOnce%20you%20are%20ready%20to%20get%20started%20with%20Azure%20Spring%20Cloud%2C%20you%20have%20quite%20a%20few%20options.%20If%20you%20prefer%20to%20get%20a%20little%20more%20familiar%20with%20Azure%20Spring%20Cloud%20without%20diving%20in%20with%20Pet%20Clinic%2C%20you%E2%80%99ll%20find%20how%20to%E2%80%99s%2C%20tutorials%2C%20overview%2C%20and%20getting%20started%20guides%20for%20both%20Java%20and%20.NET%20in%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fspring-cloud%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Edocumentation%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20There%20are%20step%20by%20step%20instructions%20to%20help%20get%20familiar%20with%20the%20overall%20service%20and%20deploy%20different%20flavors%20of%20microservices.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWhen%20you%E2%80%99re%20ready%20to%20see%20Azure%20Spring%20Cloud%20in%20full%20swing%2C%20head%20over%20to%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsteeltoeoss-incubator%2Fspring-petclinic-microservices%2Ftree%2Fazure-spring-cloud%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Eazure-spring-cloud%20branch%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20of%20the%20Steeltoe%20application.%20There%20you%20will%20find%20a%20%E2%80%9Cdeploy-to-Azure%20Spring%20Cloud%E2%80%9D%20script%20in%20both%20powershell%20and%20bash.%20Either%20will%20get%20everything%20going%20in%20Azure%20Spring%20Cloud%20and%20help%20you%20see%20the%20full%20potential%20of%20the%20Azure%20Spring%20Cloud%20managed%20service.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%3EYou%20can%20also%20find%20a%20Spring%20only%20version%20of%20Pet%20Clinic%20for%20Azure%20Spring%20Cloud%20in%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure-Samples%2Fspring-petclinic-microservices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EAzure%20samples%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2087416%22%20slang%3D%22en-US%22%3E%3CP%3EJava%20and%20.NET%20microservices%20running%20together%2C%20side%20by%20side%2C%20in%20complete%20harmony.%20It%20may%20sound%20like%20the%20stuff%20of%20myths%20and%20legends%2C%20but%20it's%20real.%20Let's%20visit%20an%20example%20scenario%20using%20the%20best%20of%20both%20worlds.%20Then%20let's%20make%20it%20even%20better%20with%20Azure%20Spring%20Cloud!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2087416%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E.%20NET%20Core%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E.NET%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EASP%20.NET%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EJava%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicroservices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESpring%20Cloud%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESpring%20Integrations%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 25 2021 03:22 PM
Updated by: