{"id":25720025,"url":"https://github.com/gregwhitaker/rsocket-metadatapush-example","last_synced_at":"2025-11-19T05:04:31.927Z","repository":{"id":82732651,"uuid":"234470714","full_name":"gregwhitaker/rsocket-metadatapush-example","owner":"gregwhitaker","description":"Example of using the metadata push interaction model with RSocket","archived":false,"fork":false,"pushed_at":"2020-12-04T22:29:09.000Z","size":78,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T17:41:25.855Z","etag":null,"topics":["reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","rsocket-metadata"],"latest_commit_sha":null,"homepage":"http://rsocket.io","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/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":"2020-01-17T04:30:51.000Z","updated_at":"2020-12-04T22:29:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"facf5058-c34a-47cd-a4f3-51d73006dc70","html_url":"https://github.com/gregwhitaker/rsocket-metadatapush-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/rsocket-metadatapush-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-metadatapush-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-metadatapush-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-metadatapush-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-metadatapush-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/rsocket-metadatapush-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Frsocket-metadatapush-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285187925,"owners_count":27129352,"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-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["reactive","reactive-programming","reactive-streams","rsocket","rsocket-java","rsocket-metadata"],"created_at":"2025-02-25T17:36:24.197Z","updated_at":"2025-11-19T05:04:31.922Z","avatar_url":"https://github.com/gregwhitaker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsocket-metadatapush-example\n![Build](https://github.com/gregwhitaker/rsocket-metadatapush-example/workflows/Build/badge.svg)\n\nAn example of sending metadata at runtime with the metadata-push interaction model in [RSocket](http://rsocket.io).\n\nIn this example the `hello-client` will first request a hello message for Bob, in english, from the `hello-service`. Once the \nhello message is received by the client it will then send a metadata-push message to change the language to french. Finally, after\nthe language has been changed, the client will send another request for a hello message for Bob.\n\n## Building the Example\nRun the following command to build the example:\n\n    ./gradlew clean build\n\n## Running the Example\nFollow the steps below to run the example:\n\n1. Run the following command to start the `hello-service`:\n\n        ./gradlew :hello-service:run\n\n    If successful, you will see a message in the terminal indicating the service has started:\n    \n        [main] INFO example.hello.service.HelloService - RSocket server started on port: 7000\n       \n2. In a new terminal, run the following command to request hello messages using the `hello-client`:\n\n        ./gradlew :hello-client:run --args=Bob\n        \n    This command is going to request a hello message for Bob in english, push new metadata setting the language to french, and then\n    request another hello message for Bob.\n    \n    If successful, you will see the following in the client's terminal:\n    \n        [main] INFO example.hello.client.HelloClient - Sending request for 'Bob'\n        [main] INFO example.hello.client.HelloClient - Response: Hello, Bob!\n        [main] INFO example.hello.client.HelloClient - Sending metadata push to change locale to 'fr_fr'\n        [main] INFO example.hello.client.HelloClient - Sending request for 'Bob'\n        [main] INFO example.hello.client.HelloClient - Response: Bonjour, Bob!\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/rsocket-metadatapush-example/issues).\n\n## License\nMIT License\n\nCopyright (c) 2020 Greg Whitaker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Frsocket-metadatapush-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Frsocket-metadatapush-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Frsocket-metadatapush-example/lists"}