The Server of Network Communication in RocketMq
1. Broker Server Entry
Firstly, RocketMq network communication adopts Netty communication. The server is mainly in Broker. Let's first look at Broker Startup class
Obviously, the concrete logic is in the start method, and the following is to achieve:
public void start() throws Exception {
if (this.messageStore != null) {
...
Added by faswad on Sun, 14 Jul 2019 21:17:16 +0300
StrangeIoc MVCS Game Framework
StrangeIoC Framework is an Extension of MVC Framework
Using a MVCS framework, it has been well applied in Unity3d
The following is a frame diagram of StrangeIoC:
[ROOT module]
Open the whole framework boot module
[MVCS Context Module]
To reduce the coupling of the whole framework, dependency bindings can be made between modules.
It can ...
Added by rockinaway on Sat, 13 Jul 2019 20:57:54 +0300
WCF message compression
For WCF applications, compressing request and reply messages before transmission can not only reduce network traffic, but also improve the performance of network transmission.
I. Message Compression Scheme II. Components for Data Compression and Decompression Components for message compression and decompression Components for Compression and De ...
Added by blommer on Sat, 13 Jul 2019 01:26:26 +0300
Zero-based sorting
Holiday first \(Blog\) is Pigeon's first semester ranking 233
Here are some common sorting and optimizations ~
Insert Sort\((Insertion\)
Select Sort\((Selection\) (Sort)\)
Bubble Sorting((Bubble\) Sort\)
Hill Sort\((Shell\) Sort\)
Heap Sorting((Heap\) Sort\)
Quick Sort\((Quick\) Sort\)
Merge Sort\((Merge\)
Cardinality Sort\((Radix\) (So ...
Added by jdaura on Thu, 11 Jul 2019 19:41:37 +0300
C# UDP Programming (Local Area Network Communication via UdpClient-like)
1. UDP (User Data Protocol)
(1) UDP is a non-connected protocol. Before transferring data, the source and terminal do not establish a connection. When it wants to transfer data, it simply grabs the data from the application program and throws it on the network as quickly as possible. At the sender, the speed of UDP transmitting data is limite ...
Added by lachild on Thu, 11 Jul 2019 03:34:26 +0300
Glide combines Okhttp cookie management to realize the function of picture verification code and short message verification code for registration requirements
brief introduction
There is a need to use cookie to identify the current mobile phone and obtain the verification code of short message on the function of registration.
The process is like this (a bit pitted, csdn doesn't seem to be able to draw the following figure with code):
At this point, the problem arises. We need to get the Cookie ...
Added by dunhamcd on Thu, 11 Jul 2019 00:34:28 +0300
ActiveMQ (08): Transport Protocol and Configuration Supported by ActiveMQ
I. Brief IntroductionConnector: ActiveMQ provides the function of connecting and communicating. Including: client-to-broker, broker-to-broker. ActiveMQ allows clients to connect using multiple protocols.Configure Transport Connector, in conf/activemq.xml, roughly as follows:<transportConnectors>
<!-- DOS&nb ...
Added by pspeakman on Tue, 09 Jul 2019 01:52:59 +0300
Summary of Three Methods of Using HttpsURLConnection
Recently encountered network security problems, to transfer http to https, because the use of HttpURLConnection in the project, so the corresponding use of HttpsURLConnection, of course, most of the results of some predecessors on the reference network, the process also encountered some pits, here to summarize.
Since https involves certificat ...
Added by binarylime on Tue, 09 Jul 2019 01:24:04 +0300
Python Reptiles Series (1) Collection and Summary of Early Learning Reptiles
Recently, in order to extract Judicial Documents Network Relevant information, I entered the Python learning road, wrote nearly two weeks of code, I wrote this article to summarize the pits trampled, and encounter some good information and blog summary, in order to review and participate in their own later period, share with you, and welcome yo ...
Added by wannalearnit on Tue, 09 Jul 2019 00:45:19 +0300
What scenarios are JavaScript closures used for?
This article is translated from MDN (Mozilla Developer Network):
Original address: MDN
Translation Address: shixinzhang's blog
After reading this article, you will learn:
Lexical Scope
closure
Callback of Closed Real Battlefield Scene
Simulating Private Methods with Closures
Common errors create closures in loops
Attention performan ...
Added by mrobinson83 on Mon, 08 Jul 2019 22:51:04 +0300