Skip to content

Add Fairness billing examples to pricing docs#4427

Merged
flippedcoder merged 4 commits intomainfrom
fairness-billing-examples
Apr 13, 2026
Merged

Add Fairness billing examples to pricing docs#4427
flippedcoder merged 4 commits intomainfrom
fairness-billing-examples

Conversation

@jpvotta
Copy link
Copy Markdown
Contributor

@jpvotta jpvotta commented Apr 10, 2026

Summary

  • Adds a ### Fairness pricing section to pricing.mdx under ## Other pricing, consistent with how TRU and High Availability billing are documented
  • Covers four billing scenarios with worked examples:
    • Fairness enabled but no fairness keys in use
    • Mix of Workflows with and without fairness keys
    • Enabling and disabling Fairness across calendar-hour boundaries
    • Enabling Fairness with a backlog of existing work
  • Updates the one-liner in actions.mdx to link to the new section and to the Task Queue Fairness feature docs

Test plan

  • yarn start — verify Fairness pricing section renders correctly at /cloud/pricing#fairness-pricing
  • Confirm link from actions.mdx resolves to /develop/task-queue-priority-fairness#task-queue-fairness
  • yarn build — no broken links

🤖 Generated with Claude Code

┆Attachments: EDU-6198 Add Fairness billing examples to pricing docs

- Add Fairness pricing section to pricing.mdx under Other pricing,
  with worked examples covering: no fairness keys in use, mixed
  workflows, calendar-hour billing boundaries, and backlogged tasks
- Update actions.mdx Fairness one-liner to link to the new section
  and to the Task Queue Fairness feature docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Apr 13, 2026 10:35pm

Request Review

@jpvotta jpvotta requested review from a team and tlotemporal as code owners April 10, 2026 18:50
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

📖 Docs PR preview links


**Fairness enabled, but no fairness keys in use**

If Fairness is enabled but no Workflows or Activities send `fairness_key` metadata, all tasks continue to route as before. The surcharge still applies: billing is determined by whether Fairness is enabled on the Namespace.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

'Fairness Actions are still applied' instead of 'The surcharge still applies'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — changed to "Fairness Actions are still applied".


If Fairness is enabled but no Workflows or Activities send `fairness_key` metadata, all tasks continue to route as before. The surcharge still applies: billing is determined by whether Fairness is enabled on the Namespace.

| Hour | Actions in Namespace | Fairness enabled? | Fairness surcharge | Total billed Actions |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove surcharge

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — table header changed to "Fairness Actions".


If each queue generates 5,000 Actions in a given hour (10,000 total), the surcharge applies to the full 10,000, not only to the 5,000 from `payment-queue`.

| Hour | Actions from payment-queue | Actions from notification-queue | Total Namespace Actions | Surcharge (10%) | Total billed Actions |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just label as 'Fairness' to align with previous table

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — relabeled to "Fairness" to align with previous table.


Suppose Fairness is enabled at 2:45 PM and disabled at 3:20 PM, then re-enabled at 4:50 PM. Billing uses 1-hour windows with no proration: if Fairness is on at any point during a window, the full window is charged. Each re-enable restarts the 1-hour minimum.

| Time (UTC) | Event | Billing window affected | Notes |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are lines 374 through 380 really needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed — cut this entire example (calendar-hour boundaries) as it covers general timing concepts independent of fairness.


**Enabling Fairness with a backlog of existing work**

Suppose `your-namespace` has a large backlog of queued tasks that were submitted before Fairness was enabled, and Fairness is turned on at 10:00 AM. If workers process 30,000 Actions from backlogged tasks and 10,000 new Actions during the 10:00–11:00 AM window, the surcharge applies to all 40,000. Billing is based on when Actions are processed, not when they were submitted.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we shorten this section?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed — cut this entire example (backlog scenario) for the same reason.

Copy link
Copy Markdown
Contributor

@tlotemporal tlotemporal left a comment

Choose a reason for hiding this comment

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

Left a few comments. Note we should not call this a 'surcharge', these are just 'Fairness' or 'Fairness Actions'.

Additionally I feel like we can cut down/cut out the last two examples as they deal with more general timing concepts that are independent of fairness.

Remove examples 3 (calendar-hour boundaries) and 4 (backlog scenario)
per reviewer feedback that they cover general timing concepts independent
of fairness. Replace "surcharge" with "Fairness Actions" throughout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread docs/evaluate/temporal-cloud/pricing.mdx Outdated
@flippedcoder flippedcoder merged commit ad33901 into main Apr 13, 2026
10 checks passed
@flippedcoder flippedcoder deleted the fairness-billing-examples branch April 13, 2026 22: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