Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install and use async-helper of PHP

Shulou Source: shulou.com Published: 2022-06-02 00:01:18 10月03日 Update

Most people do not understand the knowledge of this article "how to install and use async-helper of PHP", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install and use async-helper of PHP" article.

Introduction to async-helper

PHP's asynchronous process helper, with the help of AMQP to implement asynchronous execution of PHP, puts some time-consuming, highly available operations that need retry mechanism into the asynchronous process, and frees your HTTP service from the heavy business logic. The traditional PHP business logic is transformed into a non-blocking, highly available and scalable asynchronous mode at a lower cost.

Dependence

Php 5.6 +

Ext-bcmath

Ext-amqp 1.9.1 +

Ext-memcached 3.0.3 +

Installation

Install via composer

Composer require l669/async-helper

Or download the project source code directly

Wget https://github.com/l669306630/async-helper/archive/master.zip usage example

Business logic: there are a lot of classes and methods waiting to be called, which could be a data model or a class that sends mail in your project.

Tags: Methods processes services mail logs blocking time consumers nodes queues support consumption content data messages clusters business transactions projects tolerance Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Redmi Docker vpn NVidia