{"id":19656874,"url":"https://github.com/daggerok/avoiding-reactor-meltdown","last_synced_at":"2026-03-06T05:43:16.455Z","repository":{"id":151041430,"uuid":"237957445","full_name":"daggerok/avoiding-reactor-meltdown","owner":"daggerok","description":"Handling blocking calls in Reactor applications (correctly)","archived":false,"fork":false,"pushed_at":"2020-02-03T15:28:10.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T10:23:18.130Z","etag":null,"topics":["block-hound","blockhound","blocking","reactor","reactor-blockhound","reactor-debug-agent","reactor-tools","spring-webflux","webflux"],"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/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-02-03T12:14:54.000Z","updated_at":"2022-04-05T10:06:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"f26c9aa2-53aa-4097-bbe8-f07632910991","html_url":"https://github.com/daggerok/avoiding-reactor-meltdown","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/daggerok%2Favoiding-reactor-meltdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Favoiding-reactor-meltdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Favoiding-reactor-meltdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Favoiding-reactor-meltdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/avoiding-reactor-meltdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251366141,"owners_count":21578080,"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":["block-hound","blockhound","blocking","reactor","reactor-blockhound","reactor-debug-agent","reactor-tools","spring-webflux","webflux"],"created_at":"2024-11-11T15:29:10.277Z","updated_at":"2026-03-06T05:43:15.338Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# how to block in reactor [![Build Status](https://travis-ci.org/daggerok/avoiding-reactor-meltdown.svg?branch=master)](https://travis-ci.org/daggerok/avoiding-reactor-meltdown)\n...when it's needed\n\n## problem\n\nIn short: we should never block! But sometimes we just cannot avoid blocking calls...\nFor instance, when we have to use library which hasn't reactive non-blocking support,\nand maybe even not planed to be reactive, legacy libraries, JDBC, ThreadLocal, etc...\n\n## identify problem\n\n* use [reactor-tools](name-service/src/main/java/daggerok/Main.java#L39)\n* use [BlockHound](name-service/src/main/java/daggerok/Main.java#L38)\n\n## solve problem\n\n* bad: create separate microservice, which will call blocking one\n* good: perform all blocking calls [in a separate thread](name-service/src/main/java/daggerok/Main.java#L120) provided by special defined scheduled\n\n## run and test\n\n1. start apps:\n   ```bash\n   jdk11 ; ./mvnw -f mongo spring-boot:run\n   jdk11 ; ./mvnw -f name-service spring-boot:run\n   ```\n1. execute all REST API calls from [api.http](api.http) file\n\n## resources\n* [YouTube: Avoiding Reactor Meltdown](https://www.youtube.com/watch?v=xCu73WVg8Ps)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Favoiding-reactor-meltdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Favoiding-reactor-meltdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Favoiding-reactor-meltdown/lists"}