Serverless and WASM runtimes are similar and Firecracker are in this space.
It would have to be multithreaded, it could communicate with nginx via domain socket as php-fpm does. I don't know if there's a way to multiplex data over a domain socket, maybe you could use multiple domain sockets and load balance between them? Or custom framing.
Does head of line blocking come into this too?