Microservices Communication in .NET Using gRPC by Fiodar Sazanavets
Author:Fiodar Sazanavets
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2022-01-05T00:00:00+00:00
Your first instance of the server-side application is now ready to start accepting requests from the connected clients. We now need to create a second instance.
To do so, create another project inside the GrpcLoadBalancing solution folder via the following command:
dotnet new web -o GrpcServer2
After this, finalize it by following the same process you did to prepare the GrpcServer1 project. Repeat the steps from 2 to 5, but this time, use GrpcServer2 as the project name. Don't forget to make an additional modification to the project if you intend to run it on Macintosh.
Now, you have two identical web application projects in your solution that can run as two instances of the same gRPC service application. They will be absolutely identical in their functionality. The only difference would be their access URLs, which would have been auto-generated by the dotnet new command. Because the project-creation process allocates randomized port numbers to ASP.NET Core projects, it is unlikely that there will be any port clash between these projects and any of your existing applications running on the machine. But if the clash does occur, you can change those endpoints by modifying the URLs listed under the applicationUrl key of the launchSettings.json file that can be found in the Properties folder inside the project folder.
Now, we are ready to create the client application.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ajax | Assembly Language Programming |
Borland Delphi | C & C++ |
C# | CSS |
Compiler Design | Compilers |
DHTML | Debugging |
Delphi | Fortran |
Java | Lisp |
Perl | Prolog |
Python | RPG |
Ruby | Swift |
Visual Basic | XHTML |
XML | XSL |
Deep Learning with Python by François Chollet(12571)
Hello! Python by Anthony Briggs(9916)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9779)
Dependency Injection in .NET by Mark Seemann(9340)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8300)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7084)
Microservices with Go by Alexander Shuiskov(6854)
Practical Design Patterns for Java Developers by Miroslav Wengner(6772)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6711)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6417)
Angular Projects - Third Edition by Aristeidis Bampakos(6117)
The Art of Crafting User Stories by The Art of Crafting User Stories(5647)
NetSuite for Consultants - Second Edition by Peter Ries(5579)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5385)
Kotlin in Action by Dmitry Jemerov(5065)
