{"id":16703311,"url":"https://github.com/krystianity/grpc-hybrid-container","last_synced_at":"2026-04-13T16:34:29.553Z","repository":{"id":85215147,"uuid":"81865573","full_name":"krystianity/grpc-hybrid-container","owner":"krystianity","description":"gRpc \u003c node.js + C++ \u003e Container = \u003c3","archived":false,"fork":false,"pushed_at":"2017-02-13T20:01:15.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T11:06:21.173Z","etag":null,"topics":["containers","cpp","docker","grpc","http","nodejs","webservice"],"latest_commit_sha":null,"homepage":"","language":"C++","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/krystianity.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,"publiccode":null,"codemeta":null}},"created_at":"2017-02-13T19:59:36.000Z","updated_at":"2017-03-19T21:42:07.000Z","dependencies_parsed_at":"2023-03-06T10:15:41.257Z","dependency_job_id":null,"html_url":"https://github.com/krystianity/grpc-hybrid-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krystianity/grpc-hybrid-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fgrpc-hybrid-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fgrpc-hybrid-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fgrpc-hybrid-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fgrpc-hybrid-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krystianity","download_url":"https://codeload.github.com/krystianity/grpc-hybrid-container/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krystianity%2Fgrpc-hybrid-container/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["containers","cpp","docker","grpc","http","nodejs","webservice"],"created_at":"2024-10-12T19:07:48.710Z","updated_at":"2026-04-13T16:34:29.512Z","avatar_url":"https://github.com/krystianity.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grpc-hybrid-container\n- nodejs webservice backed by a c++ dispatcher using grpc\n- both servers living in the same container\n- node.js app running as supervisor\n\n## installation\n\n### easy way (docker):\n- requires Docker\n- simply run `./build.sh 1` (will take some time!)\n- and run the docker-image via `./run.sh 1`\n- check `http://localhost:8080/hello?user=hans`\n\n### hard way (local-dev):\n- requires protoc \u003e= 3.0.0 \u0026 grpc \u003e= 1.0.0\n- you need to install grpc for C++ (check https://github.com/grpc/grpc/blob/master/INSTALL.md if you are NOT using LINUX)\n- `[sudo] apt-get install build-essential autoconf libtool`\n- `git clone -b v1.0.0 https://github.com/grpc/grpc`\n- `cd grpc`\n- `git submodule update --init`\n- `make`\n- `[sudo] make install`\n- and you will need protobuf\n- `cd third_party/protobuf`\n- `make`\n- `[sudo] make install`\n- with lprotobuf and lgrpc++ in place you can now compile `./cpp`\n- just run `npm run compile`\n- to run the server call `npm run server`\n- to install the client (node server) in `./node`\n- just run `npm install`\n- followed by `npm start`\n- to run the supervisor (starts both c++ server and nodejs app)\nsimply run `npm run supervisor`\n- check `http://localhost:8080/hello`\n\n## benchmarking\n- the app exposes 2 endpoints `/hello` and `/plain`\n- /hello calls the c++ server and lets it run fib(28)\n- /plain does not call the c++ server and runs fib(28) in nodejs\n- fib() is used to emulate CPU work\n- (make sure your local setup or docker container is running..)\n- install wrk via `[sudo] apt install wrk` if you havent already\n- run the benchmark via `./wrk.sh`\n- (obviously node.js is not made for CPU intense work, which is\nnot what I want to prove here)\n\n## other stuff\n- although this works quite well out of the box, depending on your\ninfrastructure it is probably a better way to scale the independent gRpc\nservices on their own\n- license is MIT (c) 2017 Christian Fröhlingsdorf\n- feel free to contact me with questions @krystianity","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrystianity%2Fgrpc-hybrid-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrystianity%2Fgrpc-hybrid-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrystianity%2Fgrpc-hybrid-container/lists"}