The VictoriaMetrics Observability News And Blogs
Read Our Technical & Business Content on Monitoring Solutions & Time Series Databases
Tag:

Grpc

gRPC in Go: Streaming RPCs, Interceptors, and Metadata

by Phuong Le on Mar 28, 2025

Go’s gRPC implementation uses code generation to create type-safe client and server interfaces. Streaming RPCs allow sending multiple messages over a single connection, perfect for real-time updates and continuous data flows. Interceptors provide middleware-like functionality for authentication, logging, and error handling without modifying your core service logic.

Read

How Protobuf Works—The Art of Data Encoding

by Phuong Le on Feb 7, 2025

Protocol Buffers is faster and smaller than JSON, but the interesting part is understanding why. This article breaks down the encoding techniques that make Protobuf efficient, backed by benchmark results and practical examples

Read

How HTTP/2 Works and How to Enable It in Go

by Phuong Le on Jan 10, 2025

HTTP/2 solves head-of-line blocking at the application layer by multiplexing multiple streams over a single TCP connection. While HTTP/1.1 requires requests to be processed sequentially, HTTP/2 allows parallel processing through independent streams, each with its own ID. The Go standard library supports HTTP/2 out of the box when using HTTPS, and with some configuration, it can work over plain HTTP too

Read

From net/rpc to gRPC in Go Applications

by Phuong Le on Dec 20, 2024

The net/rpc package in Go demonstrates basic RPC concepts by establishing TCP connections between clients and servers, using sequence numbers to match requests with responses, and supporting both gob (Go-specific) and JSON codecs for data serialization. While net/rpc is simpler and limited to Go services by default, gRPC offers advanced features like HTTP/2 streaming, cross-language support, and better performance

Read

Watch Your Monitoring SkyRocket With VictoriaMetrics!