[netty basic to entry] 2. Netty core functions and thread model

Preliminary exploration of Netty NIO's class library and API are complex and troublesome to use: you need to be familiar with Selector, ServerSocketChannel, SocketChannel, ByteBuffer, etc. The workload and difficulty of development are very large: for example, the client is faced with disconnection and reconnection, network flash, heartbeat pr ...

Posted on Mon, 06 Apr 2020 07:56:20 -0400 by deception54

BUG repair for failed startup of integrated Dubbo project under Spring zero configuration

Spring configures maven as follows: <properties> <spring.version>4.3.14.RELEASE</spring.version> <dubbo.version>2.5.3</dubbo.version> </properties> <dependencyManagement> <dependencies> <dependency> <group ...

Posted on Sun, 05 Apr 2020 12:22:40 -0400 by cdjaco

dubbo source code analysis 1 -- ExtensionLoader.getExtensionLoader

In dubbo source code, extension loader is often used, which uses java SPI mechanism. ProxyFactory proxyFactory = ExtensionLoader. getExtensionLoader(ProxyFactory.class).getAdaptiveExtension(); Protocol protocol = ExtensionLoader. getExtensionLoader(Protocol.class).getAdaptiveExtension(); summary 1. Judge whether the clas ...

Posted on Mon, 30 Mar 2020 15:33:47 -0400 by hrichman

Dubbo source code analysis - Dubbo SPI get adaptive extension point instance

Dubbo SPI series On Java SPI How to use Dubbo SPI (I) - automatic packaging of extension points Dubbo SPI using method (2) - extended point adaption Dubbo SPI usage (3) - automatic assembly of extension points Dubbo source code analysis - Application of Dubbo SPI in Protocol layer Dubbo source code analysis - Dubbo SPI obtains extension poin ...

Posted on Sun, 29 Mar 2020 02:15:21 -0400 by jfs0479

Dubbo SPI usage - extended point adaptation

Opening chapter Last one Dubbo SPI usage (1) - automatic wrapping of extension points. This paper continues with Dubbo SPI - extended point adaptation. text outline Introduction to adaptive extension point @How to use Adaptive annotation Act on class Act on method 1. Adaptive extension point The dependent extension point injected by Exte ...

Posted on Fri, 27 Mar 2020 05:54:13 -0400 by nicky77uk1

Explanation of Dubbo's principles and high availability testing using zookeeper as a registry

Foreword: Today we will explain to you the principle of Dubbp invocation, and a demo test to show you the running process of Dubbo.In the previous article, we talked about-- Zookeeper Installation Test for Dubbo and Building Zookeeper Cluster In which we have already talked about the building of Zookeeper cluster. Today we will also use this cl ...

Posted on Fri, 27 Mar 2020 00:12:35 -0400 by SilverFoxDesign

Source code analysis Dubbo Network Communication Chapter NettyServer, HeaderExchangeServer

This article mainly analyzes the implementation details of NettyServer and HeaderExchangeServer. 1,NettyServer The whole class diagram of NettyServer is as follows: First, take a look at the properties held by the NettyServer object in general: AbstractPeer private final ChannelHandler handler Event handling Handler. private volatile URL ur ...

Posted on Sun, 22 Mar 2020 12:16:06 -0400 by b-real

log4j does not output in springboot and controls third-party log level

Configuration (log4j.properties) log4j.rootLogger = debug,stdout,D,E,DB ### Output information to control lift ### log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target = System.out #### change to info in deployed env.### log4j.appender.stdout.Threshold = DEBUG log4j.appender.stdout.layout = org.apache.log4j.Pa ...

Posted on Sat, 21 Mar 2020 13:38:05 -0400 by Sillysoft

Dubbo Source Learning-Service Publishing

I. Ideas for Self-realization Parse Profile netty communication Serialization, Deserialization Service Address Registration to Registration Center 2. How to parse the spring configuration file Typically, information about services is placed in the spring configuration file for dubbo parsing calls.So how do these profiles work? 2.1. De ...

Posted on Fri, 20 Mar 2020 23:26:34 -0400 by nttaylor

Implement rpc framework of beggar version based on Java

Beginning This article implements a simple rpc framework through Java, and the concept of rpc is not detailed here.It is believed that a clearer and more intuitive understanding of the implementation principle of rpc can be obtained by looking at the entire implementation process. target The end result is similar to Dubbo Official Demo Let's ...

Posted on Fri, 20 Mar 2020 17:53:29 -0400 by fallenangel1983