Category : swoole

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

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

Hyperf Hyperf is based onSwoole 4.3+The high-performance and high-flexibility PHP coordination framework, built-in coordination server and a large number of commonly used components, has better performance than the traditional one based onPHP-FPMThe framework of the has been improved qualitatively, providing ultra-high performance while maintaining extremely flexible scalability. The standard components are all based onPSR standardImplementation, ..

Read more

Swoole in1.x – 4.xThe version also providesPSR-0Standardized Underline Style Class Names andPSR-4Namespace style of. At presentPSR-0The specification is already in21 October 2014Marked as abandoned, the latest replacement specification isPSR-4. In the latest5In the version we plan toCompletely Remove Underlined Class Names. Please, everyoneSwooleThe user gradually changed the class name toPSR-4Standardized pure namespace style. NowSwooleWe are ..

Read more

In4.4In previous versions,SwooleHas not supportedCURLConcorde cannot be used in code.curl. Due tocurlUsedlibcurlLibrary implementation, not directlyhookIt’ssocket,4.4Version usageSwoole\Coroutine\Http\ClientThe simulation is realizedcurlTheAPIAnd replaced it at the bottomcurl_initEquifunctionalC Handler. Prompt CURL HookThe characteristics of the are still in the experimental stage, please do not use them directly in the production environment. File upload is not supported for the time ..

Read more

Asynchronous, Parallel and High Performance Network Communication Engine of PHPSwoolePublished1.10.0Version. Several new features have been added to this release. Automatic DNS resolution The new version of asynchronous client is no longer requiredswoole_async_dns_lookupThe domain name was resolved, and the bottom layer realized automatic domain name resolution.ClientIn progressconnectMethod can be passed directly into the domain name. $client ..

Read more