https://github.com/tal-tech/triton
Triton is a high-performance mq consumer, support kafka,rabbit-mq,rocketmq,nsq and other mq
https://github.com/tal-tech/triton
consumer-messages kafka mq-consumer nsq rabbitmq rocketmq sarama triton
Last synced: 5 months ago
JSON representation
Triton is a high-performance mq consumer, support kafka,rabbit-mq,rocketmq,nsq and other mq
- Host: GitHub
- URL: https://github.com/tal-tech/triton
- Owner: tal-tech
- License: apache-2.0
- Created: 2020-07-27T03:48:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-23T06:42:31.000Z (about 4 years ago)
- Last Synced: 2024-06-20T05:14:56.272Z (10 months ago)
- Topics: consumer-messages, kafka, mq-consumer, nsq, rabbitmq, rocketmq, sarama, triton
- Language: Go
- Homepage: https://www.yuque.com/tal-tech/triton
- Size: 1.64 MB
- Stars: 19
- Watchers: 9
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
##
## Background
-----
Triton is a high performance, high stability plug-in type messaging middleware consumer written in pure Go language,which supports the mainstream message queues in the market, such as Kafka, RabbitMQ, RocketMQ, NSQ, etc.And it is easy to be extended to meet different business requirements in production environment.## Document
-----
[Document](https://tal-tech.github.io/triton-doc/)[中文文档](https://www.yuque.com/tal-tech/triton)
## Framework
------
The framework of triton is shown as below.
## Quickstart
### Consumer messages from kafka by triton.
-----#### 1. Start zookeeper
```shell
./bin/zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
```
#### 2. Start kafka
```shell
./bin/kafka-server-start /usr/local/etc/kafka/server.properties
```
#### 3. Create topic
```shell
./bin/kafka-topics --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test
```
#### 4. Modify config for kafka in triton```json
{
"enabled": {
"kafka": true
},
"kafka": [
{
"consumerGroup": "test0",
"consumerCount": 1,
"host": [
"127.0.0.1:9092"
],
"sasl": {
"enabled": false,
"user": "",
"password": ""
},
"topic": "test",
"failTopic": "xes_exercise_fail",
"tplMode": 1,
"tplName": "test"
}
]
}
```
* tpl config
```shell
[test]
-={{$ctx := .Ctx}}{{$arg := .Data}}{{printf "%v\n" $arg}}
-=@NONE
```#### 5. Run
```shell
tar -zxvf triton.tar.gz
cd triton/
make
./bin/triton -c ../conf/conf.ini
```## Contact us
(微信扫一扫,申请加入开发讨论微信群)