Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 610 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 610 Bytes

Fib server.

It is a hypothetical example of gRPC server to conduct some longrunning operations. The server implements both FibService and longrunning.OperationsService. FibService receives a request of calculating a fibonacci number, and then returns the name of the operation immediately.

The operation runs in background and its status can be fetched through OperationsService (right now it only implements GetOperation for simplicity).

How to build

% go build -o bin/server ./cmd/server
% go build -o bin/client ./cmd/client

Sample usage

% ./bin/server &
% ./bin/client -n 45