| commit | 3e2c2fa0f84a077de07d5363dbbc8daaa0e5c500 | [log] [tgz] | 
|---|---|---|
| author | DLive <dliveobj@outlook.com> | Wed Feb 19 19:14:15 2025 +0800 | 
| committer | GitHub <noreply@github.com> | Wed Feb 19 19:14:15 2025 +0800 | 
| tree | 9e494be8b9c92f6185a898c2e5969e04d6738633 | |
| parent | b8236d112acd39f411c4337d0e600282e10f0e8c [diff] | |
| parent | 03416b06b20ed93efc40b21bb9aa5ca275e1e6fa [diff] | 
Merge pull request #16 from songxiaosheng/feature/opt_dubbo_io_pool use strage fifo default and config pool size
Apache Dubbo Erlang Implementation.
The following features are supported.
Add dubblerl to rebar.config with your project
{deps, [ {dubboerl, {git, "https://github.com/apache/dubbo-erlang.git", {branch, "master"}}} ]}.
Use erlanalysis tool transfer java interface to erlang lib. And add the lib to you project app dir.
configure dubbo reference.
in sys.config add dubboerl config. For example:
{dubboerl,[ {application,<<"testdubboerl">>}, {protocol, {dubbo, [{port, 20882}]}}, {registry,zookeeper}, {zookeeper_list,[{"127.0.0.1",2181}]}, {serialization,hessian}, {consumer,[ {<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]}, {provider,[ {user_impl,userOperator,<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]} ]} ]}
Init dubboerl application context when your project start.
dubboerl:init().
Call the interface method.
Request = #userInfoRequest{requestId = 123, username = "testname"}, userOperator:queryUserInfo(Request,#{sync=> true}).
Reference the demo project dubboerl_demo
Reference Docs