Company
Date Published
Author
Luis Héctor Chávez
Word count
2848
Language
English
Hacker News points
11

Summary

Replit has increased its storage limit for Repls from 1 GiB to over 256 GiB. The previous limit was due to the need to serialize and deserialize the entire filesystem, which took too long and was expensive. A new infrastructure, called "margarine", allows each Repl to access its data on demand without loading the entire contents at boot time. Margarine uses a network file system to store files in Google Cloud Storage, and uses btrfs as the filesystem for the virtual disk. The system is designed to be transaction-safe, using copy-on-write to ensure that the filesystem remains consistent even if the connection drops. This allows for instant and cheaper forks of Repls, as well as storing full filesystem histories for recovery purposes. The new infrastructure also enables geographically-aware storage, allowing users in different locations to access each other's Repls.