{"id":20027222,"url":"https://github.com/crisandolindesmanrumahorbo/reactive-spring-webclient","last_synced_at":"2026-05-06T09:39:58.907Z","repository":{"id":119049687,"uuid":"502567321","full_name":"crisandolindesmanrumahorbo/reactive-spring-webclient","owner":"crisandolindesmanrumahorbo","description":"Spring boot with WebClient and WebTestClient","archived":false,"fork":false,"pushed_at":"2022-07-25T08:19:10.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T04:41:58.530Z","etag":null,"topics":["java","spring","spring-boot","unit-testing","webclient","webflux-client","webtestclient"],"latest_commit_sha":null,"homepage":"","language":"Java","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/crisandolindesmanrumahorbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-12T09:06:21.000Z","updated_at":"2022-06-16T04:10:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c3f6ffd-ad62-4237-a5e3-3491dccf8f9f","html_url":"https://github.com/crisandolindesmanrumahorbo/reactive-spring-webclient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crisandolindesmanrumahorbo/reactive-spring-webclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisandolindesmanrumahorbo%2Freactive-spring-webclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisandolindesmanrumahorbo%2Freactive-spring-webclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisandolindesmanrumahorbo%2Freactive-spring-webclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisandolindesmanrumahorbo%2Freactive-spring-webclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crisandolindesmanrumahorbo","download_url":"https://codeload.github.com/crisandolindesmanrumahorbo/reactive-spring-webclient/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crisandolindesmanrumahorbo%2Freactive-spring-webclient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"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":["java","spring","spring-boot","unit-testing","webclient","webflux-client","webtestclient"],"created_at":"2024-11-13T09:09:29.400Z","updated_at":"2025-11-26T09:04:47.267Z","avatar_url":"https://github.com/crisandolindesmanrumahorbo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Reactive WebClient on Spring Boot\n\nhttps://www.baeldung.com/spring-5-webclient\n\nGeneric Java Reference\nhttps://www.geeksforgeeks.org/generics-in-java/\n\n\nUnit Testing Reference\nhttps://howtodoinjava.com/spring-webflux/webfluxtest-with-webtestclient/\n\nComponent scan reference\nhttps://www.baeldung.com/spring-nosuchbeandefinitionexception\n\nFactory pattern\nhttps://www.geeksforgeeks.org/factory-method-design-pattern-in-java/\n\nIf we run use Tomcat Servlet Container, the service implement Tomcat NIO Connector which support Non Blocking / Async.\nhttps://dzone.com/articles/understanding-tomcat-nio\n\nBy default, webflux run with Netty Servlet Container, Netty implement Java NIO too.\nhttps://www.baeldung.com/spring-webflux-concurrency\n\nJava NIO: https://jenkov.com/tutorials/java-nio/index.html \n\n#### Netty\n\n##### How to run using Netty Server?\nJust exclude the default tomcat server\n```\n    \u003cdependency\u003e\n        \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n        \u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n        \u003cexclusions\u003e\n            \u003cexclusion\u003e\n                \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n                \u003cartifactId\u003espring-boot-starter-tomcat\u003c/artifactId\u003e\n            \u003c/exclusion\u003e\n        \u003c/exclusions\u003e\n    \u003c/dependency\u003e\n```\n\nIf we run use Netty Server, and trying to hit endpoint sync (which use block()), will display this error. \n```\n    java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-nio-3\n```\n#### Netty only support nonblock, if want to run nonblock and block api use tomcat or undertow.\n\n#### JMeter\nHow to Run?\n```\n    cd apache-jmeter-5.4.3/bin\n    sh jmeter.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisandolindesmanrumahorbo%2Freactive-spring-webclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrisandolindesmanrumahorbo%2Freactive-spring-webclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisandolindesmanrumahorbo%2Freactive-spring-webclient/lists"}