Architecturally it may be desirable to factor our codebase into multiple independent services with clear APIs, but small wikis would clearly like a "single server" installation with all of the services running under one roof, as it were. Some options previously proposed have involved VM containers that bundle PHP, Node, MediaWiki and all required services into a preconfigured full system image.
This summit topic proposes an alternative: tightly integrating `PHP`/`HHVM` with a persistent server process running under `node.js`. The central service bundles together multiple independent services, written in either PHP or JavaScript, and coordinates their configurations. Running a wiki-with-services can be done on a shared node.js host like Heroku.
This is not intended as a production configuration for large wikis -- in those cases having separate server farms for PHP, PHP services, and JavaScript services is best: that independence is indeed the reason why refactoring into services is desirable. But integrating the services into a single process allows for hassle-free configuration and maintenance of small wikis.
A proof-of-concept has been built. The node package [`php-embed`](https://www.npmjs.com/package/php-embed) embeds PHP 5.6.14 into a node.js (>= 2.4.0) process, with bidirectional property and method access between PHP and node. The package [`mediawiki-express`](https://www.npmjs.com/package/mediawiki-express) uses this to embed MediaWiki into an [express.js](http://expressjs.com/) HTTP server.
A bit of further hacking would allow you to fully configure the MediaWiki instance (in either PHP or JavaScript) and to dispatch to Parsoid (running in the same process).
**WORK IN PROGRESS**