"Netty learning to punch -- from beginners to giving up" -- 18 - netty's grpc Bidirectional Streaming RPC example

Punch date (July 18, 2019) Learning points -Using grpc to complete Bidirectional Streaming RPC example step 1. Configure grpc dependency package 2. Write proto file 3. Generate java classes with gradle generateProto 4. Write Server/Client serviceNote: the Server is only responsible for startup, ...

Posted by art15 on Tue, 22 Oct 2019 13:53:13 -0700

"Netty learning to clock in -- from beginners to giving up" -- grpc Server Streaming Rpc example of 16 - netty

Punch date (July 18, 2019) Learning points -Using grpc to complete Server Streaming Rpc example step 1. Configure grpc dependency package 2. Write proto file 3. Generate java classes with gradle generateProto 4. Write Server/Client serviceNote: the Server is only responsible for startup, so the ...

Posted by akjackson1 on Tue, 22 Oct 2019 08:55:05 -0700

Netty high performance component -- FastThreadLocal source code analysis (see the real chapter for details)

1. Preface netty encapsulates FastThreadLocal to replace the ThreadLocal provided by jdk. Combined with the encapsulated FastThreadLocalThread, variables in multithreaded environment improve the query and update efficiency of ThreadLocal objects. In the following, by comparing ThreadLocal with FastThreadLocal, and by analyzing the source code, ...

Posted by guoxin on Sun, 20 Oct 2019 01:48:00 -0700

Introduction and introduction to 03RPC - netty

Netty is a network application framework based on Java NIO. Netty is a NIO client-server (client server) framework, using Netty can quickly develop network applications, such as server and client protocols. Netty provides a new way to develop network applications, which makes it easy to use and extensib ...

Posted by lnenad on Wed, 09 Oct 2019 22:42:45 -0700

Implementation of Simple RPC Framework Based on Netty

Preface Now there are many examples of using Netty to build RPC framework on the Internet. Why do I write an article here to discuss it? I know very well that I may not have written them so well. There are two reasons why we should write about it: First, because after learning Netty, we need to practice constantly to better grasp the use of Ne ...

Posted by pup200 on Mon, 07 Oct 2019 17:30:38 -0700

Java Network Programming--ByteBuf in Netty

Because the ByteBuffer provided in JDK can not be dynamically expanded and the API is complex to use, Netty provides ByteBuffer. The API of Bytebuf is more convenient and can be expanded dynamically. It provides a variety of implementations of Bytebuf and an efficient zero-copy mechanism. Operation of ByteBuf ByteBuf has three important attribu ...

Posted by kristinac on Mon, 07 Oct 2019 02:20:46 -0700

Tx-lcn lcn-manager server execution logic

The server is very simple. It only needs an annotation @EnableTransaction Manager Server configuration on the startup class to turn on the distributed transaction server function. First, start the entrance. Annotation @Enable Transaction Manager Server @Retention(RetentionPolicy.RUNTIME) @Target(E ...

Posted by ace21 on Sun, 06 Oct 2019 05:32:25 -0700

rocketmq Source Resolution namesrvController Launch 3

Said ahead Next, the introduction of namesrvController startup Source code analysis Return method, process request, org. apache. rocketmq. remoting. netty. Netty Remoting Abstract # process RequestCommand public void processRequestCommand(final ChannelHandlerContext ctx, final RemotingCommand cmd) { // ...

Posted by darf on Fri, 04 Oct 2019 06:44:32 -0700

Handwritten RPC Framework Chapter 2 netty Communications

Case introduction When we implement the rpc framework, we need to choose the communication mode of socket. And we know that in general, socket communication is similar to qq chat, sending messages in the past, and when to reply. But our rpc framework communication, which feels like an http call, needs t ...

Posted by fer0an on Thu, 03 Oct 2019 14:38:23 -0700

rocketmq Source Parsing NamesrvController Launch 2 Create mqclient 1

Said ahead Last time Source code analysis Return to the method org. apache. rocketmq. tools. admin. DefaultMQ AdminExtImpl start @Override public void start() throws MQClientException { switch (this.serviceState) { case CREATE_JUST://Services are only started, not created ...

Posted by psy on Wed, 02 Oct 2019 04:24:14 -0700