3 ms·
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 ba
by EGreg 12y ago
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?
- nbm 12y agoThe 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 http://docs.hhvm.com/manual/en/hack.async.php may be informative.
- EGreg 12y agoCool so Hack supports async while php doesn't.
- fnord_murks 12y agoIf 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 https://github.com/paulasmuth/sqltap).