php implements redis message publishing subscription
Basic Introduction
Pub/Sub function (means Publish, Subscribe) is the publishing and subscription function
In event-based systems, Pub/Sub is a widely used communication model, which uses events as the basic communication mechanism to provide loosely coupled interaction modes required by large-scale systems: subscribers (such as clients) expre ...
Added by rheroux on Sun, 15 Sep 2019 05:02:13 +0300
Multithreaded Concurrent Programming
Concurrent programming
Concurrent (pseudo): Because of the speed of execution, it is not perceptible
Parallel (true): create 10 simultaneous operations
thread
Single-process, single-threaded applications
print('666')
What exactly is a thread?What is a process
Python does not have this on its own; the threads and processes of the operatin ...
Added by razmon on Thu, 12 Sep 2019 20:39:14 +0300
Netty Source Code Analysis--read Process Source Code Analysis
In the previous article, we analyzed the accept process in the process SelectedKey method. This article will analyze the read process in the work thread.
private static void processSelectedKey(SelectionKey k, AbstractNioChannel ch) {
final NioUnsafe unsafe = ch.unsafe();
//Check the SelectionKey Is it valid? If it is invalid, close ...
Added by mrfritz379 on Thu, 12 Sep 2019 06:47:59 +0300
Qt Writing Control Property Designer 9-Database Acquisition
I. Preface
As a data source, database is widely used in many configuration software, such as specifying database type, filling in database connection information, specifying corresponding database tables and fields, acquisition interval, automatica ...
Added by numan82 on Thu, 12 Sep 2019 04:36:27 +0300
Netty Source Code Analysis--Client Access Acept Process
Read through this article, you will understand1. How netty accepts new requests2. How netty assigns reactor threads to new requests3. How netty adds ChannelHandler to each new connection
reactor thread in netty
There are two types of reactor threads at the core of netty. They can be regarded as two types of engines in netty, which drive the w ...
Added by Monshery on Wed, 11 Sep 2019 07:08:29 +0300
Python Network Programming
Network programming
Architecture of Software Development
Application class: QQ Weixinpin FTP mesh disk and so on, which belongs to the application class that needs to be installed.
WEB class: such as Baidu, Zhizhi, Weibo and other applications that can be directly used by browser access
C/S Architecture
C/S (Client and Server), Chinese mean ...
Added by imcomguy on Mon, 09 Sep 2019 14:21:10 +0300
ZooKeeper Series: Voting
ZooKeeper's election process defaults to the FastLeaderElection class, which starts Messenger to send and receive election information when FastLeaderElection starts. After the election is completed, one Leader and several Follower are selected.
First understand several concepts:
Epoch: The voting cycle is used to distinguish each round, and ...
Added by dotBz on Mon, 09 Sep 2019 09:16:47 +0300
Spring Cloud Zuul Ribbon and Hytrix configuration instructions
First, concept introduction.
Ribbon: Load balancing is a multi-instance load balancing configuration for services.
Hystrix: Fuse, when calling zuul Gateway specific business, may be affected by the network, code execution time and so on for a ...
Added by kubis on Wed, 04 Sep 2019 08:44:40 +0300
Network Programming for Linux Learning
Before we start learning network programming, let's first understand what TCP protocol is: TCP/IP(Transmission Control Protocol/Internet Protocol), which is a connection-oriented, reliable, byte-stream-based Transport layer communication protocol. I ...
Added by philippe2 on Tue, 03 Sep 2019 17:05:11 +0300
python Advanced Programming-Network Programming
TCP and Concurrent Server
Unlike UDP, it is a connection-oriented, reliable data transmission protocol.
TCP Communication is Complicated
Write a TCP server first. The general steps are as follows:
1. The first step is to create a socket socket: socket()
2. Servers usually need a fixed IP address and a fixed port number. Servers need to bin ...
Added by HIV on Fri, 30 Aug 2019 11:50:16 +0300