{"id":37174106,"url":"https://github.com/funkygao/dbus","last_synced_at":"2026-01-14T20:20:39.524Z","repository":{"id":141462255,"uuid":"79976751","full_name":"funkygao/dbus","owner":"funkygao","description":"yet another databus that transfer/transform pipeline data between plugins","archived":false,"fork":false,"pushed_at":"2017-06-29T09:04:26.000Z","size":962,"stargazers_count":26,"open_issues_count":1,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-06-20T03:36:23.072Z","etag":null,"topics":["binlog","databus","dataflow","distributed","kafka","messaging","mysql","pipeline","replication"],"latest_commit_sha":null,"homepage":"","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/funkygao.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-25T02:39:27.000Z","updated_at":"2023-09-08T07:25:05.000Z","dependencies_parsed_at":"2023-09-05T00:30:43.286Z","dependency_job_id":null,"html_url":"https://github.com/funkygao/dbus","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/funkygao/dbus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkygao%2Fdbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkygao%2Fdbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkygao%2Fdbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkygao%2Fdbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funkygao","download_url":"https://codeload.github.com/funkygao/dbus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funkygao%2Fdbus/sbom","scorecard":{"id":413999,"data":{"date":"2025-08-11","repo":{"name":"github.com/funkygao/dbus","commit":"c6e60ff8b2f0e833733f66267a0531d8bba400f4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T23:21:57.393Z","repository_id":141462255,"created_at":"2025-08-18T23:21:57.393Z","updated_at":"2025-08-18T23:21:57.393Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["binlog","databus","dataflow","distributed","kafka","messaging","mysql","pipeline","replication"],"created_at":"2026-01-14T20:20:38.934Z","updated_at":"2026-01-14T20:20:39.513Z","avatar_url":"https://github.com/funkygao.png","language":"Go","readme":"# dbus\n    \n          $$\\       $$\\                                       \n          $$ |      $$ |                                      \n     $$$$$$$ |      $$$$$$$\\        $$\\   $$\\        $$$$$$$\\ \n    $$  __$$ |      $$  __$$\\       $$ |  $$ |      $$  _____|\n    $$ /  $$ |      $$ |  $$ |      $$ |  $$ |      \\$$$$$$\\  \n    $$ |  $$ |      $$ |  $$ |      $$ |  $$ |       \\____$$\\ \n    \\$$$$$$$ |      $$$$$$$  |      \\$$$$$$  |      $$$$$$$  |\n     \\_______|      \\_______/        \\______/       \\_______/ \n\n### What is dbus?\n\ndbus = distributed data bus\n\nIt is yet another lightweight versatile databus system that transfer/transform pipeline data between plugins.\n\ndbus works by building a DAG of structured data out of the different plugins: from data input, via filter(optional), to the output.\n\nSimilar projects\n\n- logstash\n- flume\n- nifi\n- camel\n- beats\n- kettle\n- zapier\n- google cloud dataflow\n- canal\n- storm\n- yahoo pipes (dead)\n\n### Status\n\ndbus is not yet a 1.0.\nWe're writing more tests, fixing bugs, working on TODOs.\n\n### Use Case\n\n- mysql binlog dispatcher\n- multiple DC kafka mirror\n\n### Features\n\ndbus supports powerful and scalable directed graphs of data routing, transformation and\nsystem mediation logic.\n\n- Designed for extension\n  - plugin architecture\n  - build your own plugins and more\n  - enables rapid development and effective testing\n- Data Provenance\n  - track dataflow from beginning to end\n  - visualized dataflow\n  - rich metrics feed into tsdb\n  - online manual mediation of the dataflow\n  - RESTful API\n  - monitoring with alert\n- Distributed Deployment\n  - shard/balance/auto rebalance\n  - linear scale\n- Delivery Guarantee\n  - loss tolerant\n  - high throuput vs low latency\n  - back pressure\n- Robustness\n  - race condition detected\n  - edge cases fully covered\n  - network jitter tested\n  - dependent components failure tested\n- Systemic Quality\n  - hot reload\n  - dryrun throughput 1.9M packets/s\n- Cluster Support\n  - modelling borrowed from helix+kafka controller\n  - currently only leader/standby with sharding, without replica\n  - easy to write a distributed plugin\n\n### Getting Started\n\n#### 1. Installing\n\nTo start using dbus, install Go and run `go get`:\n\n```sh\n$ go get -u github.com/funkygao/dbus\n```\n\n#### 2. Create config file\n\nPlease find sample config files in etc/ directory.\n\n#### 3. Run the server\n\n```sh\n$ $GOPATH/dbusd -conf $myfile\n```\n\n### Dependencies\n\ndbus uses zookeeper for sharding/balance/election.\n\n### Plugins\n\nMore plugins are listed under [dbus-plugin](https://github.com/dbus-plugin).\n\n#### Input\n\n- MysqlbinlogInput\n- KafkaInput\n- MockInput\n- StreamInput\n  \n#### Filter\n\n- MysqlbinlogFilter\n- MockFilter\n\n#### Output\n\n- KafkaOutput\n- ESOutput\n- MockOutput\n- StreamOutput\n\n### Configuration\n\n- KafkaOutput async mode with batch=1024/500ms, ack=WaitForAll\n- KafkaOutput retry=3, retry.backoff=350ms\n- Mysql binlog positioner commit every 1s, channal buffer 100\n\n### FAQ\n\n#### mysql binlog\n\n- is it totally data loss tolerant?\n  \n  if the binlog exceeds 1MB, it will be discarded(lost)\n\n#### why not canal?\n\n- no Delivery Guarantee\n- no Data Provenance\n- no integration with kafka\n- only hot standby deployment mode, we need sharding load\n- dbus is a dataflow engine, while canal only support mysql binlog pipeline\n\n#### compared with logstash\n\n- logstash has better ecosystem\n- dbus is cluster aware, provides delivery guarantee, data provenance\n\n#### can there be more than 1 leaders at the same time?\n\nYes.\n\nFor example, 3 participants with 1 being the leader. Then 1 is network partitioned and\nzk session expires, [2, 3] found this event and re-elect 2 as new leader.\nBefore 1 regain new zk session, [1] and [2] are leaders both.\nIf [1] and [2] both found resources changes, they will both rebalance the cluster.\n\ndbus uses epoch to solve this issue.\n\n#### what if\n\n- zookeeper crash\n\n  dbus continues to work, but Ack will not be able to persist\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkygao%2Fdbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunkygao%2Fdbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunkygao%2Fdbus/lists"}