tree: 39a0c5b836e4e2505569c5b725317ee3b29a1c66 [path history] [tgz]
  1. config_example/
  2. docs/
  3. include/
  4. src/
  5. test/
  6. .gitignore
  7. .travis.yml
  8. Developer.md
  9. LICENSE
  10. README.md
  11. rebar.config
  12. rebar.lock
  13. rebar3
README.md

dubboerl

Apache Dubbo Erlang Implementation.

Build Status codecov

Feature list

The following features are supported.

  • Zookeeper registry center (√)
  • Tcp Transport
  • Serialize
    • Hessian serialize (√)
    • Json 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

Call the interface method.

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

Sample

Reference the demo project dubboerl_demo

More Documents

Reference Docs