{"id":27127807,"url":"https://github.com/ananto30/vertx-async-gateway","last_synced_at":"2026-05-05T12:31:50.543Z","repository":{"id":108635812,"uuid":"331262030","full_name":"Ananto30/vertx-async-gateway","owner":"Ananto30","description":"Async to sync using Vert.x event bus","archived":false,"fork":false,"pushed_at":"2021-05-22T07:18:11.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T06:06:39.068Z","etag":null,"topics":["docker","eventbus","java","vertx","vertx-web"],"latest_commit_sha":null,"homepage":"","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/Ananto30.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}},"created_at":"2021-01-20T09:52:14.000Z","updated_at":"2021-05-22T07:18:13.000Z","dependencies_parsed_at":"2023-04-23T11:17:23.167Z","dependency_job_id":null,"html_url":"https://github.com/Ananto30/vertx-async-gateway","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/Ananto30%2Fvertx-async-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fvertx-async-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fvertx-async-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ananto30%2Fvertx-async-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ananto30","download_url":"https://codeload.github.com/Ananto30/vertx-async-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704511,"owners_count":20982293,"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":["docker","eventbus","java","vertx","vertx-web"],"created_at":"2025-04-07T17:57:59.091Z","updated_at":"2026-05-05T12:31:50.504Z","avatar_url":"https://github.com/Ananto30.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vertx Async to Sync\n\n[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Ananto30/vertx-async-gateway.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/Ananto30/vertx-async-gateway/context:java)\n\nExample of converting (legacy) async service to sync.\n\n## Run for dev\nDirectly run the DevApp. All the tweaks can be done with the code.\n\n## Run for production/testing\nCan be run using the fat jar.\n\nCreate jar:\n```\n./mvnw clean package\n```\nOr skip tests:\n```\n./mvnw clean package -Dmaven.test.skip=true\n```\n____________________\nRun with java:\n```\njava -jar target/starter-1.0.0-SNAPSHOT-fat.jar -cluster -cluster-public-port 17001 -cluster-public-host \u003cYOUR-MACHINE-IP\u003e -instance 4\n```\n**Important notes:**\nThe `-cluster` ensures verticles are running in cluster mode, so the event bus can communicate with all the verticles even if they are running in different machines.\n\n`-cluster-public-port` is the public exposing port where the other clusters can connect to.\n\n`-cluster-public-host` is **really important**. You should expose the IP of your machines so that other clusters can connect to it.\n\n`-instance` is how many instances you want to run. Can be your core numbers, but better play with it. Especially each instance has a single eventloop.\n\n## Test with Docker\nCreate jar:\n```\n./mvnw clean package\n```\nOr skip tests:\n```\n./mvnw clean package -Dmaven.test.skip=true\n```\n____________________\nDocker build:\n```\ndocker build -t vertx-async-gateway .\n```\n\nDocker run two instances exposed with different ports:\n```\ndocker run -p 8888:8888 -e cluster-public-host=\u003cYOUR-MACHINE-IP\u003e -d vertx-async-gateway\ndocker run -p 8889:8888 -e cluster-public-host=\u003cYOUR-MACHINE-IP\u003e -d vertx-async-gateway\n```\n\n**To test properly use something like nginx to load balance among 8888 and 8889**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananto30%2Fvertx-async-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananto30%2Fvertx-async-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananto30%2Fvertx-async-gateway/lists"}