Skip to content
An event aggregation service for microservices
Go Protocol Buffer
Find file
Latest commit e4383d3 @asim asim Strip glog
Failed to load latest commit information.
db Fix import paths
event Fix import paths
handler Name proto packages
proto/event Name proto packages
Dockerfile First
LICENSE First
README.md First
main.go Strip glog

README.md

Event Server

Event server is used to store a time series set of events for the platform. Services can subscribe for event notifications

Getting started

  1. Install Consul

    Consul is the default registry/discovery for go-micro apps. It's however pluggable. https://www.consul.io/intro/getting-started/install.html

  2. Run Consul

    $ consul agent -server -bootstrap-expect 1 -data-dir /tmp/consul
    
  3. Start a mysql database

  4. Download and start the service

    go get github.com/micro/event-srv
    event-srv --database_url="root:root@tcp(192.168.99.100:3306)/event"

    OR as a docker container

    docker run microhq/event-srv --database_url="root:root@tcp(192.168.99.100:3306)/event" --registry_address=YOUR_REGISTRY_ADDRESS

The API

Event server implements the following RPC Methods

Event

  • Create
  • Read
  • Search
  • Stream

Supported but should not really be used

  • Update
  • Delete
Something went wrong with that request. Please try again.