Giter Site home page Giter Site logo

dubboss's Introduction

dubboss Travis CI Status

dubboss是一个分布式REST服务的框架,实现了如下功能:

  • 基于dubbo的RPC
  • 基于netty的应用服务器
  • 基于springmvc的REST调用
  • 基于ngnix的负载均衡

如何快速使用

  1. 下载并启动zookeeper [下载地址](http://www.interior-dsgn.com/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz "zookeeper" target="_blank")
  2. 启动服务提供者: cn.injava.dubboss.service.starter.StartService
  3. 启动服务调用者: cn.injava.dubboss.server.starter.StartServer
  4. 通过浏览器访问 http://localhost:8080/hello/dubboss, 如果返回Hello开头的信息,表示REST调用成功

如何打包并部署

  1. 在根目录下执行maven打包命令: mvn package
  2. 启动服务提供者: java -jar dubboss-service/target/dubboss-service-1.0-SNAPSHOT.jar
  3. 启动服务调用者: java -jar dubboss-server/target/dubboss-server-1.0-SNAPSHOT.jar
  4. 通过浏览器访问 http://localhost:8080/hello/dubboss, 如果返回Hello开头的信息,表示REST调用成功

TODO

  • 参考dubbo的SpringContainer类,在starter里提供停止服务的方法
  • 实现session共享
  • 后台启动的脚本
  • 接入数据库,以及数据库中间件
  • ngnix的配置

dubboss's People

Contributors

leiguorui avatar

Watchers

 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.