Skip to content

Mailing list microservice written in Go using both JSON and gRPC APIs

Notifications You must be signed in to change notification settings

jmarron7/go-mailing-list-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go MailingList Microservice

Description

This mailing list microservice is a simple service that performs basic CRUD operations. This was a learning experience to learn more about Go and specifically the differences betwen JSON and gRPC APIs using Protcol Buffers.

Setup

This project requires a gcc compiler installed and the protobuf code generation tools.

Install protobuf compiler

Install the protoc tool using the instructions available at https://grpc.io/docs/protoc-installation/.

Alternatively you can download a pre-built binary from https://github.com/protocolbuffers/protobuf/releases and placing the extracted binary somewhere in your $PATH.

Install Go protobuf codegen tools

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Generate Go code from .proto files

protoc --go_out=. --go_opt=paths=source_relative \
  --go-grpc_out=. --go-grpc_opt=paths=source_relative \
  Proto/mail.proto

About

Mailing list microservice written in Go using both JSON and gRPC APIs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages