Internals

How a Datahoster host stores and serves data inside. None of this is needed to run a host, it is here so you can see the whole picture and so the design has one place to live. A collection is a set of columns on disc, laid out at a fixed width and chunked into numbered files. The whole dataset is held in memory as typed arrays with the same layout, so a read is a walk over memory. The parts shared by every hoster, the local client, the server, sync and the tools, live in Hoster.