Netty Case, Intermediate Extension of Netty 4.1 Nine "Places to Place Netty Cluster Deployment for Cross-Server Communication"

Preamble Introduction Netty performs very well, and within some small user volume socket services, deploying only a single machine can meet business needs.However, when you encounter services with medium and large user volumes, you need to conside ...

Posted by courtewing on Tue, 03 Sep 2019 18:31:21 -0700

Netty Case, Intermediate Extension of Netty 4.1 Eight "Netty Heartbeat Service and Disconnected Reconnection"

Preamble Introduction In our use of netty, we need to monitor whether the service is stable and can automatically reconnect when network abnormal links are broken.Need to implement listening; f.addListener(new MyChannelFutureListener()) Environme ...

Posted by kidd1270 on Tue, 03 Sep 2019 18:17:15 -0700

[RPC] Implementation of RPC framework based on netty+zookeeper step by step

The last one implements service registration discovery and basic string communication functions. This one implements the functions that we usually invoke using classes of RPC framework. Implementing consumer end to call remote services through inte ...

Posted by phynias on Tue, 03 Sep 2019 05:59:50 -0700

Talk about Netty Server for dubbo

order This article mainly studies Netty Server of dubbo. AbstractServer dubbo-2.7.3/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/AbstractServer.java public abstract class AbstractServer extends AbstractEndpoint implements Server { protected static final String SERVER_THREAD_POOL_NAME = "DubboServerHan ...

Posted by Barb54 on Fri, 30 Aug 2019 21:15:35 -0700

Java Network Programming--AIO Asynchronous Network Programming

A in AIO is Asynchronous, AIO is asynchronous IO. It is asynchronous and non-blocking. The client's I/O requests are processed by the OS and then the server application is notified to start the thread. Generally, our business processing logic will become a callback function, waiting for the IO operation to be completed and triggered automatic ...

Posted by XenoPhage on Wed, 28 Aug 2019 06:51:25 -0700

Epic strongest textbook style "NIO and Netty programming"

Epic strongest textbook style "NIO and Netty programming" 1.1 Overview 1.2 File IO 1.2.1 Overview and Core API s 1.2.2 Cases 1.3 Network IO 1.3.1 Overview and Core API s 3.4 AIO Programming 3.5 IO Comparison Summary 4.1 Overview 4.2 Netty Overall Design 4.2.1 Thread Model 4.2.2 Asynchronous Model 4.3 Core API Star ...

Posted by RiBlanced on Sat, 17 Aug 2019 22:48:17 -0700

Memory Manager ByteBufAllocator and Memory Allocator

ByteBufAllocator Memory Manager: The top-level abstraction of memory allocation in Netty is ByteBuf Allocator, which allocates all ByteBuf-type memory. In fact, there are not many functions, mainly the following important API s: public interface ByteBufAllocator {/**Allocate a block of memory to automatically determine whether to allocate i ...

Posted by evil turnip on Thu, 01 Aug 2019 21:45:59 -0700

Dubbo multi-protocol support

Dubbo version: 2.6.5 Dubbo supports dubbo, rmi, hessian, http, web service, thrift, redis and other protocols, but Dubbo's official website recommends that we use the Dubbo protocol. Dubbo can publish a single protocol, multiple protocols for the same service, multiple protocols for multiple service ...

Posted by nrussell on Thu, 01 Aug 2019 20:19:14 -0700

This article takes you to implement the RPC framework

For more articles, visit my blog- Code is endless. Nowadays, most Internet companies will adopt micro-service architecture, but there are different ways to implement micro-service architecture. There are two main ways: one is remote call based on Http protocol, the other is RPC-based call. Both approaches have their own representative framewor ...

Posted by Clukey on Wed, 24 Jul 2019 18:14:50 -0700

Universal File Service Component (Netty Implementation Version)

The file service components described in this article have been described in the previous article of the author.( File upload and download component based on netty However, this paper will be based on the previous implementation to upgrade again, using annotation-based way of automatic assembly. 1. Introduction 1.1 Introduction to Netty Netty i ...

Posted by nodehopper on Sat, 20 Jul 2019 21:21:59 -0700