CntChen / cntchen.github.io

CntChen Blog
https://github.com/CntChen/cntchen.github.io/issues
732 stars 64 forks source link

前端工程师的 dubbo 入门路径 #10

Open CntChen opened 6 years ago

CntChen commented 6 years ago

tags: Spring Tomcat Maven Zookeeper Dubbo

背景

公司准备上 Node, 初步设想是 Node 使用 RPC 直接调用后台的微服务. 首先需要研究一下可行性. 从我的角度来说, 要做好基础知识的学习, 不能浅尝辄止.

需要学习的概念

下面对概念的描述并不一定准确,是我到目前为止的理解。

maven

学习记录和代码:

https://github.com/CntChen/maven-test

spring

zookeeper

安装

$ docker pull zookeeper:3.4.10

启动

停止和删除 containner

$ docker stop `docker ps -f ancestor=zookeeper:3.4.10 -a -q`
$ docker rm `docker ps -f ancestor=zookeeper:3.4.10 -a -q`

测试

tomcat

基础知识

安装

$ docker pull tomcat:9.0

启动

使用 docker-compose

项目部署

学习记录和代码: https://github.com/CntChen/spring-rest-service-test/tree/war-tomcat

dubbo

文档

http://dubbo.io/

安装

使用dubbo 官方 demo, 并添加 zookeeper 注册中心.

学习记录和代码:https://github.com/CntChen/dubbo-demo-test

启动

EOF