1. In depth research on Alibaba sentinel source code
sentinel was successfully deployed to the online environment yesterday. Please refer to me. Blog post , the pits that should be walked are all over, and its current limiting and degrading functions can be used initially. According to my current practice, current limiting and deg ...
Posted on Sat, 02 Nov 2019 19:44:13 -0400 by umrguy
Recently, we have been doing some pressure tests on the system and optimizing some problems. We have gained a lot of good optimization experience from these problems. The following articles will focus on this aspect.
In the process of this crackdown, what we have gained is the optimization of RocketMq. At the beginning, our compan ...
Posted on Mon, 28 Oct 2019 23:50:04 -0400 by EPCtech
ThreadPoolExcutor is the thread pool that comes with JDK. It is also the creation method that we often use when creating the thread pool. Students who have a little knowledge of thread pool know that thread pool is a typical pool cache design. JDK has four kinds of task rejection strategi ...
Posted on Sat, 26 Oct 2019 23:17:48 -0400 by edwinlcy
In fact, the ChannelPipeline in Netty is similar to a data pipeline, which is responsible for delivering the messages read in the Channel. In essence, it is based on the design and implementation of the responsibility chain pattern. Both the IO event interceptor and the user-defined ChannelHandler business logic are added to the task chain as n ...
Posted on Sat, 26 Oct 2019 04:45:42 -0400 by lkq
Let's start with the following version:
simple-agent.sources = netcat-source
simple-agent.sinks = spark-sink
simple-agent.channels = memory-channel
#Describe/configure the source
simple-agent.sources.netcat-source.type = netcat
Posted on Wed, 16 Oct 2019 10:17:37 -0400 by jlgray48
A special Channel implementation, Embedded Channel, is provided by Netty for unit testing of ChannelHandler by needle insertion.
Write the inbound message to Embedded Channel. If you can read data from Embedded Channel through the readInbound method, return true
Read the inbound message from Embedded Ch ...
Posted on Sat, 12 Oct 2019 12:20:21 -0400 by silvrfoxx
How does RocketMQ source learning note Producer send messages to Broker?
This analysis is based on RocketMQ release-4.5.2.
The goal of the analysis is: How does Producer in RocketMQ send messages to Broker?
When it comes to learning source code, of course, the first thing is to download the source code. Official address . Use git ...
Posted on Thu, 10 Oct 2019 08:11:35 -0400 by kolanos7
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 attr ...
Posted on Wed, 09 Oct 2019 00:02:18 -0400 by hossfly007
Notes on Discard Server
The simplest protocol in the world is not "Hello, World!" but Discard. It is a protocol that discards any received data without any response.The only thing that needs to be done to implement the discard protocol is to ignore all received data. Let's start directly with the handler implementation, which handles ...
Posted on Tue, 08 Oct 2019 02:59:27 -0400 by eleven0
In netty development, JAVA objects need to be passed, which requires serialized objects. Although we can use JAVA for object serialization and netty for transmission, there are too many hard wounds in Java serialization, such as JAVA can not cross-language, too large stream after serialization, and t ...
Posted on Fri, 04 Oct 2019 21:13:47 -0400 by ameen