• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Async web service's serial response

 
Mahavir Singh J
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Like I am calling a web service asynchronously and the web service is external to my application. This web service process and give response for thousands of records one by one.

So, what would be the better way to get that response? I am thinking that web service would give response on a queue one by one. Is it a better approach? Or can we use some
other approaches?

Please, provide some suggestions to me on this.

Thanks,
Mahavir
 
Mahavir Singh J
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please, give your valuable suggestions on this topic.

Thanks,
Mahavir
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There isn't a generic answer to what is better. It depends on the specific problem. That said, returning 1000 things one at a time doesn't seem like a good idea. Maybe you need batching?
 
Mahavir Singh J
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne for the suggestion.

I have another question like if we have 30000 records to process then

Getting one-by-one response on a Queue is better? or calling web services synchronously with batch size 100 is better?

Thanks,
Mahavir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic