Skip to content

Files

Latest commit

 

History

History

sidecar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Sidecar Examples

The micro sidecar is a language agnostic proxy which provides all the features of go-micro as a HTTP server. To learn more about the sidecar look here.

This directory contains examples for using the sidecar with various languages.

## Usage

Run Discovery

Use Consul

brew install consul
consul agent -dev

Alternatively run sidecar with --registry=mdns for multicast dns and zero dependencies.

Run Sidecar

micro sidecar

Or with http proxy handler

micro sidecar --handler=proxy

Service

Run server

{python, ruby} {http, rpc}_server.{py, rb}

Run client

{python, ruby} {http, rpc}_client.{py, rb}

Examples

Each language directory {python, ruby, ...} contains examples for the following:

  • Registering Service
  • JSON RPC Server and Client
  • HTTP Server and Client