Skip to content

gaarutyunov/gueue

Repository files navigation

gueue

A simple event queue powered by Go concurrency patterns and gRPC.

Usage

Installation

Server:

go install github.com/gaarutyunov/gueue/cmd/gueue

Client package:

go get github.com/gaarutyunov/gueue/pkg/client

Configuration

An example configuration file for gueue server:

server:
  host: localhost
  port: 8001

topics:
  - name: test.topic.1
    buffer: 1000
  - name: test.topic.2
    buffer: 1000

Start server with:

gueue server -c gueue.yaml

Examples

For an example of client package usage see examples folder.

Start with a simple example in examples/simple/consumer/main.go and examples/simple/producer/main.go.

Development

  1. Build server
make build
  1. Lint
make setup lint
  1. Format
make fmt
  1. Build simple example
make example name=simple