GithubHelp home page GithubHelp logo

jacobqin / spring-dubbo-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from windwant/spring-dubbo-service

1.0 1.0 0.0 53.65 MB

spring dubbo项目:dubbo rpc;druid数据源连接池;mybatis配置集成,多数据源;jmx监控MBean;定时任务配置;aop配置;ftp服务;测试;Metrics监控;参数验证;跨域处理;shiro权限控制;consul服务注册,发现;redis分布式锁;SPI服务机制;cat监控;netty服务代理;websocket;disconf;mongodb集成;rest;docker

Dockerfile 0.29% Java 98.05% Batchfile 0.52% Shell 1.15%

spring-dubbo-service's Introduction

spring-dubbo-service 微服务

一、服务模块

1、spring-dubbo-server

1). servlet、listener、interceptor、filter配置 2). mybatis配置集成,多数据源 3). jmx监控MBean 4). 定时任务配置 5). aop配置 6). ftp服务 7). 测试 8). Metrics监控 9). 参数验证 10). 跨域处理 11). 添加shiro权限控制 12). 导出Excel 13). 服务启动注册到consul;并测试获取redis服务,初始化redis资源;consul 监控redis服务 ;reids分布式锁;注意consul客户端和consul程序版本问题 14). SPI机制: org/windwant/spring/core/spi 15). static资源, “/” 映射 16). 使用druid数据源连接池;配置druid数据源监控:http://localhost:8081/druid/index.html 17). dubbo server 18). dianping Cat 监控 19). mybatis 级联查询 一对一 一对多 注解配置及xml配置方式 20). ehcache 二级缓存配置 xml 注解 21). 分页处理:传递Page参数 或者继承Page的对象参数 22). acturtor 项目监控信息获取

2、spring-dubbo-test

测试dubbo rpc服务

测试websocket protobuf

3、spring-dubbo-common

api 接口

4、spring-dubbo-proxy

netty rpc 服务代理,处理业务消息解析 分发

5、spring-dubbo-wsproxy

netty rpc websocket 服务代理

6、spring-dubbo-protocal

protobuf 资源

7、spring-dubbo-client

proxy websocketproxy 测试工程

8、spring-dubbo-elasticjob

测试spring-boot-server druid监控定时任务

9、spring-dubbo-registry

consul服务注册:示例

RegistryFactory.INSTANCE. getRegistry(RegistryFactory.CONSUL). doRegister(RegistryService.build(ConfigUtil.get("service.name"), WSUtil.getHost(), ConfigUtil.getInteger("websocket.connect.port"), ConfigUtil.get("service.version")));

十、spring-dubbo-bus

消息监听推送

十、spring-dubbo-rest

rest api

二、服务部署:

  1. consul:

部署consul服务

启动consul:

consul agent -server -bootstrap-expect=1  -data-dir=data -node=server0 -bind=127.0.0.1 -client 0.0.0.0 -ui
  1. redis:

部署redis服务

启动redis

  1. zookeeper

部署zookeeper服务

启动zookeeper

  1. zookeeper

部署mongo服务

启动mongo

三、docker

docker-compose 启动相应服务

docker network create --subnet=192.168.0.0/16 mynet 创建网络

dubbo-rest:

docker build -t spring_dubbo_rest .

docker run -it -d --network mynet -p 8086:8086 spring_dubbo_rest

curl http://localhost:8086/hello/roger

dubbo-service:

docker build -t spring_dubbo_service .

docker run -it -d --network mynet -p 8086:8086 spring_dubbo_service

curl http://localhost:8083/info

spring-dubbo-service's People

Contributors

windwant avatar

Stargazers

jacob avatar

Watchers

jacob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.