php implementation of websocket real-time message push
1, Brief introduction of socket protocol
What is WebSocket and what are its advantages
WebSocket is a persistent protocol, which is relative to http non persistent. Application layer protocol
For example, the life cycle of http1.0 is defined by request, that is, a request and a response. For HTTP, this session between client and server ends ...
Posted by edontee on Tue, 10 Mar 2020 03:01:08 -0700
Spring boot: the filter of spring boot
First of all, let's talk about the filter. The filter is the process of data filtering and preprocessing. When we visit the website, sometimes we will publish some sensitive information, and some of them will be replaced by * after we send it, and some of them will be controlled by login authority. A resource, without authorization, can' ...
Posted by Smicks on Mon, 09 Mar 2020 23:07:37 -0700
iOS encrypts and decrypts data with key
Introduction
In the development of iOS App, we need to encrypt the account, password and other personal private information to ensure the security of user information. Then these private information can be saved in the keychain, because the invisibility of the keychain can ensure the security of the u ...
Posted by illushinz on Mon, 09 Mar 2020 20:38:32 -0700
Asynchronous crawlers are too troublesome to write?Try Trio!
Personal Blog Visit http://www.x0100.top
Trio, translated as Trio, provides easier asynchronous programming and is a more advanced encapsulation of asyncio.
It attempts to simplify complex asyncio modules.Simpler to use than asyncio and Twisted, but equally powerful.The project is still young and ...
Posted by MattMan on Mon, 09 Mar 2020 19:12:11 -0700
Detailed nginx data receiving process
In nginx Event Driven Process Details Based on epoll Model As we mentioned, epoll calls back the ngx_event_accept() method after triggering the accept event.This approach does two main things:
Get the client connection handle to which accept is going, and initialize a ngx_connection_t structure to characterize the connection;
Check that the ne ...
Posted by SeaJones on Mon, 09 Mar 2020 17:53:00 -0700
2020 let's talk about four quotations of "strong weakness and emptiness"
In the past, when learning strong weak virtual reference, I just looked at the blog and didn't write my own code to practice and prove it. As a result, I forgot it after reading it every time. Later, I made up my mind to knock on the code by myself, so that I could be more impressed. The ancients said that I had to feel shallow on the paper ...
Posted by Burns on Mon, 09 Mar 2020 03:22:18 -0700
Two algorithmic questions per day - day14 of Pat - 1016 phone bills (25point (s)) - structure Sorting and Map mapping usage - detailed explanation
1016 Phone Bills (25point(s))
A long-distance telephone company charges its customers by the following rules:
Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. When a customer starts connecting a long-distance call, the time will be recor ...
Posted by doc on Mon, 09 Mar 2020 00:19:12 -0700
Things between linux processes
Before I wrote this article, I was afraid of the interprocess communication of linux. However, after reading some other articles, I found that the interprocess communication of linux is much more difficult than what I learned. First of all, the concept of thread under linux has been weakened. Thread ...
Posted by gterre on Mon, 09 Mar 2020 00:09:18 -0700
The most suitable Ribbon tutorial for beginners
What is Ribbon
Ribbon is a customer service load balancing tool based on HTTP and TCP, which is implemented based on Netflix Ribbon.
It is not deployed independently like Spring Cloud service registry, configuration center and API gateway, but it exists in almost every Spring Cloud microservice. Including the declarative service call provi ...
Posted by washbucket on Sun, 08 Mar 2020 22:52:43 -0700
Source code learning of BeanFactoryPostProcessor and BeanPostProcessor of Spring hook
BeanFactoryPostProcessor and BeanPostProcessor are two interfaces that are exposed when initializing beans. They are similar to Aware (PS: for spring hook, please see) Detailed explanation of Spring hook method and hook interface This article also mainly studies the details of the specific hooks, so that we can be efficient in the actual ...
Posted by webhamster on Sun, 08 Mar 2020 22:36:17 -0700