Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latency sensitive edge functions #167

Open
steve-chavez opened this issue Nov 6, 2024 · 0 comments
Open

Latency sensitive edge functions #167

steve-chavez opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@steve-chavez
Copy link
Member

Problem

A user reported that the webhooks had a latency of 1 second in various cases. This can be true as we read from the net tables when a 1 second timeout is reached, if a webhook is triggered at the end of the read, the webhook will be fired after 1 second passes.

We cannot read from the tables all the time since this would result in too much activity.

Solution

Start doing requests immediately whenever the net.http_* functions are called. Now that we use epoll, perhaps we can do it with eventfd.

This should also be easier to do with an in-memory queue.

@steve-chavez steve-chavez added the enhancement New feature or request label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant