tree: 1ce4b5337f0c0eab19deb47724f045051175901f [path history] [tgz]
  1. config_example/
  2. include/
  3. src/
  4. test/
  5. .gitignore
  6. .travis.yml
  7. Developer.md
  8. LICENSE
  9. README.md
  10. rebar.config
README.md

dubboerl

Apache Dubbo Erlang Implementation.

Build Status

Feature list

The following features are supported.

  • Zookeeper registry center (√)
  • Tcp Transport and Hession serialize (√)
  • Erlang project as a consumer (√)
  • Erlang project as a provider (√)
  • Sync invoker (√)
  • Async invoker (√)
  • Random load balance (√)
  • Network rate limit (√)
  • Connection pools (√)

Start

Import

Add dubblerl to rebar.config with your project

{deps, [
    {dubboerl, {git, "http://github.com/dubboerl/dubboerl.git", {branch, "master"}}}
]}.

Step1

Use erlanalysis tool transfer java interface to erlang lib. And add the lib to you project app dir.

Step2

configure dubbo reference.

in sys.config add dubboerl config. For example:

{dubboerl,[
	{zookeeper_list,[{"127.0.0.1",2181}]},
	{application,<<"testdubboerl">>},
	{consumer,[
		{<<"me.dlive.dubboservice.service.IProcessData">>,[]}
	]},
	{provider,[
		{scherdule_impl,scherdule_behaviour,<<"me.dlive.dubboservice.service.Scherdule">>,[]}
	]}
	
]}

Step4

Init dubboerl application context when your project start.

dubboerl:init().

Step5

Do your interface method invoker.

RequestPara = #testReq{name = <<"nameinfo">>,nick = <<"nickinfo">>,age = 10},
iProcessData:queryinfo(Info,[]).

Sample

Reference the demo project dubboerl_demo