News for hackers. Stuff that matters.
Re:Facebook open sources Haxl by EGreg on Tuesday June 10, 2014 @02:53PM (#7874572)
How do you guys batch requests in PHP? You don't, right? So this is an intermediate layer basically, and it sends requests every few millisecods and waits to batch things in between?
Re:Facebook open sources Haxl by nbm on Tuesday June 10, 2014 @03:57PM (#7874925)
The systems described here isn't directly involved with any PHP code.

Like all Facebook services, they are communicated with over the Thrift RPC system, and may have PHP (or any other language) clients, and may talk to other services using Thrift (or occasionally other protocols), some of which may use PHP.

If you're asking a general question about batching requests in PHP, http://docs.hhvm.com/manual/en/hack.async.php may be informative.

Re:Facebook open sources Haxl by EGreg on Tuesday June 10, 2014 @04:06PM (#7874986)
Cool so Hack supports async while php doesn't.
Re:Facebook open sources Haxl by fnord_murks on Tuesday June 10, 2014 @10:29PM (#7876298)
If you want to have similar query parallelization magic for PHP+SQL have a look at the standalone SQLTap service written by the guys from DaWanda.com (https://github.com/paulasmuth/sqltap).