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

rfc: egress tracking #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

rfc: egress tracking #37

wants to merge 2 commits into from

Conversation

fforbeck
Copy link
Member

@fforbeck fforbeck commented Oct 14, 2024

📚 Preview

Storacha Network aims to implement a scalable, automated mechanism for tracking egress traffic and updating Stripe’s Usage Record API with relevant data for accurate customer billing, this RFC outlines two approaches with distinct trade-offs.

rfc/egress-traffic.md Show resolved Hide resolved
rfc/egress-traffic.md Show resolved Hide resolved
rfc/egress-traffic.md Show resolved Hide resolved
rfc/egress-traffic.md Show resolved Hide resolved
rfc/egress-traffic.md Outdated Show resolved Hide resolved

- **Question:** How can logs and monitoring be effectively implemented in both alternatives? Does Alternative 2’s reliance on signed receipts offer sufficient logging capabilities? Do we really need these signed receipts?

- **Answer:** ???
Copy link
Member

@travis travis Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think it's at least moderately important to have those signed receipts - I suspect customers are going to want as much information as possible about what they're being charged for. We might be able to just aggregate metrics around them and store in Glacier for the sake of minimizing costs, but having signed receipts for each request feels like something that will eventually be fairly useful?

@alanshaw is right that there will be a LOT of them and they'll probably have different retention policies than most other UCAN invocation receipts, though for the sake of getting this shipped we might want to use the upload API service for now and add a new service later?

It definitely might be worth adding a new service that uses a similar invocation processing pipeline and different retention policies - ideally we'd move egress tracking receipts from S3 hot storage to Glacier pretty quickly for these, faster than for most other receipts we store.

fforbeck added a commit to storacha/w3up that referenced this pull request Oct 24, 2024
### Add `usage/record` Capability definition for Egress Traffic Tracking

**Summary:**
- Introduced a new capability `usage/record` definition to track egress
traffic metrics.
- The `w3upInfra` upload-api will be updated to implement this new
capability by leveraging Stripe's Usage Records API for accurate
tracking and billing.

RFC: storacha/RFC#37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants