Try Blinkist to get the key ideas from 7,500+ bestselling nonfiction titles and podcasts. Listen or read in just 15 minutes.
Get started for free
Blink 3 of 8 - The 5 AM Club
by Robin Sharma
gRPC: Up and Running is a comprehensive guide that introduces you to gRPC and its core concepts. You'll learn how to build efficient and reliable distributed systems with gRPC, and explore advanced topics such as authentication, load balancing, and error handling.
In gRPC: Up and Running, Kasun Indrasiri begins with an overview of the Remote Procedure Call (RPC) protocol. He explains how gRPC, a modern, high-performance, open-source RPC framework, is built on the foundations of HTTP/2 and Protocol Buffers (protobuf). The author describes the evolution of gRPC, highlighting its origins at Google and subsequent adoption by major tech companies such as Netflix, Square, and CoreOS.
Indrasiri explains the core concepts of gRPC, including its four types of RPCs - Unary, Server Streaming, Client Streaming, and Bidirectional Streaming - and how they facilitate efficient communication between client and server applications. The book also delves into the benefits of using HTTP/2, such as multiplexing, header compression, and server push, which contribute to gRPC's high performance.
The book then guides readers through the process of creating gRPC services. Indrasiri demonstrates how to define a service using Protocol Buffers and generate client and server code in multiple programming languages. He provides clear examples in Go, Java, and Python, showing how to define service methods, data types, and error handling in protobuf files. The author also emphasizes the importance of versioning in gRPC, explaining how to manage backward and forward compatibility using protobuf syntax.
Furthermore, gRPC: Up and Running discusses the implementation of both synchronous and asynchronous gRPC clients and servers. The author explains how to handle errors, deadlines, and cancellations, and how to secure gRPC services using Transport Layer Security (TLS) and authentication mechanisms like JSON Web Tokens (JWT).
Indrasiri then moves on to testing and deploying gRPC services. He explains how to write unit tests for gRPC services using mock clients and servers. The author also covers integration testing, demonstrating how to set up end-to-end tests for gRPC services using Docker containers.
Regarding deployment, the book provides insights into running gRPC services in different environments, including on-premises servers, virtual machines, and containerized platforms like Kubernetes. Indrasiri outlines best practices for managing gRPC service configurations and dependencies, ensuring seamless deployment and scaling.
In the latter part of the book, gRPC: Up and Running explores advanced topics in gRPC. Indrasiri discusses gRPC's support for middleware, which allows developers to implement cross-cutting concerns such as logging, monitoring, and authentication in a reusable manner. The author also covers gRPC's integration with other technologies, such as REST APIs, GraphQL, and gRPC-Web, enabling interoperability with existing systems.
Furthermore, the book addresses performance tuning and monitoring of gRPC services. Indrasiri explains how to measure and optimize gRPC service performance using tools like Prometheus and Grafana. He also discusses error handling strategies, load balancing, and circuit breaking, crucial for building resilient and reliable gRPC-based microservices.
In conclusion, gRPC: Up and Running serves as a comprehensive guide for developers looking to adopt gRPC for building efficient and scalable microservices. Indrasiri's clear explanations, along with practical examples, help readers grasp the fundamental concepts of gRPC and its various features. The book equips developers with the knowledge and skills needed to design, develop, test, deploy, and maintain gRPC services effectively, making it a valuable resource for anyone interested in modern RPC technologies.
gRPC: Up and Running by Kasun Indrasiri is a comprehensive guide to building efficient and reliable distributed systems with gRPC. It provides a deep dive into gRPC concepts, protocol buffers, and practical implementation examples in multiple programming languages. Whether you are a beginner or an experienced developer, this book equips you with the knowledge and skills to leverage the power of gRPC in your own projects.
Software engineers and developers looking to learn about gRPC and its applications
Architects and technical leads interested in implementing high-performance and scalable microservices
Professionals working with distributed systems and remote procedure calls
It's highly addictive to get core insights on personally relevant topics without repetition or triviality. Added to that the apps ability to suggest kindred interests opens up a foundation of knowledge.
Great app. Good selection of book summaries you can read or listen to while commuting. Instead of scrolling through your social media news feed, this is a much better way to spend your spare time in my opinion.
Life changing. The concept of being able to grasp a book's main point in such a short time truly opens multiple opportunities to grow every area of your life at a faster rate.
Great app. Addicting. Perfect for wait times, morning coffee, evening before bed. Extremely well written, thorough, easy to use.
Try Blinkist to get the key ideas from 7,500+ bestselling nonfiction titles and podcasts. Listen or read in just 15 minutes.
Get started for free
Blink 3 of 8 - The 5 AM Club
by Robin Sharma