Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 1
Generated: 13:05:33
I'd be curious to see how this runs on a bare metal VPS - I would expect way way higher throughput. Another thing to try would be to batch writes - instead of writing every time something happens you collect writes in a queue and write every 50ms in one big transaction. This should help a lot with write throughput. Reading can be done in the same way. If you want to avoid parameter limits you can use JSON1. Last but not least, analyze the queries using `EXPLAIN QUERY PLAN` to make sure your indices are correctly used.
2025-11-17 13:21:10 from 1 relay(s) ↑ Parent 1 replies ↓
Login to reply

Replies (1)

Using a VPS is sort of antithetical to what I was trying to build 😅. By being entirely “serverless” it wouldn’t have a single-point of failure or other downsides such as needing to ensure you harden it, manage updates, fault tolerance, smalllr resource ceilings, etc. There’s none of the traditional nuisances with Cloudflare Workers, etc. Everything is managed. With adding Cloudflare Queues, the write throughput is now 5x better and it does batches of 100 to the D1. The next thing on my list is to ensure further optimizing the handling of all queries and improve read performance even more efficiently than just with indices and read replicas.
2025-11-17 20:38:23 from 1 relay(s) ↑ Parent 1 replies ↓ Reply