{"id":16920557,"url":"https://github.com/arriqaaq/boomerang","last_synced_at":"2025-03-20T23:15:52.544Z","repository":{"id":57566434,"uuid":"128730593","full_name":"arriqaaq/boomerang","owner":"arriqaaq","description":"Go-Http client with backoff/circuit breaker implemented","archived":false,"fork":false,"pushed_at":"2021-06-14T08:22:18.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T19:42:25.323Z","etag":null,"topics":["circuit-breaker","exponential-backoff","golang","http-client","hystrix","jitter"],"latest_commit_sha":null,"homepage":null,"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/arriqaaq.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-04-09T07:16:46.000Z","updated_at":"2023-04-24T06:43:56.000Z","dependencies_parsed_at":"2022-08-27T16:52:25.791Z","dependency_job_id":null,"html_url":"https://github.com/arriqaaq/boomerang","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arriqaaq%2Fboomerang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arriqaaq%2Fboomerang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arriqaaq%2Fboomerang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arriqaaq%2Fboomerang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arriqaaq","download_url":"https://codeload.github.com/arriqaaq/boomerang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244706542,"owners_count":20496571,"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":["circuit-breaker","exponential-backoff","golang","http-client","hystrix","jitter"],"created_at":"2024-10-13T19:48:43.758Z","updated_at":"2025-03-20T23:15:52.523Z","avatar_url":"https://github.com/arriqaaq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"boomerang\n================\n\nThis project is inspired by\n\n\t1) Go's default http package\n\t2) Jitter/Backoff ----\u003e https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/\n\t3) Hashicorp library https://github.com/hashicorp/go-retryablehttp\n\nTODO\n================\n\n\t1) Test cases for hystrix, basic testing for hystrix client\n\t2) More test cases for http client\n\t3) Add Prometheus metric support on the client\n\n\nEXAMPLE USAGE\n================\n\n\t1) HTTP Client\n\t\tclient := NewHttpClient(10*time.Millisecond, DefaultTransport())\n\t\tbackoffStratergy := NewExponentialBackoff(2*time.Millisecond, 10*time.Millisecond, 2.0)\n\t\tclient.SetRetries(3)\n\t\tclient.SetBackoff(backoffStratergy)\n\n\n\t\tresp, err := client.Get(\"/foo/bar\")\n\t\tif err!=nil{\n\t\t\tresp.Body.Close()\n\t\t}\n\n\t2) Hystrix Client (TODO)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farriqaaq%2Fboomerang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farriqaaq%2Fboomerang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farriqaaq%2Fboomerang/lists"}