Skip to content
A Go microservices development framework
Go
Branch: master
Clone or download
asim Merge pull request #1042 from ZGeomantic/feat-client-mock
support ctx as input params, error as output for MockClient.Call
Latest commit d5951f1 Dec 15, 2019
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 linting fixes Dec 3, 2019
broker strip handlers Dec 10, 2019
client Merge pull request #1042 from ZGeomantic/feat-client-mock Dec 15, 2019
codec Fixing dead code and go vet moaning Dec 5, 2019
config strip some cruft from config/cmd Dec 10, 2019
debug add net/http/pprof profiler Dec 8, 2019
errors used gofmt with -s flag on whole project Nov 1, 2019
metadata add metadata.Get(context, key) as short hand Nov 11, 2019
monitor Fixing dead code and go vet moaning Dec 5, 2019
network final updates Dec 13, 2019
plugin Output the build error in plugin Nov 1, 2019
proxy just return filtered routes Dec 8, 2019
registry etcd can set log config Dec 13, 2019
router strip handlers Dec 10, 2019
runtime Save current state of the world Dec 11, 2019
server Cleanup and speedup network convergence along with direct messaging f… Dec 7, 2019
service service/grpc: t.Fatal out of TestGRPCTLSService() goroutine Dec 11, 2019
store strip handlers Dec 10, 2019
sync linting fixes Dec 3, 2019
transport linting fixes Dec 3, 2019
tunnel final updates Dec 13, 2019
util Fixing dead code and go vet moaning Dec 5, 2019
web web: fix test goroutine in TestService() Dec 9, 2019
.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
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 etcd can set log config Dec 13, 2019
go.sum proper go.mod, go.sum Dec 9, 2019
micro.go Add service Name Oct 7, 2019
options.go Now specify HandleSignal as an option to toggle signal handling. (#948) Nov 16, 2019
publisher.go accept publisher options May 21, 2019
service.go add net/http/pprof profiler Dec 8, 2019
service_test.go Move debug handler to service dir Dec 4, 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.