Skip to content
A Go microservices development framework
Go
Branch: master
Clone or download
Latest commit e666d0b Jan 18, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add some more issue templates (#987) Nov 26, 2019
agent linting fixes Dec 3, 2019
api only add api endpoint metadata if it exists (#1087) Jan 6, 2020
auth go fmt Dec 18, 2019
broker move nats local logic Jan 18, 2020
client RPC stream client/server mutex fix (#884) Jan 12, 2020
codec don't write anything if theres no data Dec 31, 2019
config Embedded NATS Broker (#1110) Jan 14, 2020
debug Kubernetes Registry (#1064) Dec 27, 2019
errors used gofmt with -s flag on whole project Nov 1, 2019
metadata upper case the metadata Dec 31, 2019
monitor Fixing dead code and go vet moaning Dec 5, 2019
network Update route metric when receiving Sync routes Jan 17, 2020
plugin Output the build error in plugin Nov 1, 2019
proxy Check link is grpc Jan 3, 2020
registry Replace service prefix with FQDN style prefix (#1107) Jan 12, 2020
router Use the same logic for advertising routes in Router and Network Jan 17, 2020
runtime Extract k8s run error Jan 18, 2020
server do not wait to stop Jan 18, 2020
service go fmt Dec 30, 2019
store set default store, fix store options bug, add String method Jan 10, 2020
sync Change the store interface to remove variadic args (#1095) Jan 8, 2020
transport named return value for error defer modify. Dec 9, 2019
tunnel Define tunnel errors Jan 13, 2020
util add missing commit Jan 18, 2020
web add option for web service signal handler (#1091) Jan 10, 2020
.gitignore .gitignore file for develop tools Sep 4, 2019
.golangci.yml add golanglint-ci Dec 3, 2019
.travis.yml add golanglint-ci Dec 3, 2019
CNAME Update CNAME Nov 14, 2019
Dockerfile go-micro docker now includes unprivileged user Nov 26, 2019
LICENSE Add apache license Feb 27, 2015
README.md update link in readme Nov 9, 2019
README.zh-cn.md Update README.zh-cn.md Sep 5, 2019
_config.yml Set theme jekyll-theme-architect Nov 14, 2019
defaults.go Embedded NATS Broker (#1110) Jan 14, 2020
event.go publisher => event Dec 17, 2019
function.go `Wait()` option now accept *sync.WaitGroup May 27, 2019
function_test.go Move debug handler to service dir Dec 4, 2019
go.mod update nlopes/slack dep Jan 15, 2020
go.sum update nlopes/slack dep Jan 15, 2020
micro.go publisher => event Dec 17, 2019
options.go Moving to gRPC by default (#1069) Dec 29, 2019
service.go log when starting the service Dec 31, 2019
service_test.go Cleanup go mod Dec 18, 2019

README.md

Go Micro License GoDoc Travis CI Go Report Card

Go Micro is a framework for microservice development.

Overview

Go Micro provides the core requirements for distributed systems development including RPC and Event driven communication. The micro philosophy is sane defaults with a pluggable architecture. We provide defaults to get you started quickly but everything can be easily swapped out.

Plugins are available at github.com/micro/go-plugins.

Follow us on Twitter or join the Slack community.

Features

Go Micro abstracts away the details of distributed systems. Here are the main features.

  • Service Discovery - Automatic service registration and name resolution. Service discovery is at the core of micro service development. When service A needs to speak to service B it needs the location of that service. The default discovery mechanism is multicast DNS (mdns), a zeroconf system.

  • Load Balancing - Client side load balancing built on service discovery. Once we have the addresses of any number of instances of a service we now need a way to decide which node to route to. We use random hashed load balancing to provide even distribution across the services and retry a different node if there's a problem.

  • Message Encoding - Dynamic message encoding based on content-type. The client and server will use codecs along with content-type to seamlessly encode and decode Go types for you. Any variety of messages could be encoded and sent from different clients. The client and server handle this by default. This includes protobuf and json by default.

  • Request/Response - RPC based request/response with support for bidirectional streaming. We provide an abstraction for synchronous communication. A request made to a service will be automatically resolved, load balanced, dialled and streamed. The default transport is http/1.1 or http2 when tls is enabled.

  • Async Messaging - PubSub is built in as a first class citizen for asynchronous communication and event driven architectures. Event notifications are a core pattern in micro service development. The default messaging is point-to-point http/1.1 or http2 when tls is enabled.

  • Pluggable Interfaces - Go Micro makes use of Go interfaces for each distributed system abstraction. Because of this these interfaces are pluggable and allows Go Micro to be runtime agnostic. You can plugin any underlying technology. Find plugins in github.com/micro/go-plugins.

Getting Started

See the docs for detailed information on the architecture, installation and use of go-micro.

You can’t perform that action at this time.