{"id":41340462,"url":"https://github.com/xtrafrancyz/bwp","last_synced_at":"2026-01-23T06:48:47.947Z","repository":{"id":57548000,"uuid":"142938055","full_name":"xtrafrancyz/bwp","owner":"xtrafrancyz","description":"Fast Background Worker Pool","archived":false,"fork":false,"pushed_at":"2023-01-26T15:06:43.000Z","size":63,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T05:26:33.729Z","etag":null,"topics":["fasthttp","golang","pool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtrafrancyz.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":"2018-07-30T23:26:19.000Z","updated_at":"2024-03-25T10:53:20.000Z","dependencies_parsed_at":"2023-02-14T18:31:40.685Z","dependency_job_id":null,"html_url":"https://github.com/xtrafrancyz/bwp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xtrafrancyz/bwp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrafrancyz%2Fbwp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrafrancyz%2Fbwp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrafrancyz%2Fbwp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrafrancyz%2Fbwp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtrafrancyz","download_url":"https://codeload.github.com/xtrafrancyz/bwp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtrafrancyz%2Fbwp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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":["fasthttp","golang","pool"],"created_at":"2026-01-23T06:48:47.886Z","updated_at":"2026-01-23T06:48:47.936Z","avatar_url":"https://github.com/xtrafrancyz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *B*ackground *W*orker *P*ool\n\n**BWP** can handle different jobs and proceed them in the background. This will be useful when you need to execute long-time request from php or any other *fast* context without possibility of waiting for a response.\n\nFeatures:\n- Job `http` -- Execute http request.\n- Setup IP from which http requests will be sent.\n- Graceful restart from updated binary\n\n\n## Web API\n\n#### `POST /post/http` -- Submit new http request\nThe method accepts raw json content in the request body with the following format:\n```D\n{\n  \"url\": \"https://google.com\",\n  \"method\": \"GET\", // Optional, GET by default\n  \"body\": \"base64 encoded raw body\", // Optional\n  \"parameters\": { // Optional, on GET or HEAD this will be appended to the url, othervise parameters will be in the POST args\n    \"foo\": \"bar\"\n  },\n  \"headers\": { // Optional, any custom headers\n    \"X-Auth-Email\": \"example@example.com\",\n    \"Cookie\": \"foo=bar\"\n  }\n}\n```\nMultiple requests can also be sent at once using an array.\n\nThere is another way to send multiple requests:\n```D\n{\n  \"method\": \"POST\",\n  \"body\": \"eyJoZWxsbyI6IndvcmxkIn0=\",\n  \"headers\": {\"X-Sender\": \"me\"},\n  \"clones\": [{\n    \"url\": \"https://first-secret-domain.com\",\n    \"headers\": {\"X-Secret\": \"puppies\"}\n  }, {\n    \"url\": \"https://second-secret-domain.com\",\n    \"headers\": {\"X-Secret\": \"kittens\"}\n  }]\n}\n```\nAs a result of the above request, bwp will send 2 http requests to `https://first-secret-domain.com` and `https://second-secret-domain.com`\nwith the same body from the parent request.\n\n#### `GET /metrics` -- Prometheus metrics page\n\n\n## Configuration\n- `-listen` addresses for binding a Web API, for multiple, separate with a comma\n- `-pidfile` path to pid file\n- `-pool-size` number of workers (default: 50)\n- `-pool-queue-size` max number of jobs in queue (default: 10000)\n- `-ip-routes` ip's from which http request will be sent (example: `172.16.0.0/12 -\u003e 172.16.1.1, 0.0.0.0/0 -\u003e auto`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrafrancyz%2Fbwp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtrafrancyz%2Fbwp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtrafrancyz%2Fbwp/lists"}