Mark,
I agree that parallel requests are sometimes hard to manage. That's why I
scrapped that branch since it interferes too much with the design of the
regular client. Instead I want to leave it as an advanced hook in the transport
layer for those who might need to write something more advanced.
Pseudo code might look something like:
$pool = new HttpPool();
$http_requests = array();
foreach( $objects as $object ){
$http_requests[ $object->getKey() ] = $pool->add( $transport->prepare_put(
$object ) );
}
$pool->finish();
foreach( $http_requests as $key => $http ){
$response = $http->reponse->result;
}
I agree, though. I tend to farm operations like this out to a job system.
~ John
> As for the socket pool stuff, I've got mixed feelings about the idea ....
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com