Skip to content

registerWebhooks() is taking too long to run #734

Open
@nullndr

Description

I noticed the LCP in my app has been raised recently, so after some debugging I found that the call to registerWebhooks() in the afterAuth() hook is taking an exagerate amount of seconds (~10s).

Manually registering all my webhooks topic (I currently have 12 topics) inside a Promise.all() decreased the time to 300ms.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions