Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18392.html
One of the application scenarios of Netty in the project: the message push function can be used to push messages to all users, or to specify a user. The spring boot project is created. The background server uses Netty technology, and the front page uses WebSocket t ...
Posted by jpadie on Thu, 02 Apr 2020 08:24:30 -0700
In the previous article, we looked at the process of publishing a dubbo service, and this article outlined the process of analyzing dubbo service references.
1. What should service consumers do?
Generate proxy objects (help us achieve communication details)
Set up a communication connection (netty)
Get the service provider address (subscript ...
Posted by gooman on Fri, 20 Mar 2020 19:56:52 -0700
Implement a group chat tool. The client messages participating in the chat are broadcast through the server.
It mainly consists of two parts: chat server and chat client.
Chat server function overview:
1. Monitor the access and disconnection of all clients
2. When client A accesses the chat room, send the access message to other clie ...
Posted by jonners on Tue, 17 Mar 2020 09:14:13 -0700
Section I. references
First of all, the source code of redis is elegant and bea ...
Posted by hungryOrb on Mon, 16 Mar 2020 23:54:32 -0700
Flume customized elasticsearch sink source code
Recently, we tried to write messages to elasticsearch through flume, but flume did not provide support for each es version, only kept support for version 0.9. It may be because the ES version changes frequently and there are big differences between different versions, so it is impossible to develo ...
Posted by saikiran on Sun, 15 Mar 2020 22:02:52 -0700
This section will focus on how Dubbo uses Netty to achieve network communication.
From the official website, we know that Dubbo protocol uses a single long connection for network transmission, that is to say, the service caller establishes a connection with the service provider for a long time, and all the service call information passes throug ...
Posted by jmandas on Thu, 12 Mar 2020 06:41:22 -0700
1. Solve the thread resource limitation
2. Low efficiency of thread switching
3. Resolve that IO read and write are in bytes
1. Introduction to netty
2. Use of netty
Netty package sticking and unpacking:
1. Sticking problem:
Posted by tapdancingtenor on Thu, 12 Mar 2020 05:22:10 -0700
The implementation of Reactor model can be divided into the following three types:
Single thread model
Single Reactor multithreading model
Master slave Reactor multithreading model.
Single thread model
The Reactor single thread model refers to that all IO operations are completed on the same thread. The responsibilities of the thread are as f ...
Posted by nightowl on Sat, 29 Feb 2020 20:44:02 -0800
In order to improve the performance, if the ChannelHandler implemented by the user contains complex business logic or may cause synchronous blocking, it is often necessary to enhance the concurrency capability through the thread pool. There are two strategies for adding the thread pool: user-defined th ...
Posted by jannoy on Thu, 20 Feb 2020 01:12:50 -0800
It is a technology that requests services from remote computer programs through the network without understanding the underlying network
Complete RPC network call process
Service consumer: call the client stub in the local call mode;
What is a client stub? Even if the remote method is in the local simu ...
Posted by robman2100 on Sat, 15 Feb 2020 18:49:13 -0800