Why does progressToken
exist?
#533
Unanswered
LeeSaferite
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
Working through the specification and the concept of a
progressToken
is confusing me. Mechanically I fully understand it and how to use it. My confusion relates to why it's even a distinct thing. It's only relevant when sending a Request, has to be unique across all Active Requests, and there's only one per Request. Why not simply userequestId
and a flag in_meta
indicating a desire to receive progress tracking? ArequestId
has stricter requirements and there's already precedent in the spec for usingrequestId
in a notification with request cancellations. As it is, it's adding an extra level of tracking/routing where I have to match up the incoming notification to a request by thatprogressToken
instead of simply by therequestId
. It's extra complexity for no obvious reason.Now that I have understood this, I'll simply be using
requestId
as aprogressToken
in my code. It'll make the Requestor code simpler as they don't need a more complicated lookup to route progress notifications. Obviously I can't do anything about the Processor code unless the spec gets updated in the future.Beta Was this translation helpful? Give feedback.
All reactions