21trillionsats@infosec.pubtoProgramming@programming.dev•Does Lemmy really benefit from Rust? Is code execution speed the bottleneck?English
1·
1 year agoRust itself or the way the Rust logic is implemented is not the bottleneck. Like most decent web applications the bottleneck is the database and how the decentralized protocols themselves are reconciled there.
Scaling massive amounts of records like Lemmy has been forced to is almost always IO bound at the database level even when a web service is centralized; this is much more difficult in federated architectures. This is why “NoSQL” databases have increased in popularity, but they are also not a magic bullet as there are major ACID trade offs one needs to consider.
Amazing work mlem team! Using it right now and the profile page is indeed gorgeous!