Fun with gRPC and C++
The Last Viking's Nest
Ramblings from the Viking who run the Cafe at the end of the universe.
Motivation
In this series of articles, the author explores the usage of gRPC with C++, motivated by the need to use gRPC in their upcoming DNS server. Having previously experienced difficulties with gRPC, the author decided to delve deeper into the topic and gain a better understanding.
The author believes that one truly understands something when they can explain it to others, which serves as their motivation for writing this series. They hope that these articles will be useful to someone in the future. Interestingly, the lack of in-depth articles and blog posts about asynchronous gRPC for C++ suggests that either the author is slow to catch on or it is not widely used, particularly with streaming in one or both directions.
Overview
The first article in the series provides an overview of the pros and cons of using gRPC with C++ in 2023. It explores the advantages and disadvantages of this combination, offering insights for developers looking to leverage gRPC in their C++ projects.
Subsequent articles in the series focus on implementing various features and functionalities using gRPC with C++. These include implementing a unary, async server and client, as well as an async server and client with one message and one stream. The series concludes with the implementation of the full routeguide async server and client, which includes the bidirectional stream rpc method RouteChat().
By following this series, developers can gain a comprehensive understanding of using gRPC with C++ and explore its potential for building massively scalable servers and fast micro-services.
Tags in this series: gRPC, C++, asynchronous programming, micro-services, scalability.
This page was generated by stbl at Thursday July 20, 2023.