Graphic io+BIO+NIO+AIO+Netty + chat room practice

The beginning of 2020 is extraordinary. I will stay at home and study io again io is divided into bio,nio,aio Among them, netty belongs to nio, and aio has not been widely used, so it has great potential in the future Understand several concepts Synchronous and asynchronous Blocking and non blockingio m ...

Added by PW on Wed, 10 Jun 2020 06:42:48 +0300

Implement simple chat function 1 to 1 based on netty (private message / group sending)

netty chat explain: My thoughts demonstration Chat server Chat initialization configuration Client processing message Front end code epilogue explain: I found that it takes a lot of energy to write a blog. In order to leave more time for promotion, I just post the code. Learning address: https: ...

Added by toppac on Sun, 07 Jun 2020 07:35:12 +0300

Responsibility chain model of behavior model

1 General Chain of responsibility pattern is a common behavior pattern. It encapsulates the processor into a processing chain, so that the request can be delivered on the chain. The processor on the chain decides whether to process the request or not. 2 responsibility chain mode A typical usage scenario of responsibility chain mode is when an e ...

Added by Nymphetamine on Sat, 06 Jun 2020 13:17:26 +0300

Consumption mode of consumer of pulsar

client processing logic ConnectionPool netty related configurations are available in com.yahoo.pulsar.client.impl.ConnectionPool public ConnectionPool(final PulsarClientImpl client, EventLoopGroup eventLoopGroup) { this.eventLoopGroup = eventLoopGroup; this.maxConnectionsPerHosts = client.getConfiguration().getConnection ...

Added by Nothsa on Wed, 27 May 2020 14:04:46 +0300

NettyConfiguration of spring cloud gateway

This paper mainly studies the NettyConfiguration of spring cloud gateway NettyConfiguration @Configuration @ConditionalOnProperty(name = "spring.cloud.gateway.enabled", matchIfMissing = true) @EnableConfigurationProperties @AutoConfigureBefore(HttpHandlerAutoConfiguration.class) @AutoConfigureAfter({GatewayLoadBalancerC ...

Added by BZorch on Mon, 20 Apr 2020 18:20:59 +0300

Handwritten MVC framework - example of using IOC alone

-------Previous: Handwritten MVC framework (two) - code implementation and use examples------ background I used the GMVC framework when developing the GMQ framework, and found some inconveniences in the process of using, which were also optimized. Currently, GMQ transmission is based on http transmission. I plan to use netty instead. Because my ...

Added by groovything on Sun, 12 Apr 2020 17:17:29 +0300

Dubbo Source Learning-Service Reference (Remote Call Phase)

In the previous article, we looked at what was done during the startup phase of a Dubbo service reference, and what was not seen during the remote invocation phase.The Dubbo service invocation process is complex and involves many steps, such as sending requests, codec, service demotion, filter chain processing, serialization, thread dispatch, ...

Added by Aaron111 on Sat, 21 Mar 2020 05:19:50 +0200

Architects must fully master the responsibility chain mode of the thorough way of kicking the ball

In our daily life, the responsibility chain mode is quite common. We usually work to handle some affairs, often all departments cooperate to complete a project task. Each department has its own responsibilities, so many times when a part of the work has been completed, it will be handed over to the next department, until all the departments hav ...

Added by PHPfolife on Mon, 16 Mar 2020 12:22:36 +0200

Example of ProtocolBuf implemented by Java native Socket

1. Development environment 1.Protocol version: 3.9 (latest available) Download Address 2.Protocol Protocol Version: 3 3. Ordinary java environment, source code is 2 classes. This is mainly about instant messaging using the native Java Socket API with its previous and back-end.Then binary data ( ...

Added by joeiscoolone on Fri, 06 Mar 2020 02:50:05 +0200

Lightweight RPC Design and Implementation Version 1

What is RPC RPC (Remote Procedure Call Protocol), a remote procedure call, has the common explanation that a client calls an object that exists on a remote computer without knowing the details of the call, just like an object in a local application, without knowing the protocol of the underlying network technology. Simple overall workflow The r ...

Added by varai on Wed, 19 Feb 2020 19:01:20 +0200