GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - elstr/example-services: Example of services communicated with gRPC

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
dialer
dialer
 
 
proto
proto
 
 
services
services
 
 
trace
trace
 
 
Dockerfile
Dockerfile
 
 
Makefile
Makefile
 
 
NOTES.md
NOTES.md
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 

Repository files navigation

gRPC example

Usecase

POST /buy where payload is: {'id':1, 'cant':1} and the res is: {'date':'31-07-2020'} (fake delivery date)

Order of calls

main starts all the services
server handles http reqs to /buy
server calls stock service with a rpc call
stock service callas delivery service with a rpc call
delivery service retuns fake delivery date to stock and stock sends date to server

exec

curl -i -X POST -d '{"id": 1, "quantity":1}' http://localhost:8080/buy/ 

res json '{"delivery_date":"random string delivery date"}'

About

Example of services communicated with gRPC

Topics

examplego-grpcgolanggrpcgrpc-exampleprotocol-buffersservices

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.