dubbos主要是基于dubbox的基础上,进行进一步的优化及拓展。
支持REST风格远程调用(HTTP + JSON/XML):基于非常成熟的JBoss RestEasy框 架,在dubbo中实现了REST风格(HTTP + JSON/XML)的远程调用,以显著简化企业内部的跨语言交互,同时显著简化企业对外的Open API、无线API甚至AJAX服务端等等的开发。事实上,这个REST调用也使得Dubbo可以对当今特别流行的“微服务”架构提供基础性支持。 另外,REST调用也达到了比较高的性能,在基准测试下,HTTP + JSON与Dubbo 2.x默认的RPC协议(即TCP + Hessian2二进制序列化)之间只有1.5倍左右的差距,详见文档中的基准测试报告。
支持基于Kryo和FST的Java高效序列化实现:基于当今比较知名的Kryo和FST高性能序列化库,为Dubbo默认的RPC协议添加新的序列化实现,并优化调整了其序列化体系,比较显著的提高了Dubbo RPC的性能,详见文档中的基准测试报告。
支持基于Jackson的JSON序列化:基于业界应用最广泛的Jackson序列化库,为Dubbo默认的RPC协议添加新的JSON序列化实现。
支持基于嵌入式Tomcat的HTTP remoting体系:基于嵌入式tomcat实现dubbo 的HTTP remoting体系(即dubbo-remoting-http),用以逐步取代Dubbo中旧版本的嵌入式Jetty,可以显著的提高REST等的远 程调用性能,并将Servlet API的支持从2.5升级到3.1。(注:除了REST,dubbo中的WebServices、Hessian、HTTP Invoker等协议都基于这个HTTP remoting体系)。
升级Spring:将dubbox中Spring由3.x升级到目前最新的4.x版本,减少版本冲突带来的麻烦。
升级ZooKeeper客户端:将dubbo中的zookeeper客户端升级到最新的版本,以修正老版本中包含的bug。
支持完全基于Java代码的Dubbo配置:基于Spring的Java Config,实现完全无XML的纯Java代码方式来配置dubbo
调整Demo应用:暂时将dubbo的demo应用调整并改写以主要演示REST功能、Dubbo协议的新序列化方式、基于Java代码的Spring配置等等。
修正了dubbo的bug 包括配置、序列化、管理界面等等的bug。
注:dubbos和dubbo 2.x是兼容的,没有改变dubbo的任何已有的功能和配置方式(除了升级了spring之类的版本)
在Dubbo中开发REST风格的远程调用(RESTful Remoting)
详见:http://git.oschina.net/qilong/dubbos
dubbos-3.01: 在dubbox-2.8.4的基础上进行优化及拓展
升级spring4.x依赖并解决已知bug ## 依赖
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-jaxrs</ artifactId > < version >3.0.7.Final</ version > </ dependency > < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-client</ artifactId > < version >3.0.7.Final</ version > </ dependency > < dependency > < groupId >javax.validation</ groupId > < artifactId >validation-api</ artifactId > < version >1.0.0.GA</ version > </ dependency > <!-- 如果要使用json序列化 --> < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-jackson-provider</ artifactId > < version >3.0.7.Final</ version > </ dependency > <!-- 如果要使用xml序列化 --> < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-jaxb-provider</ artifactId > < version >3.0.7.Final</ version > </ dependency > <!-- 如果要使用netty server --> < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-netty</ artifactId > < version >3.0.7.Final</ version > </ dependency > <!-- 如果要使用Sun HTTP server --> < dependency > < groupId >org.jboss.resteasy</ groupId > < artifactId >resteasy-jdk-http</ artifactId > < version >3.0.7.Final</ version > </ dependency > <!-- 如果要使用tomcat server --> < dependency > < groupId >org.apache.tomcat.embed</ groupId > < artifactId >tomcat-embed-core</ artifactId > < version >8.0.11</ version > </ dependency > < dependency > < groupId >org.apache.tomcat.embed</ groupId > < artifactId >tomcat-embed-logging-juli</ artifactId > < version >8.0.11</ version > </ dependency > |
1 2 3 4 5 6 7 8 9 10 | < dependency > < groupId >com.esotericsoftware.kryo</ groupId > < artifactId >kryo</ artifactId > < version >2.24.0</ version > </ dependency > < dependency > < groupId >de.javakaffee</ groupId > < artifactId >kryo-serializers</ artifactId > < version >0.26</ version > </ dependency > |
1 2 3 4 5 | < dependency > < groupId >de.ruedigermoeller</ groupId > < artifactId >fst</ artifactId > < version >1.55</ version > </ dependency > |
1 2 3 4 5 6 7 8 9 10 | < dependency > < groupId >com.fasterxml.jackson.core</ groupId > < artifactId >jackson-core</ artifactId > < version >2.7.3</ version > </ dependency > < dependency > < groupId >com.fasterxml.jackson.core</ groupId > < artifactId >jackson-databind</ artifactId > < version >2.7.3</ version > </ dependency > |
原文:http://www.blogjava.net/paulwong/archive/2016/04/12/430049.html