I have a Java web service that returns a large amount of data. Is there a standard way to stream a response rather than trying to return a huge chunk of data at once?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This problem is analogous to the older problem with bringing back large RSS feeds. You can do it by parameterizing the request:
http://host/myservice?start=0&count=100, or by including next/prev urls in the response itself.The latter approach has a lot of advantages. I’ll search for a link that describes it and post it here if I find one.