Tag:Synergetic process

  • Implementation of go co process timeout control

    Time:2021-10-20

    Go co process timeout control Select blocking mode Context mode Let’s start with a scenario: Suppose that service a needs to call service B in the business and requires a 5S timeout to be set, how to implement it gracefully? Select timeout control Consider whether it can be implemented in the mode of select + […]

  • Write a golang log processing package from 0

    Time:2021-10-20

    WHY Log overview Log is essential for almost every actual software project from development to final actual operation. It is very important to view the code running process, record what happened and so on. A good log system should be able to accurately record the information to be recorded and have good performance. Next, this […]

  • Using the collaborative process database query of swoole in laravel 5.6

    Time:2021-10-16

    Installation First, make sure you are using laravel 5.6 Then, you need to rely on the kuaiapp / DB package to implementSwoole\Coroutine\MySQLPseudo PDO interface composer require kuaiapp/db:v0.1 -vvv take laravel/framework:”v5.6″Modified intolaravelfy/framework:v5.6.x-dev composer require laravelfy/framework:v5.6.x-dev -vvv Start in your laravel swoole command and test the interface with database query.Such as laravel-s php laravels start So far, […]

  • Swoole is a high performance network communication framework

    Time:2021-10-4

    Swoole is a high-performance network communication framework. Nginx is basically not used. You can consider using nginx as a proxy server. [ Hyperf、Swoft、EasySwoole、MixPHP ] The master main process is responsible for creating multiple threads to accept and return user requests, and generating a manager process at the same time The manager process is responsible for […]

  • The software tracker v3.3.0 release supports link tracking and reporting to Zipkin

    Time:2021-9-30

    Modify to Zend extension This version of tracker is modified for Zend extension, so it needs to passzend_extension=swoole_trackerLoad in the same way completephp.iniThe configuration is as follows: zend_extension=swoole_tracker.so tracker.enable=1 tracker.sampling_rate=100 tracker.enable_memcheck=1 Can passphp -vperhapsphp –ri swoole_trackerView installed version information FPM Status For users using FPM, thefpm_get_status()Display of, only supports greater thanPHP7.3Version of. Zipkin support The […]

  • Hyperf releases v2.0.18, an enterprise level PHP microservice cloud native collaboration framework

    Time:2021-9-23

    Update content This week, we mainly added some features, fixed bugs of some components, and continued to improve the stability of hyperf, which was released on2.0.18Edition. It is recommended that you update this version with the following command. composer update “hyperf/*” -o Direct access to the official websitehyperf.ioOr documenthyperf.wikiView updates matters needing attention Please removerequire-devMediumdoctrine/commonassembly […]

  • Use of PHP generator

    Time:2021-9-22

    Learn how to use PHP generatorImplementing multitask scheduling using coprocessor in PHP This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Preview of new features in the software v4.7 version Co:: cancel()

    Time:2021-9-18

    I believe that many users wanted an API to cancel the collaboration process before, but they didn’t add it. Now it is added in v4.7: For specific implementation, see:#4247 ,#4249 New API & constants Two APIs have been added, namely Co::cancel($cid): bool It is used to cancel a collaboration, but cannot cancel the current collaboration […]

  • Hyperf releases v2.0.21, an enterprise level PHP microservice cloud native collaboration framework

    Time:2021-9-15

    Update content This week, we mainly added some features, fixed bugs of some components, and continued to improve the stability of hyperf, which was released on2.0.21Edition. It is recommended that you update this version with the following command. composer update “hyperf/*” -o Direct access to the official websitehyperf.ioOr documenthyperf.wikiView updates newly added #2857byservice-governanceComponent additionConsulofACL Tokensupport. […]

  • C-ares support for preview of spool v4.7

    Time:2021-9-13

    What is c-ares? C-ares is an asynchronous DNS resolution library. It is suitable for applications that need to execute DNS queries without blocking or need to execute multiple DNS queries in parallel. It is not enabled by default. If it needs to be enabled, it needs to be added when compiling swoole–enable-caresparameter gethostbyname In previous […]

  • PHP easysoole framework update

    Time:2021-9-12

    Easysoole is a collaborative framework that supports enterprise level distributed. EasySwoole is a resident memory distributed swoole framework, specially designed for API, supporting simultaneous listening HTTP, WebSocket, custom TCP, UDP protocol, and has rich components, such as co channel connection pool, TP style ORM, WeChat SDK, Alipay Co SDK, Cox client, CO client, CO client, […]

  • Golang functional options?

    Time:2021-9-9

    In the process of developing or learning source code, many people should have seen the following code fragments type Option func(opts *Options) //Create a new server, client, pool, etc func NewXXX(name string, opts …Option) {} Just started fromjavaturngoWhen I read these codes, I was really confused. I couldn’t understand what these options were and why […]