Conventional Design and Example of Current Limitation
Current Limiting Algorithms
Counter Current Limitation
Fixed window
sliding window
Barrel current limiting
Token Bucket
Leaky bucket
Counter
Counter current limiting can be divided into:
Fixed window
sliding window
Fixed window
The current limitation of fixed window counter is simple and clear, that is, to limit the number of requests ...
Posted by zurron on Sat, 17 Aug 2019 08:42:10 -0700
Distributed ID Series - Is Redis Cluster Implemented Distributed ID Suitable for Distributed ID
First is the project address:
https://github.com/maqiankun/distributed-id-redis-generator
For Redis Cluster to generate distributed ID s, here's the first thing to learn about the EVAL, EVALSHA command when redis uses the lua script:
https://www.runoob.com/redis/scripting-eval.htmlhttps://www.runoob.com/redis/scripting-evalsha.html
Explain how ...
Posted by dawsba on Wed, 14 Aug 2019 20:37:06 -0700
Old Boy Python Notes _74_User Registration Authentication _Implementation of Registration Function _Cloud Communication Sending Short Message Verification Code
Articles Catalogue
User Registration and Authentication
Front-end display registration page
Implementation of Registration Function
Client submits registration information
Sending SMS Using Cloud Communication
Back-end Generation of Short Messag ...
Posted by ncracraf on Wed, 14 Aug 2019 05:09:24 -0700
redis: two principals and two subordinates
Monitoring: Sentinel constantly checks whether your master and slave servers are functioning properly.
Notification: Sentinel can send notifications to administrators or other applications through the API when a Redis server being monitored has problems.
Automatic failover: When a primary server does not work properly, Sentinel starts an aut ...
Posted by jrottman on Tue, 13 Aug 2019 20:49:55 -0700
React Exercise, Simulated Brief Book Blog Writing Platform
Introduction
Technology stack: react + redux + react-router + express + Nginx
Practice points:
redux connection
react-router routing jump
scss style writing
Design of Container Component and Display Component
Structural Design of express Scaffolding Project
User information persistence (cookie + redis)
Common Security Problem Handling (xss sql ...
Posted by jamesjohnson88 on Tue, 13 Aug 2019 04:55:18 -0700
express is easy to use
Introducing express
npm install express --save
express-generator
This is a generator to generate express, through which we can quickly build an express architecture without having to build a tedious one.
npn install express-generator -g
Note: - g means global installation, if not global installat ...
Posted by onyx on Sun, 11 Aug 2019 06:44:27 -0700
Centos installs supervisor to guard the Redis process
Based on business problems, redis was added to the project for caching and queuing. But now we just install and deploy on a single server, without purchasing other services like Ali Cloud, and without building master and slave.
This leads to problems. If the redis process is accidentally blocked, then the business can not be carried out. This ...
Posted by glitch003 on Fri, 09 Aug 2019 01:33:27 -0700
Asynchronous Programming Completable Future for Request Merging in High Concurrent System Optimization
Asynchronous Programming Completable Future for Request Merging in High Concurrent System OptimizationFirst of all, the scene:
According to Redis's official website, the read-write performance of single-machine Redis is 120,000/sec, and batch processing can reach 700,000/sec. Whether it's a cache or a database, it has the function of batch proc ...
Posted by herschen on Sun, 04 Aug 2019 23:32:54 -0700
Coly of the Go Crawler goes from getting started to not giving up the guide
Recently, I found that there were fewer and fewer questions I knew I was interested in, so I was ready to aggregate technical questions and answers from other platforms, such as segmentfault, stackoverflow, and so on.
To accomplish this work, there must be crawlers.I stopped by to study colly, a crawler framework for Go.
Overview
Coly is a well ...
Posted by Cynthia Blue on Sun, 04 Aug 2019 09:17:42 -0700
SprintBoot 2.X Page Optimization Technology (Page Cache + Object Cache)
(9) SprintBoot 2.X page optimization technology (page caching + object caching)
1. Page optimization technology
1.1 Page Cache + URL Cache + Object Cache
1.2 Page Static, Front-end and Back-end Separation
1.3 Static Resource Optimization
1.4 CDN optimization
[Caching issues] (https://github.com/CyC ...
Posted by digitalmartyr on Sat, 03 Aug 2019 23:51:23 -0700