New tutorial using non-blocking PHP #2308
Replies: 2 comments
-
@kafkiansky if you believe it's important to include tutorials for a non-blocking PHP client, you are welcome to contribute them to https://github.com/rabbitmq/rabbitmq-tutorials. As for contributing a version to the website, we'd consider it but we do not currently have two tutorials on the website for any given language, and I can imagine some being in favour of it staying that way. So I cannot promise that a website contribution would be accepted, we will see. |
Beta Was this translation helpful? Give feedback.
-
FTR, the executable port of the tutorials to this new async PHP client was filed in rabbitmq/rabbitmq-tutorials#631. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
There have been better alternatives to php-amqplib available for quite some time, including non-blocking ones like bunny/bunny, but the tutorial doesn’t showcase them. More recently, PHP introduced fibers (stackful coroutines), which allow writing non-blocking colorless code. This makes it relatively easy to convert a synchronous application to asynchronous, gaining performance and reliability improvements. For example, a long-standing issue with synchronous php-amqplib is that it can't send heartbeats while the code is blocked — signals don’t fully solve this problem.
Describe the solution you'd like
We believe it's important to include tutorials for non-blocking PHP. At thesis, we’re working on non-blocking clients using fibers, and we recently released the first stable version of thesis/amqp. Would it be possible for us to submit a PR with tutorial examples based on our client?
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions