spring-projects / spring-projects/spring-boot
Support Netty's TCP server resources eager initialization
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 81.5k
- Forks
- 42.7k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Description
The following Stackoverflow question refered to the slowness of first requests made with a WebClient: https://stackoverflow.com/questions/53943499/workaround-for-the-slowness-of-the-webclient-first-request
I opened a an issue in reactor netty's repo which has been recently solved, adding a warmup functionality for TCP resources
I've upgraded the sample I provided to use Netty and Spring Boot 2.4.2. First request times are ~800ms and the subsequent ones ~60ms.
Would you consider adding Netty's warmup configuration as an option for Spring Boot/WebClient?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Spring Boot/WebClient integration and Reactor Netty's eager initialization documentation linked in the issue. Determine where a TCP resource warmup option belongs, then verify that enabling it removes the first-request initialization delay described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100