Async use cases #9
Replies: 3 comments 4 replies
-
|
IMO this is a given (otherwise we wouldn't even be having this discussion), but since it wasn't spelled out, concurrency allows for:
Other languages have introduced concurrency for these reasons and many more, PHP is the only one left behind, and that's all there is to it. |
Beta Was this translation helpful? Give feedback.
-
This is if the async would not be restricted to single thread(worker). See related question about this. |
Beta Was this translation helpful? Give feedback.
-
|
Today I ran into a task where async would be useful. For a stateful server using coroutines, such a delay costs far fewer resources. At the same time, a stateful server gains additional options for preventing this type of attack, because the server knows all its connections and operations and can be optimized accordingly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In this thread you may share examples of tasks you have already solved using async in PHP, or tasks that would be easier to solve with it.
You may include code examples if you wish.
This topic may become useful for shaping the API.
You will also help other PHP developers learn something new or look at old problems from a different perspective.
That’s why this thread can be extremely useful for everyone!
Beta Was this translation helpful? Give feedback.
All reactions