Closed Bug 697126 Opened 13 years ago Closed 11 years ago

Add X-Backoff to token server and other non-storage APIs

Categories

(Cloud Services Graveyard :: Server: Token, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mconnor, Assigned: rfkelly)

References

Details

(Whiteboard: [qa+])

Attachments

(1 file)

can add the same const magic to the code, but should document this if nothing else and let it be a Zeus impl detail...
Whiteboard: [qa+]
Not much point here, since user API is going away eventually.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Does the token server API support this header?
Morphing this bug.
Status: RESOLVED → REOPENED
Component: Server: Registration → Server: Token
OS: Mac OS X → All
Hardware: x86 → All
Resolution: WONTFIX → ---
Summary: add x-weave-backoff to User API → Add X-Backoff to token server and other non-storage APIs
rfkelly, please close as appropriate if new code does the right thing…
Status: REOPENED → NEW
I don't think this is documented as part of the tokenserver API, and there's nothing in the code that would generate it currently. We should split these details off into a generic "Services HTTP APIs all support the following headers" section of the docs...
Blocks: 956217
Let's get the standard Retry-After/X-Backoff pair into the tokenserver docs in preparation for fxa+sync launch; we can refactor the docs to make this a standard thing later on.
Attachment #8358315 - Flags: review?(telliott)
(Alternately we could just use "Backoff" since "X-*" headers are out of vogue these days)
Blocks: 958795
Hah, I was just about to ping you about this! Occurred to me in the shower this morning. Filed Bug 958795 for Android. Mark, Tim, Chris: not sure where you're currently at with tracking this kind of stuff for the desktop client, so headsup!
Assignee: nobody → rfkelly
Status: NEW → ASSIGNED
For a bit of context: Making this work was a P0 from SvcOps in the days of the Instant Sync meltdown. tl;dr it's really good to have an explicit way to tell clients to sync less frequently. 503+Retry-After presumes the service is down, 20x + X-Backoff is a valid way to successfully serve clients while still pushing them into less-frequent syncing. sidenote: we should have unit tests to ensure that all client code understands Retry-After and X-Backoff are Very Important for scheduling. Manual syncs MAY override, but automatic sync intervals MUST follow backoff headers.
(In reply to Mike Connor [:mconnor] from comment #9) > sidenote: we should have unit tests to ensure that all client code > understands Retry-After and X-Backoff are Very Important for scheduling. > Manual syncs MAY override, but automatic sync intervals MUST follow backoff > headers. Sometimes I think that the Android Sync codebase is actually an elaborate backoff-handling system with accompanying unit tests, and Fennec is a favicon management app that also displays HTML.
(In reply to Richard Newman [:rnewman] from comment #8) > Hah, I was just about to ping you about this! Occurred to me in the shower > this morning. > > Filed Bug 958795 for Android. > > Mark, Tim, Chris: not sure where you're currently at with tracking this kind > of stuff for the desktop client, so headsup! Bug 958447 already exists for desktop.
Blocks: 958447
Comment on attachment 8358315 [details] [diff] [review] tokenserver-backoff.diff Review of attachment 8358315 [details] [diff] [review]: ----------------------------------------------------------------- I think that when we actually do more extensive protocol work, these should be merged or given more distinct semantics, but that's a separate conversation from documenting them (which is fine here)
Attachment #8358315 - Flags: review?(telliott) → review+
Committed in https://github.com/mozilla-services/docs/commit/400ff966ac1539ee8b8874b1f543cdc52fbbd705 Do we want to keep this bug open to track more open-ended work on the protocol for this?
unblocking TS metabug since this made it into the docs
No longer blocks: 956217
Ryan, can we close this?
Yes We Can
Status: ASSIGNED → RESOLVED
Closed: 13 years ago11 years ago
Resolution: --- → FIXED
Done.
Status: RESOLVED → VERIFIED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: