java - Parallel processing in app engine -
for each request app gets, sends lot of url fetch requests many apis, , want send , process response in parallel.
it's not heavy in computation, in time takes wait external api's response.
what best why use make paralleled it? thread? task queue?
or even, thought sending http main servlet other servlets in app.
there few options
consider using async urlfetch, have read of article. http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/
if have big number of urls (you haven't quantified how many have) consider using task queue, have 10min request time.
alternately use pull queue submit url's processed , backend processes requests , can use threads in backend instance.
Comments
Post a Comment