One Billion Cells – Another Multiplayer Demo with Clojure

原始链接: https://cells.andersmurphy.com/

Your browser does not support JavaScript!

Andersmurphy created a multiplayer demo called "One Billion Cells" using Clojure, Datastar, SQLite, and Caddy, initially hosted on a $5 VPS. The demo quickly gained traction on Hacker News, prompting an upgrade to a $10 VPS due to high CPU usage. The stack leverages SQLite for data storage, with all writes batched into a single transaction every 100ms, and chunk updates squashed to optimize performance. This approach allows the SQLite database to handle a high volume of updates, mitigating potential abuse. Users have reported minor UI issues, particularly on mobile, such as the keyboard automatically opening when interacting with cells. While the board is vast, there's a possibility a motivated player could dominate it. Andersmurphy highlighted that Datastar's streaming hypermedia is crucial to the project's functionality.
相关文章

原文
联系我们 contact @ memedata.com