requestreply

command
v3.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

README

Distributed Request

A Grid application that takes an http request, and uses grid library to send request to a pool of workers spread across servers. This is similar to a http based micro-service.

What You Will Learn

How to Send/Receive messages to existing workers. Assumes you have already read hello example.

Running the Example

In a terminal run the following commands from inside the requestreply directory:

# Start an api server
go run main.go

# Start n worker nodes
go run main.go

# Make request to worker pool
curl -sS locahost:8080/work

Documentation

Overview

Package main is a generated protocol buffer package.

It is generated from these files:

msgs.proto

It has these top-level messages:

Event
EventResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL