gRPC Services

Contents

gRPC Overview

gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking and authentication. It is also applicable in last mile of distributed computing to connect devices, mobile applications and browsers to backend services. By default, gRPC uses protocol buffers as the Interface Definition Language (IDL) for describing both the service interface and the structure of the payload messages. .gRPC Docs is the recommended starting point to understand how this works

gRPC and SingularityNet Platform

AI Services on the Singularitynet platform need to define their API using protocol buffers and expose a gRPC endpoint. This allows SingularityNET clients to determine the request/response schema programmatically. The first step in getting the AI service ready for the SingularityNet platform is to have a proto definition and expose a gRPC endpoint for it. Once this is done, the service can be integrated with the SingulartiyNet Daemon.

Samples

  • The example service is an example of a Python arthimetic service with gRPC endpoints and a proto definition.
  • These guides are a good starting point to creating gRPC based services

Last modified on : 26-May-20

Sign up for developer updates

×