Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Microservices with .NET Core

You're reading from  Building Microservices with .NET Core

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781785887833
Pages 274 pages
Edition 1st Edition
Languages
Authors (3):
Gaurav Aroraa Gaurav Aroraa
Profile icon Gaurav Aroraa
Lalit Kale Lalit Kale
Profile icon Lalit Kale
Manish Kanwar Manish Kanwar
Profile icon Manish Kanwar
View More author details

Table of Contents (10) Chapters

1. What Are Microservices? 2. Building Microservices 3. Integration Techniques 4. Testing Strategies 5. Deployment 6. Security 7. Monitoring 8. Scaling 9. Reactive Microservices 10. Creating a Complete Microservice Solution

Communication between services


In the case of a .NET monolithic application, if there is a need to access third-party components or external services, we use the HTTP client or another client framework to access the resources. In Chapter 2, Building Microservices, we developed Product service in such a way that it would work independently. But this was not the case; we mandatorily required a few services to interact with each other. So this is a challenge: having services communicate with each other. Both Product service and Order service are hosted on separate servers. Both these servers are independent of each other, are based on REST, and have their own endpoints via which they communicate with each other (when a service interacts with another service and vice versa, we refer to it as inter-service communication as well).

There are ways in which services communicate with each other; let's discuss them briefly:

  • Synchronous: In this, the client makes a request to the remote service (called...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}