bifrost

module
v0.0.0-...-2aa8555 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0

README

bifrost

A MQTT message broker based on MQTT v3.1.1

Why Bifrost?

  • Completely compatible with mqtt protocol
  • Multi-tenancy support
  • No painful scale out
  • High availability
  • Flexible business callback

Support Functions

  • Retain message
  • QoS 1,0 message
  • Will message

Architecture

bifrost

  • connd: the session layer manages the flow of client state.
  • pushd: the business layer implements business callbacks and data persistence
  • etcd cluster: service discovery, routing metadata store.
  • DB : user state storage, support two types of tikv, redis storage.

Quick Start

Building the base environment
Etcd
  • nohup etcd > etcd.log 2>&1 &

To setup etcd , please follow official instruction

Redis
  • nohup redis-server > redis.log 2>&1 &

To setup redis, please follow official instruction

Run Bifrost
  1. GO111MODULE=on sh release.sh
  2. cd bifrost
  3. nohup bin/pushd -c conf/pushd.toml > pushd.log 2>&1 &
  4. nohup bin/connd -c conf/connd.toml > connd.log 2>&1 &
Test
  1. cd misc/example/ && go build
  2. ./message_test_a2a

Example

You can refer to directory 1 (misc/linktest) and directory 2 (misc/example)

Directories

Path Synopsis
commons
log
grpc
conn
Package conn is a generated protocol buffer package.
Package conn is a generated protocol buffer package.
message
Package message is a generated protocol buffer package.
Package message is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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