Redis Distributed Lock--PHP

The Role of Redis Distributed Locks In a stand-alone environment, there is a second-kill commodity activity, in a short time, server pressure and traffic will rise sharply. This will lead to concurrency problems. If you want to solve concurrency, you need to solve it. 1. Improving system throughput, that is, requests processed by qps per second ...

Added by Drebin on Thu, 16 May 2019 01:18:22 +0300

Algorithmic Basis - Time Complexity, Three Ordering Algorithms of Conventional O(N) (Bubble, Selection, Insertion)

This article is only my own notes, and does not have any guiding significance. The original intention of the code is to make it easy to understand. There are many codes optimized by God on the Internet. It is not recommended to copy the code in this article in the project. Catalog Time complexity Operation of Constant ...

Added by bugz-2849 on Wed, 15 May 2019 23:10:28 +0300

Simple Use of Netty Framework to Realize socket Communication

As an aside, many people call the NIO provided by JDK 1.4 asynchronous non-blocking I/O; in fact, it is not. Strictly speaking, it can only be called non-blocking I/O. In NIO 2.0 provided by JDK 1.7, an asynchronous socket channel Channel is added, which is the real asynchronous non-blocking I/O. The following table com ...

Added by HyperD on Wed, 15 May 2019 16:44:34 +0300

Front-end api request caching scheme

In the development of web applications, performance is an indispensable topic. For web packaged single page applications, there are many ways to optimize performance, such as tree-shaking, module lazy loading, and using extrens network cdn to accelerate these conventional optimization. Even in the vue-cli project, we can use the -- modern instr ...

Added by sstoveld on Wed, 15 May 2019 11:10:25 +0300

docker swarm modifies cluster ip

Summary The thing is, the original ip of the cluster running docker swarm on Shumei pie was 192.168.0.113, and then because of the move, the ip became 192.168.11.113. The next thing you can think of is that node and manager are definitely not connected. So I moved the node out of the cluster and rejoined it, but the join token command at that ...

Added by sargus on Wed, 15 May 2019 06:00:38 +0300

dubbo Source Reading Cluster (Fault Handling Strategy)

Overview of dubbo cluster The entry point of dubbo cluster function is in ReferenceConfig.createProxy method and Protocol.refer method. In the ReferenceConfig.createProxy method, if a user specifies multiple provider URLs or registry url s, multiple Invokers are created, then the Invokers are encapsulated in Static Directory, and then the stati ...

Added by tjhilder on Tue, 14 May 2019 22:13:18 +0300

Common Anti-Reptilian Measures and Solutions

At the end of the last blog, it was said that the port number of the whole network proxy IP was confused by encryption, and this blog will tell you how to crack it! If you find it useful, you might as well make a recommendation.~   1. JS confusion of whole network proxy IP First entry Network-wide proxy IP Open the developer's tool and click ...

Added by fmpros on Tue, 14 May 2019 20:29:13 +0300

netty Learning Summary

netty Learning Summary (I) What is netty? netty is an asynchronous, event-driven network programming framework. Technical Foundation of netty netty is an encapsulation of Java NIO and Java thread pool technology What problems did netty solve Using Java IO for network programming, usually one user and one thread, can not deal with a large number ...

Added by MidOhioIT on Tue, 14 May 2019 19:19:56 +0300

Linux_Enterprise DNS Configuration

Authoritative Name Server Store and provide the actual data of an area (whole DNS domain or part of DNS domain). The types of authoritative name servers include: Master: Contains raw area data. Sometimes referred to as the "main" name server Slave: Backup server that transfers area data from Master server through ...

Added by djs1 on Tue, 14 May 2019 18:54:42 +0300

Android System Performance Optimization (52) - - Mobile Performance Monitoring Scheme Hertz

Mobile Performance Monitoring Scheme Hertz Performance issues are one of the main causes of App user churn. App's performance problems include crashes, network request errors or timeouts, slow response, list scrolling cartons, high traffic, power consumption, and so on. There are many reasons for the poor performance ...

Added by swizenfeld on Sun, 12 May 2019 14:54:53 +0300