[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xri] Clarity around Ref processing behavior.
We have discussed this before -- whether multiple Ref's have round-robin semantics or aggregation semantics. While I agree that aggregation semantics is cool and is in fact more intuitive, I have always felt uncomfortable with it from the standpoint of predictability. After discussing this at the TC call today, we led ourselves back to the "no back-tracking rule" which has the following advantages: 1. It exposes any error that it encounters early. If we found an error but ignored it moving on to the next Ref, the error could stay undiscovered for a long time while causing strange resolution behaviors. 2. It enforces a more predictable Ref usage pattern that follows down a single Ref chain instead of a Ref tree. This is often easy to understand and troubleshoot. 3. Having the constraint above, resolution will probably be faster because the resolver wouldn't have to try other Refs. Drummond also brought up an interesting point that XRD/Ref has a focused but limited role in allowing one to aggregate services. Rather, the new Service/Ref provides more fine-grained control. Look for Drummond's minutes for the call and let us know what you think. =wil Steven Churchill wrote: > > The “processing” flowcharts in sections 8.1.2 and 11.1 both contain a > box saying “Resolve Authority Ref to new XRDS document or error”. If > “Error” is true, then there is a branch to obtain the next Ref. > > The original use case for Ref processing held that the “error” > occurred either if a Ref could not be followed due to network error or > if following the Ref came up empty for the requested service type. > That is, in both cases, the code should try following the next Ref. [I > will omit for now the explanation as to why this use case is > important, but will gladly explain if asked.] > > I’ve heard Wil say at some point that the current OpenXRI > implementation only tries the next Ref due to network failure—but > doesn’t try the next Ref if the “Resolve Authority Ref to new XRDS > document or error” comes up empty for the given service type. > > Wil, is my statement accurate? If so, I propose that the OpenXRI > behavior be changed to (what I consider) match the flowcharts. > > ~ Steve > > PS: the “note” in the both flowchart refers to section 10. This is > incorrect. >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]