Author:bromineLinks:https://www.jianshu.com/p/4c0 …Source: Simple BookThe copyright belongs to the author. This article has been reprinted with the authorization of the author and the original text has been rearranged.Swoft Github:https://github.com/swoft-clou … Swoft source code analysis series catalog:https://segmentfault.com/a/11 … Preface SwoftInPHPerThe circle has a higher thresholdWebThe framework, not only because the framework itself brings many new concepts and ..

Read more

Author:bromineLinks:https://www.jianshu.com/p/b44 …Source: Simple BookThe copyright belongs to the author. This article has been reprinted with the authorization of the author and the original text has been rearranged.Swoft Github:https://github.com/swoft-clou … Swoft source code analysis series catalog:https://segmentfault.com/a/11 … Preface SwoftThe task function of is based onSwooleTheTask mechanismIn other wordsSwoftTheTaskThe essence of mechanism is rightSwooleTheTask mechanismThe packaging and ..

Read more

Consul server configuration The greatest advantage brought by microservices is to divide the whole large project into different services and run them on different servers to realize decoupling and distributed processing. Although microservices have many advantages, they also have some disadvantages. Everything has two sides. Operation and maintenance in micro-services will be a big problem. ..

Read more

RPC service RPC is a Remote Procedure Call. Through RPC, we can call methods on other machines like local methods. Users will not feel the communication between servers. RPC plays a very important role in micro-service. Of course RPC is not a necessary way for micro-service. There are other ways to realize this remote call, ..

Read more

This series of articles will be introduced from the usage level.SwoftThe use of the framework and business development, for junior high school levelPHPer SwoftThe first new era PHP high-performance synergetic full stack componentization framework based on Swoole native synergetic, built-in synergetic network server and common synergetic client, memory resident, does not rely on traditional PHP-FPM, ..

Read more

date: 2018-8-01 14:22:17Title: swoft| Source Code Interpretation Series 1: How Difficult! Swoft demo can’t run. how can it be broken? Docker, get to know it ~Description: read sowft framework source code, swoft first step, fix the environment. The little buddy will feel when he first touches swoft.The pressure is a little high., a more intuitive ..

Read more

date: 2018-8-01 14:22:17Title: swoft| Source Code Interpretation Series II: What did swoft do during the startup phase?Description: read the sowft framework source code and learn about the sowft startup phase. The little buddy will feel when he first touches swoft.The pressure is a little high., a more intuitive statement isDifficultThe development team does not approveDifficultAccording ..

Read more

New: Add $request->parsedQuery () method (ab45089) The newly added Bean attribute is injected into the basic data type (string/int/bool/float/array) and automatically converted according to the annotation type. (e3d4085) Add db (), make Model/Query/DB support cutting library (f3b12c9) The newly added DbSelectorInterface is used to automatically cut libraries according to business (b36ca03) Add Http server and ..

Read more

What is Swoft? SwoftIt is based onSwooleThe PHP microservice coordination framework implemented by extension. Swoft, like Go, has built-in coordination network server and common coordination clients and memory resident, and does not rely on traditional PHP-FPM. There are synergetic operation modes similar to Go language, flexible annotations similar to Spring Cloud framework, powerful global dependency ..

Read more

Order This article mainly studies sentinel’s SentinelGatewayFilter SentinelGatewayFilter Sentinel-1.6.2/sentinel-adapter/sentinel-spring-cloud-gateway-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/sc/SentinelGatewayFilter.java public class SentinelGatewayFilter implements GatewayFilter, GlobalFilter { private final GatewayParamParser<ServerWebExchange> paramParser = new GatewayParamParser<>( new ServerWebExchangeItemParser()); @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { Route route = exchange.getAttribute(ServerWebExchangeUtils.GATEWAY_ROUTE_ATTR); Mono<Void> asyncResult = chain.filter(exchange); if (route != null) { String routeId = route.getId(); Object[] params = paramParser.parseParameterFor(routeId, exchange, ..

Read more