The previous foundation has been written. Now let's implement the encoder. Why do I need an encoder? netty is only responsible for transmitting data. It doesn't care what the data looks like. As mentioned earlier, the custom protocol is to organize, transmit and decode the data we want to transmit according to our rules. The encoder is to organ ...
Posted on Mon, 06 Dec 2021 17:33:32 -0500 by AncientSage
Custom protocol? When I first heard this term, I felt so tall! After learning this class later, I found that the so-called user-defined protocol is to define a set of data transmission rules. So you don't necessarily understand We know that only binary can be transmitted in the network, so before RPC requests are sent to the network, they need ...
Posted on Sun, 05 Dec 2021 08:24:20 -0500 by wmguk
Current limiting is a function that is often integrated in the development of back-end services. It is particularly useful to prevent the system from crashing due to excessive pressure. In a multi tenant system, flow restriction is also particularly useful for limiting the amount of resources used by a single tenant. This article will explore i ...
Posted on Mon, 29 Nov 2021 20:07:16 -0500 by cspgsl
This paper describes how to use Canal to implement an asynchronous and decoupled architecture. Subsequent articles will be rewritten to analyze Canal principles and source code.
Introduction to Canal
Canal is the middleware used to get database changes. Fake yourself as a MySQL slave library, pull the master binlog and parse and process it. P ...
Posted on Fri, 26 Nov 2021 16:46:43 -0500 by badboy1245
Most websites that use web APIs will use versioned web APIs. This is because when we upgrade the web API, we can't guarantee that all clients use the latest web API. Some old clients are likely to use one or even several interfaces that have been abolished in the new web API. If we deploy the new web API at this time, the old version of the cli ...
Posted on Tue, 16 Nov 2021 11:08:10 -0500 by smonkcaptain
This blog will explain the knowledge points related to agents in sweep.
Usage scenario of agent
Programmers who write crawler code can never get around using agents. During the coding process, you will encounter the following situations:
The network is not good and needs an agent;The target site cannot be accessed in China and needs an agent ...
Posted on Fri, 12 Nov 2021 18:46:01 -0500 by dennismonsewicz
Whether in the actual project or in the interview, as long as the project is involved, how to verify the registration and login is always the favorite of the interviewer. This time, let's systematically sort out how to complete the verification of a login. (Note: the project implementation is based on Egg.js as the background Implementation)
Posted on Mon, 08 Nov 2021 20:35:32 -0500 by PromInc
I. Introduction to NameServer
NameServer is a lightweight name service specially designed for Rocketmq. It is simple, scalable, stateless, and nodes do not communicate with each other. The working principle of the entire Rocketmq cluster is shown in the following figure:
It can be seen that the RocketMQ architecture is mainly divid ...
Posted on Sun, 31 Oct 2021 19:43:07 -0400 by prawn_86
1, Introduction to RabbitMQ
rabbitMQ official website: https://www.rabbitmq.com/
1. What is it
Reference article: https://zhuanlan.zhihu.com/p/157112243
Message queue is a container that holds messages during message transmission.
RabbitMQ is an open source message broker software (also known as message oriented middleware) that i ...
Posted on Sat, 30 Oct 2021 00:13:50 -0400 by john0117