Comment

Comment by jacobp100

This basically makes a rust server to do the routing, then uses the Boa JS engine to evaluate the JS to handle the route

With this approach, you might be able to do some multithreading to improve the throughput

However, each request is almost guaranteed to be slower because V8 will be faster than Boa

You could also achieve this by spinning up multiple NodeJS instances and putting an nginx server in front to do load balancing - which is pretty standard practice

parent jacobp100 10 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton