Tag:Current limiting
-
Write an RPC framework S04 with go (write the server core)
preface Through the study of the last two articles, we have learned about the registration, configuration and protocol of local services on the server. Now we begin to write the core logic of the server https://github.com/dollarkill… Default configuration Let’s look at the default configuration first func defaultOptions() *Options { return &Options{ Protocol: transport.TCP, // default […]
-
[springboot] 58. Springboot uses user-defined annotations to realize interface current limiting
In high concurrency systems, there are three ways to protect the system: caching, degradation and current limiting. The purpose of current limiting is to protect the system by limiting the number of concurrent access requests or the number of requests in a time window. Once the limit rate is reached, it can refuse service, queue […]
-
Microservice gateway Apache Shenyu
summary Gateway is the core component of microservice architecture, so it is very important to choose an appropriate gateway when building microservice architecture. There are many technical frameworks of gateway we have contacted before, such as spring cloud gateway, zuul, Kong (nginx + Lua), etc. These gateways will not be introduced in detail. Today, I […]
-
Microservice architecture | 5 Service disaster recovery
@ catalogue preface 1. Basic knowledge of service disaster recovery 1.1 chain reaction caused by exhaustion of a service resource 1.2 service avalanche effect 1.3 four client elastic modes 1.4 several solutions for service disaster recovery 1.5 reference indicators of service degradation 1.6 function of service current limiting 1.7 several common current limiting algorithms 1.7.1 […]
-
Restaurant story | implementation of service flow restriction
Hello, I’m a side dish.A hope can becomeTalking about architecture with ox xMy man! If you also want to be the person I want to be, or pay attention and be a partner, so that the dishes are no longer lonely! This paper mainly introducesService current limiting If necessary, you can refer to If it […]
-
Left God algorithm and data structure full order class
download:Left God algorithm and data structure full order class Why return a unified canonical format for springbootUnder the condition of acquiescence, there are three common return formats of springboot: First: return string @GetMapping(“/hello”)public String getStr(){ return “hello,javadaily”;}Copy codeAt this time, the return value obtained by calling the interface is as follows: hello,javadailyCopy codeSecond: return custom […]
-
Microservice architecture | 5.2 sentinel based service current limiting and fusing
catalogue preface 1. Sentinel Basics 1.1 sentinel features 1.2 composition of sentinel 1.3 9 functions on sentinel console 1.4 working principle of sentinel 1.5 sentinel source code analysis 2. Install and run sentinel console 2.1 installation package installation sentinel console 2.1.1 download Sentinel 2.1.2 start sentinel console with command 2.1.3 accessing sentinel console 2.2 source […]
-
Semaphore confesses: I’m right to use the current limiter!
Hello, I’m semaphore. My Chinese name is “semaphore”. I’m from the JUC (Java. Util. Concurrent) family. Our family has many excellent members, such as:Countdownlatch (wait for other threads to execute before executing a thread),Cyclicbarrier (loop blocks a group of threads until an event is reached)Of course, I’m no weaker than them ω Oh, yeah. The […]
-
Microservice architecture | 5.4 source code analysis of sentinel flow control, statistics and fusing
catalogue preface 1. Automatic assembly of sentinel 1.2 dependency introduction 1.3 sentinelwebautoconfiguration configuration class 1.4 commonfilter 1.5 summary 2. Obtain the processorslot chain 2.1 sentinel source package structure 2.2 obtain the processorslot chain and the inlet ctsph of the operation slot entryWithPriority() 2.2.1 construct processorslot chain ctsph lookProcessChain() 2.2.2 operate the inlet of slot slot […]
-
Lumen 9. Correct posture of X for routing current limitation [don’t copy the code]
I hope you can find the correct operation posture and don’t move directly online. In fact, some methods are built in the framework. Configuration Middleware Middleware class First, go to laravel to get the middleware source code:ThrottleRequests.php, and thenapp/Http/MiddlewareCreate the file in (you can create any subfolder yourself). Here I put the middleware inapp/Http/Middleware/RouteDirectory. Note […]
-
Nginx (II)
Nginx (II) current limiting 1、 Nginx current limiting What is current limiting Limiting the number of requests from the client to the server is flow limiting. condition Nginx server Project instance [take querying goods as an example, start two instances, port: 5000 \ 5001] Using jemter pressure measurement Nginx realizes current limiting condition Current limiting […]
-
Design of tyk API gateway reverse proxy
0x1 what is reverse proxy? The previous article introduced the current limiting design of tyk, this record analyzes its anti generation design. I believe that the students who do the back-end have basically heard of the word anti generation (the common posture of nginx). Agents are divided into forward agents and reverse agents. Because we […]