Calling Rust From PHP Without a Socket, Part 2: Making Existing Code Use It
Thirteen Composer packages let existing Redis and database code in WordPress, Laravel and Symfony use ePHPm's built-in versions. This post covers what's in them and the bugs they turned up.
Part 1 covered the plumbing. ePHPm registers
ephpm_kv_* and ephpm_db_* functions that call straight into Rust. A cache read through one costs about a tenth of a
microsecond instead of a loopback round trip. That’s nice and also useless on its own. Nobody is going to rewrite their
WordPress object cache or their Laravel cache store around a function called ephpm_kv_set(). Applications talk to
existing APIs instead:
