{"id":16119825,"url":"https://github.com/piomin/sample-spring-webflux","last_synced_at":"2025-03-16T08:32:49.424Z","repository":{"id":52083133,"uuid":"218797737","full_name":"piomin/sample-spring-webflux","owner":"piomin","description":"testing webclient reactive communication with spring boot reactive application built on top of spring webflux","archived":false,"fork":false,"pushed_at":"2025-03-05T02:31:05.000Z","size":48,"stargazers_count":30,"open_issues_count":1,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T03:26:08.601Z","etag":null,"topics":["backpressure","netty","reactive-streams","reactor","spring-boot","spring-webflux","webclient"],"latest_commit_sha":null,"homepage":"https://piotrminkowski.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/piomin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-31T15:26:45.000Z","updated_at":"2025-03-05T02:31:08.000Z","dependencies_parsed_at":"2023-02-12T01:25:12.100Z","dependency_job_id":"bf6a5eb6-bc2a-4e25-a6d5-f7240845cefb","html_url":"https://github.com/piomin/sample-spring-webflux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-webflux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-webflux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-webflux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piomin%2Fsample-spring-webflux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piomin","download_url":"https://codeload.github.com/piomin/sample-spring-webflux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243807469,"owners_count":20350999,"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":["backpressure","netty","reactive-streams","reactor","spring-boot","spring-webflux","webclient"],"created_at":"2024-10-09T20:55:13.604Z","updated_at":"2025-03-16T08:32:48.936Z","avatar_url":"https://github.com/piomin.png","language":"Java","readme":"## Spring WebFlux and Reactive WebClient Demo Project [![Twitter](https://img.shields.io/twitter/follow/piotr_minkowski.svg?style=social\u0026logo=twitter\u0026label=Follow%20Me)](https://twitter.com/piotr_minkowski)\n\n[![CircleCI](https://circleci.com/gh/piomin/sample-spring-webflux.svg?style=svg)](https://circleci.com/gh/piomin/sample-spring-webflux)\n\n[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-webflux)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-webflux\u0026metric=bugs)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-microservices-new)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-webflux\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-microservices-new)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=piomin_sample-spring-webflux\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=piomin_sample-spring-microservices-new)\n\nIn this demo project you may examples of reactive endpoints built on top of Spring WebFlux, and using `WebClient` for calling other resources.\n1. Explaining different communication models in reactive application with Spring WebFlux. Differences between standard `application/json` content type and `application/stream+json`. Introduction to back pressure term. Detailed description can be found here: [Using Reactive WebClient with Spring WebFlux](https://piotrminkowski.com/2019/11/04/using-reactive-webclient-with-spring-webflux/)\n2. A detailed analyse of threading and concurrency model used by Spring WebFlux and Reactor Netty. It also threats about `WebClient` and Spring Boot Actuator pooling. A detailed description can be found here: [A Deep Dive Into Spring WebFlux Threading Model](https://piotrminkowski.com/2020/03/30/a-deep-dive-into-spring-webflux-threading-model/)\n\n### Guide\n\nRequired:\n1. JDK 11+\n2. Maven\n\nHow to run ?\n`mvn clean install`\n\nThere are two JUnit tests: `PerformanceSpringWebFluxTest` and `SampleSpringWebFluxTest`.\n\nTo provide some standalone tests just run the main class `SampleSpringWebFluxApp`.\nFor generating some traffic to the application run application `SendingApp`. It runs `MockWebServer` on localhost:8082 in order to mock downstream service called by `WebClient` and than calls endpoints exposed by the application usung `TestRestTemplate`.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiomin%2Fsample-spring-webflux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiomin%2Fsample-spring-webflux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiomin%2Fsample-spring-webflux/lists"}