{"id":21631326,"url":"https://github.com/bytelegend/forestframework","last_synced_at":"2026-01-24T17:34:22.911Z","repository":{"id":41204560,"uuid":"387152526","full_name":"ByteLegend/forestframework","owner":"ByteLegend","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-29T23:16:55.000Z","size":1684,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T06:51:14.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ByteLegend.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}},"created_at":"2021-07-18T10:51:27.000Z","updated_at":"2024-09-24T09:59:49.000Z","dependencies_parsed_at":"2022-09-13T10:01:14.234Z","dependency_job_id":null,"html_url":"https://github.com/ByteLegend/forestframework","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/ByteLegend%2Fforestframework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteLegend%2Fforestframework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteLegend%2Fforestframework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteLegend%2Fforestframework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByteLegend","download_url":"https://codeload.github.com/ByteLegend/forestframework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252819586,"owners_count":21809043,"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":[],"created_at":"2024-11-25T02:13:56.684Z","updated_at":"2026-01-24T17:34:22.900Z","avatar_url":"https://github.com/ByteLegend.png","language":"Java","readme":"# Forest Framework - a high-concurrency JVM web framework \n\n## TLDR;\n\n`Forest Framework` = `Vert.x` + `Guice`, with special support for Kotlin coroutines - \"Code like sync, works like async\", just like Loom.\n\nHeads up: if you're not going to build an application for millions of concurrent users, go to [Spring Boot](https://spring.io/projects/spring-boot).\n\n## Forest Framework is designed for high-concurrency \n\nWithout [Project Loom](https://openjdk.java.net/projects/loom/), we have only two options for JVM-based application:\n\n- Synchronized application with heavy threads: easy to write, bad for performance.\n- Async application with callback hell: much better performance, disastrous readability and maintainability.\n\nForest Framework support Kotlin coroutines first workflow: you write suspend synchronized-like methods, then everything works in async way.\n\nThis is a Forest application example acting as a reverse proxy which redirects `github.com` to `localhost:8080`. \nAs you can see, we are writing sync code that works in non-blocking way - the code runs in `Vert.x` event loop thread and doesn't block at all.\nAnd we avoid the usual callback hell in `Vert.x`!\n\n```\n@ForestApplication\nclass App @Inject constructor(vertx: Vertx) {\n\n    private val webClient = WebClient.create(vertx)\n    \n    @GetHtml(\"/\")\n    suspend fun index(): String {\n        return webClient.getAbs(\"https://github.com\").send().await().bodyAsString()\n    }\n}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytelegend%2Fforestframework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytelegend%2Fforestframework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytelegend%2Fforestframework/lists"}