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

Update Freeway to send the egress event to a CloudFlare queue instead of invoking the Upload API directly #192

Open
Tracked by #187
fforbeck opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@fforbeck
Copy link
Member

fforbeck commented Nov 22, 2024

Context

The Freeway Worker currently processes approximately 2.5 billion requests per month. For the second phase of the Egress Billing System rollout, we need to ensure the egress tracking feature scales to handle all incoming requests effectively.

The proposed solution involves updating the Freeway Worker to enqueue events in a Cloudflare queue. Consumers will then process these events asynchronously and handle invocations to the upload-api.

graph LR
    A[Freeway Worker] -->|Sends Egress Events| B[Cloudflare Queue]
    B -->|Dispatch Events| C[Event Consumers]
    C -->|Perform Invocations| D[Upload API]
Loading
  1. The Freeway Worker generates egress events and enqueues them in a Cloudflare queue.
  2. Event consumers process the queued events asynchronously.
  3. The consumers invoke the upload-api to log egress data.

Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant