{"id":22169747,"url":"https://github.com/thegenius/hera","last_synced_at":"2025-03-24T17:23:43.875Z","repository":{"id":57726340,"uuid":"99567931","full_name":"thegenius/hera","owner":"thegenius","description":"A brave new RPC framework","archived":false,"fork":false,"pushed_at":"2017-09-14T07:24:43.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T22:18:15.620Z","etag":null,"topics":["rpc"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thegenius.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}},"created_at":"2017-08-07T10:48:58.000Z","updated_at":"2017-09-19T06:11:59.000Z","dependencies_parsed_at":"2022-09-26T21:50:45.008Z","dependency_job_id":null,"html_url":"https://github.com/thegenius/hera","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/thegenius%2Fhera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegenius%2Fhera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegenius%2Fhera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegenius%2Fhera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thegenius","download_url":"https://codeload.github.com/thegenius/hera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245316136,"owners_count":20595389,"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":["rpc"],"created_at":"2024-12-02T06:34:45.672Z","updated_at":"2025-03-24T17:23:43.853Z","avatar_url":"https://github.com/thegenius.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hera\n[![travis-ci](https://www.travis-ci.org/thegenius/hera.svg?branch=master)](https://travis-ci.org/thegenius/hera)\n[![codecov](https://codecov.io/gh/thegenius/hera/branch/master/graph/badge.svg)](https://codecov.io/gh/thegenius/hera)\n[![maven-central](https://img.shields.io/badge/maven-0.0.2-green.svg)](http://search.maven.org/#search%7Cga%7C1%7Chera)\n[![apache-license](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)  \n\n  \nThis is a brave new java rpc framework.\n\n## Support:  \n\t[1] asm generated proxy, faster than jdk dynamic proxy.  \n\t[2] function overload without annotations and configures.    \n\t[3] future based async call.  \n\t[3] server and client in the same node with same thread pool.    \n    [4] clean exception message, when you have trouble then you will have useful tip.\t\n\n## Hello World\n```java\npackage com.lvonce;\n\nimport com.lvonce.hera.logger.RpcLogger;\nimport com.lvonce.hera.HeraNode;\n\npublic class App {\n\n\tpublic static interface Service {\n\t\tpublic String hello(String name);\n\t}\n\n\tpublic static class Provider implements Service {\n\t\tpublic String hello(String name) {\n\t\t\treturn \"Hello \" + name;\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tif (args[0].equals(\"a\")) {\n\t\t\tHeraNode.exports(new Provider(), Service.class);\n\t\t\tHeraNode.start(3721);\n\t\t}\n\n\t\tif (args[0].equals(\"b\")) {\n\t\t\tService service = HeraNode.imports(Service.class, \"127.0.0.1\", 3721);\n\t\t\tString result = service.hello(\"World!\");\n\t\t\tRpcLogger.info(App.class, result);\n\t\t}\n\t}\n}\n```\nYou can run the example within the example directory by following command:\n```\n    cd example/helloworld\n    mvn clean package\n    java -jar target/example-1.0-SNAPSHOT-jar-with-dependencies.jar a \u0026\n    java -jar target/example-1.0-SNAPSHOT-jar-with-dependencies.jar b\n```\n\n## QUICK START\nNow you can use maven to integrate hera with your own project:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.lvonce\u003c/groupId\u003e\n    \u003cartifactId\u003ehera\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## DESIGN\n\n![design](https://raw.githubusercontent.com/thegenius/hera/master/doc/hera_design.png)\n\n\n## ROADMAP\nThis framework will follow the following versiont strategy:  \nmajor.minor.fixOrUpdate  \nminor with odd number: new futures and new interface  \nminor with even number: performance and stablity  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegenius%2Fhera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthegenius%2Fhera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegenius%2Fhera/lists"}