Skip to content

0x05. Setup Microservices

Tran Phong Phu edited this page Apr 12, 2019 · 2 revisions

Setup tools & environment to do microservice exercises

Protobuf

Installation

Visit here for first steps to download and install protobuf, and protobuf with Golang

It's hard and complicated so please be patient.

  • For MacOS you can use brew
  • For Ubuntu/Linux

Setup Golang Protobuf

Visit here to see how to setup grpc-go. Easily, you just install go package:

$ go get -u google.golang.org/grpc

Note: gRPC-Go requires Go 1.9 or later.

Setup Go Micro - A microservice framework

Visit here to see how to setup and for examples.

Setup Consul

Consul is a distributed service mesh to connect, secure, and configure services across any runtime platform and public or private cloud

You can see week5-exercise to see how to start Consul with Docker

consul:
  command: -server -bootstrap -rejoin 
  image: progrium/consul:latest
  ports:
    - "8300:8300"
    - "8400:8400"
    - "8500:8500"
    - "8600:53/udp"

Credits