[wp-trac] [WordPress Trac] #17238: Parallel HTTP Requests

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 26 01:02:16 UTC 2011


#17238: Parallel HTTP Requests
-----------------------------+-----------------------
 Reporter:  sterlo           |       Owner:
     Type:  feature request  |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  HTTP             |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------
Changes (by sterlo):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Replying to [comment:6 dd32]:
 > non-blocking requests allow the request to be made, however no output
 from the server is captured.

 Yes. But with ajax this can be done with ease.

 > The HTTP Extension can be useful (pecl http) however was just removed
 from core due to it's lack of functionality offered over that of cURL.
 cURL itself can handle multiple requests (which is where pecl http gets
 it's functionality from) but that isnt exposed in WP_HTTP

 Yeah I noticed that from #16978 :)

 > I'm not sure of your use-case here, but due to the above reasons, I'd
 not suggest it be added to core, and would've closed this ticket as
 wontfix myself. I would probably suggest using WordPress's cron system and
 firing off the http requests in their own WordPress instance/thread

 After playing with the idea a bit:

 Non-blocking requests are cool. But still not the same as parallel
 requests.

 Parallel requests that are intended to block. So if a page has two
 separate sets of data to display, the requests for that data can be made
 at the same time, instead of in parallel. So if both requests take 500ms -
 then your page load speed would be 500ms instead of 1000ms.

 If it's deemed to be something not worth adding to the core - that's fine.
 I just figured I'd give the feature some thought.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17238#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list