{"id":37172569,"url":"https://github.com/redborder/k2http","last_synced_at":"2026-01-14T20:10:52.673Z","repository":{"id":42658518,"uuid":"60692448","full_name":"redBorder/k2http","owner":"redBorder","description":"Forwards messages from kafka to an HTTP endpoint.","archived":false,"fork":false,"pushed_at":"2025-04-14T14:21:03.000Z","size":97,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T15:35:07.747Z","etag":null,"topics":["autodelivery","http","kafka","redborder-ng"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redBorder.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,"zenodo":null}},"created_at":"2016-06-08T11:19:40.000Z","updated_at":"2025-04-14T14:18:09.000Z","dependencies_parsed_at":"2024-05-20T17:18:24.757Z","dependency_job_id":"de7c2f3a-e0dd-414f-a69e-bb6e40cc35d1","html_url":"https://github.com/redBorder/k2http","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/redBorder/k2http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fk2http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fk2http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fk2http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fk2http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redBorder","download_url":"https://codeload.github.com/redBorder/k2http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Fk2http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434413,"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":["autodelivery","http","kafka","redborder-ng"],"created_at":"2026-01-14T20:10:51.777Z","updated_at":"2026-01-14T20:10:52.664Z","avatar_url":"https://github.com/redBorder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/redBorder/k2http.svg?branch=master)](https://travis-ci.org/redBorder/k2http)\n[![Go Report Card](https://goreportcard.com/badge/github.com/redBorder/k2http)](https://goreportcard.com/report/github.com/redBorder/k2http)\n\n# K2HTTP2\n\nk2http is a application that forwards messages from kafka 0.9+ to an HTTP\nendpoint using [rbforwarder](https://github.com/redBorder/rbforwarder)\npackage.\n\n## Installing\n\nTo install this application ensure you have the `GOPATH` environment variable\nset and **[glide](https://glide.sh/)** installed.\n\n```bash\ncurl https://glide.sh/get | sh\n```\n\nAnd then:\n\n1. Clone this repo and cd to the project\n\n    ```bash\n    git clone https://github.com/redBorder/k2http.git \u0026\u0026 cd k2http\n    ```\n2. Install dependencies and compile\n\n    ```bash\n    make\n    ```\n3. Install on desired directory\n\n    ```bash\n    prefix=/opt/rb make install\n    ```\n\n## Usage\n\n```\nUsage of k2http:\n  --config string\n        Config file\n  --debug\n        Show debug info\n  --version\n        Print version info\n```\n\nTo run `k2http` just execute the following command:\n\n```bash\nk2http --config path/to/config/file\n```\n\n## Example config file\n\n```yaml\npipeline:\n  queue: 1000                     # Max internal queue size\n  backoff: 10                     # Time to wait between retries in seconds             \n  retries: 3                      # Number of retries on fail (-1 not limited)\n\nlimiter:\n  max_messages: 5000              # Max messages per second\n  # max_bytes: 5242880            # Max bytes per second\n\nkafka:\n  broker: \"localhost:9092\"        # Kafka brokers\n  consumergroup: \"k2http\"         # Consumer group ID   \n  topics:                         # Kafka topics to listen\n  - rb_nmsp\n  - rb_radius\n  - rb_flow\n  - rb_loc\n  - rb_monitor\n  - rb_state\n  - rb_social\n\nbatch:      \n  workers: 1                      # Number of workers\n  size: 1000                      # Max messages per batch\n  timeoutMillis: 100              # Max time to wait for send a batch\n  deflate: false                  # Use deflate to compress batches\n\nhttp:\n  workers: 1\n  url: \"http://localhost:8888\"    # Number of workers, one connection per worker\n  insecure: false                 # Skip SSSL verification\n```\n\n## Using with Docker\n\nYou can use the application with Docker. First you need to compile as usual and then generate the docker image:\n\n```bash\nmake\ndocker build -t k2http-docker .\n```\n\nYou can then use the app inside a docker container:\n\n```bash\ndocker run --rm k2http-docker --version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Fk2http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredborder%2Fk2http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Fk2http/lists"}