{"id":25720093,"url":"https://github.com/gregwhitaker/netifi-r2dbc-example","last_synced_at":"2025-05-06T19:45:58.612Z","repository":{"id":82732580,"uuid":"223233311","full_name":"gregwhitaker/netifi-r2dbc-example","owner":"gregwhitaker","description":"Example of using R2DBC for Database Access with RSocket and Netifi","archived":false,"fork":false,"pushed_at":"2019-11-24T05:44:10.000Z","size":196,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T02:21:31.941Z","etag":null,"topics":["netifi","netifi-java","netifi-spring","r2dbc","r2dbc-postgresql","reactive-streams","rsocket","rsocket-java","rsocket-rpc","spring-boot"],"latest_commit_sha":null,"homepage":"https://www.netifi.com","language":"TSQL","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":"2019-11-21T17:59:05.000Z","updated_at":"2021-01-05T10:01:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"23559425-2757-4cb7-a359-5244998b4d9d","html_url":"https://github.com/gregwhitaker/netifi-r2dbc-example","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/gregwhitaker%2Fnetifi-r2dbc-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fnetifi-r2dbc-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fnetifi-r2dbc-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fnetifi-r2dbc-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/netifi-r2dbc-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252756852,"owners_count":21799564,"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":["netifi","netifi-java","netifi-spring","r2dbc","r2dbc-postgresql","reactive-streams","rsocket","rsocket-java","rsocket-rpc","spring-boot"],"created_at":"2025-02-25T17:36:32.471Z","updated_at":"2025-05-06T19:45:58.601Z","avatar_url":"https://github.com/gregwhitaker.png","language":"TSQL","readme":"# netifi-r2dbc-example\nAn example of accessing a database using [R2DBC](https://r2dbc.io) in a [Netifi](https://www.netifi.com) RSocket application.\n\n## What is Netifi?\n[Netifi](https://www.netifi.com) is a platform for building cloud-native applications with the power of [RSocket](http://rsocket.io).\n\nNetifi provides service discovery, load-balancing, streaming, and back-pressure without deploying a whole host of infrastructure \ncomponents and without polluting your code with circuit breakers and client-side load-balancing. \n\nCheck out [www.netifi.com](https://www.netifi.com) for more information.\n\n## Project Structure\nThis example contains the following projects / directories:\n\n- [client](client) - Client application that calls the `product-service` to retrieve product information.\n- [product-service-idl](product-service-idl) - Defines the API contract exposed by the `product-service`.\n- [product-service](product-service) - Service that retrieves product information from the database.\n- [docker](docker) - Docker Compose configuration for running the example. \n\n## Building the Example\nRun the following command to build the example:\n\n    ./gradlew clean buildImage\n\n## Running the Example\nFollow the steps below to run the example application:\n\n1. Run the following commands to start a Netifi Broker, the product service and its database:\n\n        cd docker\n        docker-compose up\n        \n2. In a new terminal, run the following command to start a client instance and retrieve product information for product `3`:\n\n        docker run -e SPRING_PROFILES_ACTIVE='localdocker' netifi-r2dbc-example/client 3\n        \n    If successful, you will see the following in the console:\n\n        productId: 3\n        shortName: \"bwauemjynyssyovuggqyc\"\n        longName: \"tsmgdvspbsitghphqacpzormjgeqrchepuusnuirbl\"\n        description: \"xvwgacykdzjahkatkhobqpspvdafsnuiuiffdxblkixbkuxpgeujjviyncjmoccdyxnqkwbhqjqmtbyglqzgxciukuyowryvyruxgxgmbpyafcscxulexkmdwilpwf\"\n        active: true\n        skus {\n          sku: \"737-674\"\n          size: \"S\"\n          colorway: \"Red\"\n          prices {\n            list: 14.67\n            msrp: 62.61\n            sale: 65.96\n          }\n        }\n        skus {\n          sku: \"302-014\"\n          active: true\n          size: \"L\"\n          colorway: \"Blue\"\n          prices {\n            list: 69.05\n            msrp: 78.24\n            sale: 34.65\n          }\n        }\n\n## Bugs and Feedback\nFor bugs, questions, and discussions please use the [Github Issues](https://github.com/gregwhitaker/netifi-r2dbc-example/issues).\n\n## License\nCopyright 2019 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.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fnetifi-r2dbc-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fnetifi-r2dbc-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fnetifi-r2dbc-example/lists"}