Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitalijr2/spring-boot-never-retry
https://github.com/vitalijr2/spring-boot-never-retry
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vitalijr2/spring-boot-never-retry
- Owner: vitalijr2
- License: unlicense
- Created: 2023-06-23T17:21:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-23T20:07:47.000Z (over 1 year ago)
- Last Synced: 2023-08-16T17:50:38.192Z (over 1 year ago)
- Language: Java
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot and NEVER_RETRY
This project references to the issue [Feign retries event if Retryer.NEVER_RETRY is configured in the AsyncFeign.builder()](https://github.com/OpenFeign/feign/issues/1966)
## How to run
First build it. It runs two tests **503 Service Unavailable** and **429 Too Many Requests** with the retryer `NEVER_RETRY`.
```bash
./mvnw
```
You can check in log that the application does not retry requests.You can set the retryer `Default` with option `maxAttempts` equals **2**.
```bash
NEVER_RETRY=false ./mvnw
```
For tests it uses [MockServer](https://mock-server.com), see the configuration [github-initializer.json](src/test/resources/github-initializer.json).## Just for fun
This application in regular life shows first contributor for any GitHub repository:
```bash
./mvnw spring-boot:run -Dspring-boot.run.arguments=radio-rogal\ feign
```
or just```bash
./test.sh radio-rogal feign
```