Get the latest tech news

Using gRPC for (local) inter-process communication – F. Werner's Research Page


Using a full-featured RPC framework for IPC seems like overkill when the processes run on the same machine. However, if your project anyway exposes RPCs for public APIs or would benefit from a schema-based serialisation layer it makes sense to use only one tool that combines these—also for IPC. Microservices for beginners For the FlashCam software running on the DAQ servers we converged on the following high-level architecture: Each bright box corresponds to a software process running on the DAQ server.

to limit uncontrolled growth and foster subsystem homogeneity we provide a common framework for telemetry and inter-process communication and a set of tools for structuring metrics and APIs Ideally, the RPC layer does not incur a significant latency overhead compared to traditional means of IPC and enforces compile-time consistency via schemas. For the connections to the telemetry collector, congestion from handling multiple clients may be a concern in situations such as a run start, where all subsystems are being configured and produce a burst of messages.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of gRPC

gRPC

Photo of F. Werner

F. Werner

Photo of Research Page

Research Page

Related news:

News photo

gRPC: The Ugly Parts

News photo

gRPC: 5 Years Later, Is It Still Worth It?

News photo

gRPC: The Bad Parts