{"id":25880231,"url":"https://github.com/danielmackay/dotnet-api-retry","last_synced_at":"2026-05-29T23:01:19.484Z","repository":{"id":59907511,"uuid":"540007735","full_name":"danielmackay/dotnet-api-retry","owner":"danielmackay","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-23T01:01:23.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T13:36:37.393Z","etag":null,"topics":["api-rest","dotnet-6","polly"],"latest_commit_sha":null,"homepage":"","language":"C#","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/danielmackay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-22T13:56:27.000Z","updated_at":"2022-09-22T13:58:01.000Z","dependencies_parsed_at":"2022-09-25T06:52:46.034Z","dependency_job_id":null,"html_url":"https://github.com/danielmackay/dotnet-api-retry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielmackay/dotnet-api-retry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-api-retry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-api-retry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-api-retry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-api-retry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmackay","download_url":"https://codeload.github.com/danielmackay/dotnet-api-retry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmackay%2Fdotnet-api-retry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33673628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-rest","dotnet-6","polly"],"created_at":"2025-03-02T13:31:14.239Z","updated_at":"2026-05-29T23:01:19.461Z","avatar_url":"https://github.com/danielmackay.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET API Retry\n\n[![.NET](https://github.com/danielmackay/dotnet-api-retry/actions/workflows/dotnet.yml/badge.svg)](https://github.com/danielmackay/dotnet-api-retry/actions/workflows/dotnet.yml)\n[![Licence](https://img.shields.io/badge/licence-MIT-brightgreen)](https://github.com/danielmackay/dotnet-api-retry/blob/main/licence.md)\n[![Gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg)](https://gitmoji.dev)\n\n\u003e Based off of Nick Chapsas's Youtube [video](https://youtu.be/nJH0PC2Pubs)\n\n## 💡 Overview\n\nSimple Web API that returns Star Wars People from an external API.  `IHttpClientFactory` and `Polly` have been used to implement a transient retry policy.\n\nThe policy works as follows:\n\n- Triggered via\n  - `HttpRequestException` being thrown\n  - HTTP 5XX being returned\n  - Http 408 (request timeout) being returned\n- Retries\n  - Retry 5 times\n  - Exponential backoff with jitter between retries\n\n## ⚡ Getting Started\n\n- `dotnet run` or `dotnet watch run`\n- Browser will launch and navigate to \u003chttps://localhost:7128/swagger/index.html\u003e\n\n## 📖 References\n\n- [Starwars API](https://swapi.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-api-retry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmackay%2Fdotnet-api-retry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmackay%2Fdotnet-api-retry/lists"}