Skip to content

An example of using gRPC as a backbone for a CRUD app with a REST API.

Notifications You must be signed in to change notification settings

scottypate/grpc-rest

Repository files navigation

gRPC REST Example

This repository is an example of how to use gRPC and REST together in a single service. This gives the benefits of using a protocol buffer definition for your service, but also allows you to use REST for clients that don't support gRPC.

The backbone of this architecture is the protocol buffer which defines the service, the data interface, and the methods supported by the service. This architecture provides a language agnostic implementation of static typing data transfer. The best use cases for this type of architecture are internal services communication, aka service mesh.

The service is written in Go, but the protocol buffer definition can be used to generate clients in any language. The example client is written in Python.

Getting Started

Install Dependencies

make install-deps

Produce the Protobuf Objects

make gen-code

Start the Server

make start-services

About

An example of using gRPC as a backbone for a CRUD app with a REST API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published