Skip to content
A Go microservices development framework
Go
Branch: master
Clone or download
asim Merge pull request #1139 from alrs/prune-unused-config-reader-func
config/reader/json: remove unused newValue()
Latest commit 59f6ca5 Jan 28, 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 update micro/cli to urfave/cli/v2 and fix go-micro Jan 25, 2020
api only add api endpoint metadata if it exists (#1087) Jan 6, 2020
auth go fmt Dec 18, 2019
broker broker: drop unused registryKey variable Jan 23, 2020
client go fmt Jan 24, 2020
codec don't write anything if theres no data Dec 31, 2019
config config/reader/json: remove unused newValue() Jan 28, 2020
debug add trace context Jan 24, 2020
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 check if event is nil Jan 23, 2020
plugin Output the build error in plugin Nov 1, 2019
proxy fix break Jan 22, 2020
registry Default to grpc in registry service for now Jan 19, 2020
router Add event id to router events Jan 23, 2020
runtime fix bad import Jan 19, 2020
server whoa bad commit, bad asim Jan 22, 2020
service go fmt Dec 30, 2019
store cockroach supports URL connection string Jan 28, 2020
sync
transport named return value for error defer modify. Dec 9, 2019
tunnel fire send in a go routine to prevent blocking other requests Jan 25, 2020
util trace wrapper Jan 24, 2020
web update micro/cli to urfave/cli/v2 and fix go-micro Jan 25, 2020
.gitignore .gitignore file for develop tools Sep 4, 2019
.golangci.yml
.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 README.md Jan 19, 2020
README.zh-cn.md Update README.zh-cn.md Sep 5, 2019
_config.yml Set theme jekyll-theme-architect Nov 14, 2019
defaults.go Shift embedded nats to the default Jan 19, 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 micro/cli to urfave/cli/v2 and fix go-micro Jan 25, 2020
go.sum update micro/cli to urfave/cli/v2 and fix go-micro Jan 25, 2020
micro.go
options.go
service.go add trace handler Jan 24, 2020
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 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 gRPC.

  • 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 system is an embedded NATS server.

  • 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.