Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Microservices Communication in .NET Using gRPC
Microservices Communication in .NET Using gRPC

Microservices Communication in .NET Using gRPC: A practical guide for .NET developers to build efficient communication mechanism for distributed apps

Arrow left icon
Profile Icon Sazanavets
Arrow right icon
S$37.99 S$42.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (7 Ratings)
eBook Feb 2022 486 pages 1st Edition
eBook
S$37.99 S$42.99
Paperback
S$52.99
Subscription
Free Trial
Arrow left icon
Profile Icon Sazanavets
Arrow right icon
S$37.99 S$42.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (7 Ratings)
eBook Feb 2022 486 pages 1st Edition
eBook
S$37.99 S$42.99
Paperback
S$52.99
Subscription
Free Trial
eBook
S$37.99 S$42.99
Paperback
S$52.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Microservices Communication in .NET Using gRPC

Chapter 1: Creating a Basic gRPC Application on ASP.NET Core

In this chapter, we will learn how to build a basic ASP.NET Core server application that uses gRPC. We will also build a basic console application that will act as a gRPC client.

The main objectives of this chapter are to introduce you to gRPC and to show you how easy it is to set up and use as a communication mechanism between separate services inside a distributed application. This would especially be relevant in a microservice architecture, where many different services act as one application with many moving components. You will see that using gRPC for communication between separate applications is almost as easy as calling methods inside the same application.

In this chapter, we will cover the following topics:

  • Introduction to gRPC
  • Preparing your system
  • Setting up a gRPC server
  • Setting up a gRPC client
  • Understanding how Proto files generate C# code
  • Sharing a Proto file between the client and the server
  • Running a gRPC service on Mac

By the end of this chapter, you will have learned how to set up all the fundamental gRPC components on .NET and how to use them on both the client and server side. You will have also learned how to efficiently share protocol definitions between the client and the server.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore all aspects of gRPC implementation on .NET, from the most basic features to advanced ones
  • Discover best practices for using gRPC to make sure that your applications are as efficient and as scalable as possible
  • Identify when gRPC is the best tool for the job and when it isn't

Description

Explore gRPC's capabilities for faster communication between your microservices using the HTTP/2 protocol in this practical guide that shows you how to implement gRPC on the .NET platform. gRPC is one of the most efficient protocols for communication between microservices that is also relatively easy to implement. However, its official documentation is often fragmented and.NET developers might find it difficult to recognize the best way to map between C# data types and fields in gRPC messages. This book will address these concerns and much more. Starting with the fundamentals of gRPC, you'll discover how to use it inside .NET apps. You’ll explore best practices for performance and focus on scaling a gRPC app. Once you're familiar with the inner workings of the different call types that gRPC supports, you'll advance to learning how to secure your gRPC endpoints by applying authentication and authorization. With detailed explanations, this gRPC .NET book will show you how the Protobuf protocol allows you to send messages efficiently by including only the necessary data. You'll never get confused again while translating between C# data types and the ones available in Protobuf. By the end of the book, you’ll have gained practical gRPC knowledge and be able to use it in .NET apps to enable direct communication between microservices.

Who is this book for?

This book is for NET developers who are working with microservices and are looking for efficient solutions to facilitate communication between services using gRPC. Anyone who is familiar with microservices architecture and has knowledge of the fundamentals of .NET Core, but not necessarily of gRPC, will also find this book useful.

What you will learn

  • Get to grips with the fundamentals of gRPC and Protobuf
  • Debug gRPC components inside a .NET application to locate and fix errors
  • Understand gRPC best practices, such as performance enhancement
  • Effectively translate between gRPC and native C# code by applying well-known types
  • Secure gRPC communication inside a .NET application
  • Discover how to monitor gRPC on .NET by applying logging and metrics

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 11, 2022
Length: 486 pages
Edition : 1st
Language : English
ISBN-13 : 9781803249520
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 11, 2022
Length: 486 pages
Edition : 1st
Language : English
ISBN-13 : 9781803249520
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total S$ 231.97
High-Performance Programming in C# and .NET
S$70.99
Microservices Communication in .NET Using gRPC
S$52.99
C# 10 and .NET 6 – Modern Cross-Platform Development
S$107.99
Total S$ 231.97 Stars icon

Table of Contents

16 Chapters
Section 1: Basics of gRPC on .NET Chevron down icon Chevron up icon
Chapter 1: Creating a Basic gRPC Application on ASP.NET Core Chevron down icon Chevron up icon
Chapter 2: When gRPC Is the Best Tool and When It Isn't Chevron down icon Chevron up icon
Chapter 3: Protobuf – the Communication Protocol of gRPC Chevron down icon Chevron up icon
Section 2: Best Practices of Using gRPC Chevron down icon Chevron up icon
Chapter 4: Performance Best Practices for Using gRPC on .NET Chevron down icon Chevron up icon
Chapter 5: Applying Versioning to the gRPC API Chevron down icon Chevron up icon
Chapter 6: Scaling a gRPC Application Chevron down icon Chevron up icon
Section 3: In-Depth Look at gRPC on .NET Chevron down icon Chevron up icon
Chapter 7: Using Different Call Types Supported by gRPC Chevron down icon Chevron up icon
Chapter 8: Using Well-Known Types to Make Protobuf More Handy Chevron down icon Chevron up icon
Chapter 9: Securing gRPC Endpoints in Your ASP.NET Core Application with SSL/TLS Chevron down icon Chevron up icon
Chapter 10: Applying Authentication and Authorization to gRPC Endpoints Chevron down icon Chevron up icon
Chapter 11: Using Logging, Metrics, and Debugging in gRPC on .NET Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(7 Ratings)
5 star 71.4%
4 star 28.6%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Anil Chaulagain May 30, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is helpful for me to understand the concepts of gRPC and detail step-by-step implementation in .NET.I highly recommend this book to developers who want to develop their applications using gRPC and .NET.
Amazon Verified review Amazon
Saatwik May 10, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I was looking for how to get started with gRPC and this book provided me exactly that. Great read with detailed step by step instructions. I highly suggest this book to code along or keep it as a reference
Amazon Verified review Amazon
irakli gabisonia Mar 07, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is great for those people who wants to start using gRPC.The book will give you good understanding of gRPC, its full of practical examples so it is easy to use theoretical knowledge in practice.Book covers every topic starting from basic to advance topics.As a Solution Architect I highly recommend this book.
Amazon Verified review Amazon
Mrs N Mar 21, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great book to get started with gRPC and what the API pattern is all about. I knew a lot of the basics about gRPC yet I gained from the initial chapters of the book. But what I really enjoyed is the advanced topics, very well explained in a way that anyone can understand. There are some typos in the book but apart from that a great book!
Amazon Verified review Amazon
treesa Dec 03, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Plenty of code snippets with screen shots of results. Very well-explained.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.