Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meitu/bifrost
https://github.com/meitu/bifrost
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/meitu/bifrost
- Owner: meitu
- License: apache-2.0
- Created: 2021-01-06T09:26:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T11:50:04.000Z (almost 4 years ago)
- Last Synced: 2024-07-22T04:59:16.220Z (5 months ago)
- Language: Go
- Size: 365 KB
- Stars: 8
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bifrost
A MQTT message broker based on [MQTT v3.1.1](http://mqtt.org)## 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](docs/bifrost.png)* 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](https://github.com/etcd-io/etcd)
#### Redis
* nohup redis-server > redis.log 2>&1 &To setup redis, please follow official [instruction](https://redis.io/)
### 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)