simple_grpc

gRPC Protocol for Eiffel

v1.0.0 MIT

Overview

simple_grpc provides gRPC protocol support for Eiffel applications including Protocol Buffers, HTTP/2 transport, streaming RPC, and service definitions.

Part of the Simple Eiffel ecosystem.

Quick Start

local
    client: SIMPLE_GRPC_CLIENT
    request: SIMPLE_PROTOBUF_MESSAGE
do
    create client.make ("localhost:50051")
    create request.make
    request.set_field ("name", "World")
    if attached client.call ("Greeter/SayHello", request) as response then
        print (response.string_field ("message"))
    end
end

Features

Protocol Buffers

Efficient binary serialization with protobuf support

HTTP/2 Transport

Modern HTTP/2 based communication protocol

Streaming RPC

Unary, server, client, and bidirectional streaming

Service Definitions

Define services with request/response types

Installation

# Set environment variable
export SIMPLE_GRPC=/path/to/simple_grpc

# Add to ECF
<library name="simple_grpc" location="$SIMPLE_GRPC/simple_grpc.ecf"/>