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

Spike: Service Bus: List*Result classes need to surface continuations #94

Closed
jcookems opened this issue Jun 13, 2012 · 4 comments
Closed

Comments

@jcookems
Copy link
Contributor

Dev Estimate: 3
Test Estimate: 0

Like most services, the Service Bus will return a partial list, with a continuation to get more, if you use TOP or if the number of results crosses some threshold. For example, with a call like this, when the server has more than 22 queues:

https://XXX.servicebus.windows.net/$Resources/Queues?%24top=2&%24skip=20

the server can return:

<feed xmlns="http://www.w3.org/2005/Atom">
  ...
  <link rel="self" href="https://azuresdkdev.servicebus.windows.net/
    $Resources/Queues?%24top=2&amp;%24skip=20"/>
  <link rel="next" href="https://azuresdkdev.servicebus.windows.net/
    $Resources/Queues?%24top=2&amp;%24skip=22"/>

However, that "next" link is not returned to the consumer of the API. This means that the List_Result classes need to parse and *expose_ those continuations to the user, so they can use them to get the next batch of results. For example, this is what is done with the Blob APIS, ListBlobsResult has a Marker and a NextMarker properties.

(The PHP SDK has a similar issue, tracked Azure/azure-sdk-for-php#479)

@gcheng
Copy link

gcheng commented Jul 9, 2012

The question is whether the server expose the continuation information, how does .NET SDK do on this scenario?

@christav
Copy link
Contributor

Investigate - can we get consistent API across language SDKs

@gcheng
Copy link

gcheng commented Feb 6, 2013

this is the ruby issue, it is a low pri one for ruby

https://github.com/appfog/azure-sdk-for-ruby/issues/215

@ghost ghost assigned gcheng Feb 6, 2013
@andrerod
Copy link

Moving to code gen. This will no longer apply.

@azuresdkci azuresdkci removed this from the Backlog milestone Sep 21, 2014
@azuresdkci azuresdkci removed the P2 label Sep 21, 2014
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this issue Apr 5, 2017
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue Mar 4, 2019
g2vinay pushed a commit to g2vinay/azure-sdk-for-java that referenced this issue May 30, 2019
Open source direct connectivity implementation
navalev pushed a commit to navalev/azure-sdk-for-java that referenced this issue Dec 24, 2019
* Ensure using StepVerifier in all Async tests
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants