{"id":25720161,"url":"https://github.com/gregwhitaker/dubbo-example","last_synced_at":"2025-07-21T16:06:20.251Z","repository":{"id":82732515,"uuid":"149831893","full_name":"gregwhitaker/dubbo-example","owner":"gregwhitaker","description":"An example of using Apache Dubbo for microservice RPC","archived":false,"fork":false,"pushed_at":"2018-09-22T02:06:48.000Z","size":109,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T18:58:30.482Z","etag":null,"topics":["apache-dubbo","dubbo","microservice","rpc","rpc-framework"],"latest_commit_sha":null,"homepage":"https://dubbo.incubator.apache.org","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregwhitaker.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":"2018-09-22T00:27:26.000Z","updated_at":"2025-05-26T13:39:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6f6e452-dac7-4938-8655-ee00ec962dbd","html_url":"https://github.com/gregwhitaker/dubbo-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/dubbo-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fdubbo-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fdubbo-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fdubbo-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fdubbo-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/dubbo-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fdubbo-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266332513,"owners_count":23912662,"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-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["apache-dubbo","dubbo","microservice","rpc","rpc-framework"],"created_at":"2025-02-25T17:36:43.130Z","updated_at":"2025-07-21T16:06:20.243Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dubbo-example\n[![Build Status](https://travis-ci.org/gregwhitaker/dubbo-example.svg?branch=master)](https://travis-ci.org/gregwhitaker/dubbo-example)\n\nAn example of using [Apache Dubbo](https://dubbo.incubator.apache.org/) for microservice RPC.\n\nThis example starts both a Dubbo service and a restful web service. The Dubbo service returns `Hello World!` and `Goodbye!` \nmessages. The Dubbo service is accessed by making an HTTP call to the restful web service, which in turn calls the Dubbo service\nand returns the message created by the Dubbo service.\n\n## Projects\nThe following projects make up this example:\n\n* [dubbo-example-api](dubbo-example-api) - Dubbo service API exposed by the provider\n* [dubbo-example-consumer](dubbo-example-consumer) - Rest service that calls API exposed by the provider\n* [dubbo-example-provider](dubbo-example-provider) - Dubbo service that implements the API\n\n## Building the Example\nRun the following Gradle command to build this example:\n\n    ./gradlew clean build\n    \n## Running the Example\nFollow the steps below to run the Dubbo example:\n\n### Starting the Provider\n\n1. In a new terminal, run the following command to start the provider:\n\n        ./gradlew :dubbo-example-provider:run\n        \n    If the provider starts successfully, you will see the following in the terminal:\n    \n        2018-09-21 18:45:32.298  INFO 78749 --- [           main] dubbo.example.provider.Application       : Started Application in 1.433 seconds (JVM running for 1.8)\n        2018-09-21 18:45:32.300  INFO 78749 --- [pool-1-thread-1] .d.c.e.AwaitingNonWebApplicationListener :  [Dubbo] Current Spring Boot Application is await...\n\n### Starting the Consumer\n\n1. In a new terminal, run the following command to start the consumer:\n\n        ./gradlew :dubbo-example-consumer:run\n        \n    If the consumer starts successfully, you will see the following in the terminal:\n    \n        2018-09-21 18:48:05.875  INFO 78789 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8081 (http) with context path ''\n        2018-09-21 18:48:05.889  INFO 78789 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''\n        2018-09-21 18:48:05.891  INFO 78789 --- [           main] dubbo.example.consumer.Application       : Started Application in 3.757 seconds (JVM running for 4.127)\n\n### Calling the Consumer\n\n1. In a new terminal, run the following command to invoke the `hello` endpoint:\n\n        curl -v http://localhost:8080/hello?name=World\n        \n    If the request was successful, you will receive a `Hello, World!` message:\n    \n        *   Trying ::1...\n        * TCP_NODELAY set\n        * Connected to localhost (::1) port 8080 (#0)\n        \u003e GET /hello?name=World HTTP/1.1\n        \u003e Host: localhost:8080\n        \u003e User-Agent: curl/7.54.0\n        \u003e Accept: */*\n        \u003e\n        \u003c HTTP/1.1 200\n        \u003c Content-Type: text/plain;charset=UTF-8\n        \u003c Content-Length: 13\n        \u003c Date: Sat, 22 Sep 2018 01:49:59 GMT\n        \u003c\n        * Connection #0 to host localhost left intact\n        Hello, World!\n\n2. Run the following command to invoke the `goodbye` endpoint:\n\n        curl -v http://localhost:8080/goodbye\n    \n    If the request was successful, you will receive a `Goodbye!` message:\n\n        *   Trying ::1...\n        * TCP_NODELAY set\n        * Connected to localhost (::1) port 8080 (#0)\n        \u003e GET /goodbye HTTP/1.1\n        \u003e Host: localhost:8080\n        \u003e User-Agent: curl/7.54.0\n        \u003e Accept: */*\n        \u003e\n        \u003c HTTP/1.1 200\n        \u003c Content-Type: text/plain;charset=UTF-8\n        \u003c Content-Length: 8\n        \u003c Date: Sat, 22 Sep 2018 01:51:42 GMT\n        \u003c\n        * Connection #0 to host localhost left intact\n        Goodbye!\n    \n\n## Bugs and Feedback\n\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/dubbo-example/issues).\n\n## License\nCopyright 2018 Greg Whitaker\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fdubbo-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fdubbo-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fdubbo-example/lists"}