微服务业务分析

Thrift安装和验证
- 安装Thrift
-
验证安装:
验证安装
-
vi demo.thrift
定义接口
生成Java文件
生成Python文件
Python开发信息服务





- 写实现类为handler;
- 处理器:用接口定义processos;
- transport:开启socket
- tfactory:传输方式,帧传输
- pfactory:二进制传输协议
- server.serve():开启服务
- 运行main函数,就启动了服务
写用户服务调用信息服务,此时用户服务为Java服务
新建Java服务模块
生成Java thrift文件,并且输出到上面生成的Java模块里
Java服务导入thrift模块
开发用户模块(Java代码)



-
-v xxx:xxxx/conf.d #挂载配置文件目录
查看配置文件目录
mysql配置文件
使用脚本启动容器
写userService的mapper文件
实现类
构建启动类
开发用户EdgeService


网友评论