3 ms·
I know a decent amount of php, but I'm primarily a Python developer who writes most code with asyncio and twisted. I tried doing a relatively trivial async php
by jameshilliard 9y ago
I know a decent amount of php, but I'm primarily a Python developer who writes most code with asyncio and twisted.
I tried doing a relatively trivial async php script(basically a script that was supposed to make an outbound redis pubsub connection and outbound websocket connection and relay messages) using reactphp and found it to be nearly impossible due to language/framework constructs.
It was easy enough to make the outbound connections but there was no obvious way to actually pass messages between the two connections.
Async style really just does not seem to work well with php at all.
- francislavoie 9y agoI recommend looking at ZeroMQ for this
- jameshilliard 9y agoNot sure how that would help much, I needed something that could talk with redis and websockets and pass messages between the two. I was trying to use php since that's what the main portion of the application was implemented in so that I could share code, I ended up just using python in the end though.