{"id":21018695,"url":"https://github.com/tal-tech/triton","last_synced_at":"2025-10-12T04:16:13.123Z","repository":{"id":64303549,"uuid":"282788087","full_name":"tal-tech/triton","owner":"tal-tech","description":"Triton is a high-performance mq consumer, support kafka,rabbit-mq,rocketmq,nsq and other mq","archived":false,"fork":false,"pushed_at":"2021-02-23T06:42:31.000Z","size":1723,"stargazers_count":19,"open_issues_count":0,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T05:12:07.011Z","etag":null,"topics":["consumer-messages","kafka","mq-consumer","nsq","rabbitmq","rocketmq","sarama","triton"],"latest_commit_sha":null,"homepage":"https://www.yuque.com/tal-tech/triton","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tal-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-27T03:48:22.000Z","updated_at":"2021-09-15T22:17:59.000Z","dependencies_parsed_at":"2023-01-15T10:01:04.235Z","dependency_job_id":null,"html_url":"https://github.com/tal-tech/triton","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ftriton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ftriton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ftriton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2Ftriton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tal-tech","download_url":"https://codeload.github.com/tal-tech/triton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288227,"owners_count":22045862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consumer-messages","kafka","mq-consumer","nsq","rabbitmq","rocketmq","sarama","triton"],"created_at":"2024-11-19T10:27:08.658Z","updated_at":"2025-10-12T04:16:08.103Z","avatar_url":"https://github.com/tal-tech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## \u003cimg src=\"https://github.com/hhtlxhhxy/triton/blob/master/img/triton.jpg\" alt=\"image-20200803155136931\" style=\"zoom:50%;\" /\u003e\n\n## Background\n-----\nTriton 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.\n\n## Document\n-----\n[Document](https://tal-tech.github.io/triton-doc/)\n\n[中文文档](https://www.yuque.com/tal-tech/triton)\n\n## Framework\n------\nThe framework of triton is shown as below.\n\n\u003cimg src=\"https://github.com/hhtlxhhxy/triton/blob/master/img/frame.jpg\" alt=\"image-20200803155136931\" style=\"zoom:50%;\" /\u003e\n\n## Quickstart\n\n### Consumer messages from kafka by triton.\n-----\n\n#### 1. Start zookeeper\n```shell\n./bin/zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties\n```\n#### 2. Start kafka\n```shell\n./bin/kafka-server-start /usr/local/etc/kafka/server.properties\n```\n#### 3. Create topic\n```shell\n./bin/kafka-topics  --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test\n```\n#### 4. Modify config for kafka in triton\n\n```json\n{\n  \"enabled\": {\n    \"kafka\": true\n  },\n  \"kafka\": [\n    {\n      \"consumerGroup\": \"test0\",\n      \"consumerCount\": 1,\n      \"host\": [\n        \"127.0.0.1:9092\"\n      ],\n      \"sasl\": {\n        \"enabled\": false,\n        \"user\": \"\",\n        \"password\": \"\"\n      },\n      \"topic\": \"test\",\n      \"failTopic\": \"xes_exercise_fail\",\n      \"tplMode\": 1,\n      \"tplName\": \"test\"\n    }\n  ]\n}\n```\n* tpl config\n```shell\n[test]\n-={{$ctx := .Ctx}}{{$arg := .Data}}{{printf \"%v\\n\" $arg}}\n-=@NONE\n```\n\n#### 5. Run\n```shell\ntar -zxvf triton.tar.gz\ncd triton/\nmake\n./bin/triton -c ../conf/conf.ini\n```\n\n## Contact us\n\u003cp align=\"left\"\u003e\n \u003ca href=\"https://tal-tech.github.io/triton-doc/\" target=\"_blank\"\u003e\n     \u003cimg src=\"https://cdn.nlark.com/yuque/0/2020/png/2138318/1600340932767-f20251e4-688a-4077-9721-9296f5319e56.png\"  alt=\"Contact Us\" align=center /\u003e\n \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"left\"\u003e\n（微信扫一扫，申请加入开发讨论微信群）\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Ftriton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftal-tech%2Ftriton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Ftriton/lists"}