alibaba / dubbo
- четверг, 3 августа 2017 г. в 03:15:22
📢 Dubbo is a distributed, high performance RPC framework empowering applications with service import/export capabilities.
Dubbo is a distributed, high performance RPC framework which empowers applications with service import/export capabilities.
It contains three key parts, which include:
For more details, please refer to dubbo.io.
This guide gets you started with dubbo with a simple working example.
You’ll need a local copy of the example code to work through this quickstart. Download the demo code from our Github repository (the following command clones the entire repository, but you just need the dubbo-demo
for this quickstart and other tutorials):
$ cd ~
$ # Clone the repository to get the source code.
$ git clone https://github.com/alibaba/dubbo.git dubbo
$ git checkout master
$ # or: git checkout -b dubbo-2.4.x
$ cd ~/dubbo
$ mvn clean install -Dmaven.test.skip
$ # The demo code for this quickstart all stay in the `dubbo-demo` folder
$ cd ./dubbo-demo
$ ls
$ # Navigate to the provider part
$ cd ~/dubbo/demo-demo/dubbo-demo-provider/target
$ # unpack
$ tar zxvf dubbo-demo-provider-2.5.4-SNAPSHOT-assembly.tar.gz
$ cd dubbo-demo-provider-2.5.4-SNAPSHOT/bin
$ ls
$ # Start the provider
$ ./start.sh
$ # Navigate to the consumer part
$ cd ~/dubbo/demo-demo/dubbo-demo-consumer/target
$ # unpack
$ tar zxvf dubbo-demo-consumer-2.5.4-SNAPSHOT-assembly.tar.gz
$ cd dubbo-demo-consumer-2.5.4-SNAPSHOT/bin
$ ls
$ ./start.sh
For a more detailed tutorial of this demo, click here