Netty Learning Note Communication Scheduling Paper: Reactor Thread Model

Catalog Reactor Model Single Thread Model Multithread model Master multithreading model Sample code Reactor Model Reactor model in Netty is mainly composed of Acceptor, Dispatcher and Handler, which can be divided into three kinds. Single Thread Model All I/O operations are performed by a s ...

Posted by shakuni on Mon, 12 Aug 2019 10:21:18 +0200

RocketMQ privilege control

RocketMQ, as an excellent middleware, has a wide range of applications. There are large-scale applications in different fields such as finance, e-commerce, telecommunications, medical, social science, security and so on. There is no doubt that the security is very questionable, because there is no security-related business module in RocketMQ, a ...

Posted by kinadian on Tue, 06 Aug 2019 05:21:12 +0200

Coding and Decoding of Netty Source Code Analysis

Coding class MessageToByteEncoder   This time, we use ObjectEncoder as an example. When we need to write messages to the network channel, we need to encode the messages to determine whether the message type meets the requirements. Generally, we use type matching to configure the message in the gene ...

Posted by coowboy on Tue, 23 Jul 2019 04:15:33 +0200

Deep parsing of xxl-rpc service callers

I. Callers of services Overview of service invokers: The invoker package in the remoting package is the service caller, including configuration, bean proxy, load balancing strategy, invocation scheme, etc. II. Generating Agent 2.1 @XxlRpcReference Let's first look at the @XxlRpcReference annotation ...

Posted by PascalNouma on Sun, 21 Jul 2019 13:52:56 +0200

Source Code Analysis of Bootstrap Initialization Process--Start of netty Client

Bootstrap initialization process netty's client boot class is Bootstrap. Let's take a look at the initialization process of Bootstrap in the client part of spark's rpc. TransportClientFactory.createClient(InetSocketAddress address) Simply post out the Bootstrap initialization code // Client boot object Bootstrap bootstrap = new Bootstrap(); // ...

Posted by gonsman on Sat, 22 Jun 2019 21:04:18 +0200

[Netty] Server and Client

Welcome to Public Number: [Love Programming]If there is a need for background reply to the learning materials given 1T in 2019!! This article is based on Netty 4.1.36 for analysis Server The Netty server startup code is basically as follows: private void start() throws Exception { final EchoServerHandler serverHandler = new EchoServer ...

Posted by Mythic Fr0st on Sun, 02 Jun 2019 18:13:27 +0200

RocketMQ Source Learning (III) - Broker (Interaction with Producer)

The way to learn source code this time is to learn source code with problems. The list of problems is as follows. How does Broker receive messages? How to ensure data reliability under Broker exception? How does Broker guarantee high storage throughput? How should Broker message stacking be handled? How does Broker handle timing messages? What ...

Posted by shopphp on Mon, 27 May 2019 21:04:30 +0200