Skip to content

[QUESTION] Swoole hooks vs. Coroutine clients - which is Hyperf using? Which is better? #5018

@kingIZZZY

Description

@kingIZZZY

In this swoole documentation it sounds like Coroutine Clients are not recommended, instead Swoole Hooks is better to use.

What does Hyperf framework do? It looks like there are coroutine clients like hyperf/database-pgsql using Swoole\Coroutine\PostgreSQL

Is it better to use hooks or coroutine clients?
Is there a reason why it's better to use coroutine clients in the Hyperf framework?
Is it possible to use either / both? Which one should I use ?

Thank you 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions