Webhooks are not instant?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shrey
    Junior Member
    • Mar 2024
    • 2

    Webhooks are not instant?

    Hi all. I'm new to EspoCRM (as well as any Php based software).

    ---

    Do correct me if i'm wrong:

    I was quite surprised to find out that Webhooks are not processed instantaneously in EspoCRM. Instead, they are based on a 'polling' approach, using Cron (the lowest resolution for which is 1 minute).

    Is that really the case or am i missing something here?

    So far, across all the softwares/languages (except Php) that i have interacted with, in any capacity, i've found that Webhooks are an 'instantaneous concept'.
  • yuri
    Member
    • Mar 2014
    • 8454

    #2
    > 'instantaneous concept'.

    Not necessary.

    > 'polling' approach

    The 'polling' term might be wrong. here.

    > the lowest resolution for which is 1 minute

    You can set up smaller than 1 minute intervals. See our docs on Jobs configuration. You can have 15 seconds for example. Or even 5 seconds.

    Any sane implementation would use queue to process Webhooks sending. Let alone it's normal to send them in batches what already implies that it's not necessary should be instantaneous. You just need to configure the queue processing if you would like to have Webhooks being sent more quickly.
    Last edited by yuri; 03-04-2024, 10:20 AM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • shrey
      Junior Member
      • Mar 2024
      • 2

      #3
      yuri

      Thanks for the response.


      > > the lowest resolution for which is 1 minute
      > You can set up smaller than 1 minute intervals. See our docs on Jobs configuration. You can have 15 seconds for example. Or even 5 seconds.

      I did go through this: https://docs.espocrm.com/administration/jobs/#jobs

      But couldn't find any details regarding setting the frequency to less than a minute.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8454

        #4
        Either use daemon, or crontab with a 'sleep' trick.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...