https://github.com/yagotome/grpc-cache
Simple example of the use of gRPC for client-server RPC
https://github.com/yagotome/grpc-cache
golang grpc nodejs protobuf rpc
Last synced: 7 months ago
JSON representation
Simple example of the use of gRPC for client-server RPC
- Host: GitHub
- URL: https://github.com/yagotome/grpc-cache
- Owner: yagotome
- Created: 2019-11-16T21:11:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-02T02:34:54.000Z (over 4 years ago)
- Last Synced: 2024-01-17T17:21:46.025Z (about 2 years ago)
- Topics: golang, grpc, nodejs, protobuf, rpc
- Language: JavaScript
- Homepage: https://youtu.be/hzR1uyhetso
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gRPC cache
This is a simple in-memory cache service implemented on top of gRPC and protobuf.
The purpose of this repository is to show how simple it is to use gRPC by implementing a server in Go and a client in Node.js.
This code was created for the talk "[gRPC: Por que você ainda usa REST?](https://speakerdeck.com/yagotome/grpc-por-que-voce-ainda-usa-rest)"
## Running
### Pre-requisite
You'll need to have [Go](https://golang.org/doc/install) and [Node.js](https://nodejs.org/en/download/) environments set up to run.
### Server
Do enter in `server` folder, then type:
```shell
$ make start
```
### Client
Do enter in `client` folder, then do:
1. Install dependencies
```shell
$ yarn
```
2. Run
```shell
$ yarn start
```
### Evans
You could use [Evans](https://github.com/ktr0731/evans) to consume cache service as well.