Skip to content

The repository implement Gin gonic combined with GRPC to build architect microservice. each service is sidecar (private database, instance)

Notifications You must be signed in to change notification settings

nhuson/microservice-GRPC-Gin-Golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice-GRPC-Gin-Golang

The repository implement Gin gonic combined with GRPC to build infrastructure microservice. Each service is a sidecar (private database, instance)

Features

Per one service in backend communation via grpc. Gateway service provide RESTful api to client get data .

The element in one service:

├── handler
│   └── hander.go
├── main.go
├── pb
│   ├── pb.go
│   └── pb.proto
└── repo
    ├── repo.go
    └── entity.go
  • Run project with dev environment by docker-compose up -d.
  • Gateway service run at http://localhost:8080

Requiment setup protobuf

  • go get -u github.com/amsokol/protoc-gen-gotag
  • protoc -I pb pb/user.proto --go_out=plugins=grpc:pb/. --proto_path=../../../

About

The repository implement Gin gonic combined with GRPC to build architect microservice. each service is sidecar (private database, instance)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published