← Back
Home › Systems › Consumer applications

ebook-platform

e-book store and reader: EPUB/KF8 reflowable layout, DRM, e-ink waveforms and refresh, cross-device position and annotation sync, self-publishing pipeline, subscription lending

Kindle/KDP, Apple Books, Kobo

SystemTechniques · 18Primitives · 56 ebook-platform CRDTsdistributed · medium: Data types whose replicas accept writes independently and always converge by merging, with no coordination: counters, sets, maps, registers, text.›Incremental sync cursorsdistributed · medium: The client keeps one opaque token; each pull returns only the changes after it plus the next token, so sync cost scales with what changed, not with the dataset.›Offline mutation queuedistributed · medium: Apply actions locally at once and queue them durably; on reconnect replay the queue idempotently, then re-apply unconfirmed ones on the server state.›Inventory reservationfinance · medium: Reserving stock with TTL holds, release on timeout and no overselling under contentionBlock inline layoutgraphics · medium: CSS box model: block formatting, inline formatting contexts, line boxes, floats and marginsCss cascade inheritancegraphics · medium: Resolve computed styles: origin and specificity ordering, inheritance, custom propertiesHtml parsinggraphics · medium: WHATWG HTML tokenizer state machine and tree construction with error recoveryUnicode line breakinggraphics · low: UAX 14 line break opportunities plus hyphenation hooksUnicode text tokenization for searchsearch-sort · low: Turn multilingual text into index terms: segment words (UAX 29 style, CJK bigrams), normalize, case-fold and accent-fold, identically at index and query time.›Text position encodingcompilers · low: Store byte offsets, convert to (line, column) on demand with a line-start table and binary search, and count columns in the unit the peer negotiated.›Rights chain share resolutioneconomics · low: Resolve each party's royalty share by multiplying split percentages through the chain of rights holders, by territory and periodDamage trackinggraphics · low: Track dirty rectangles so each frame repaints and recomposites only what changedE ink waveform refreshgraphics · low: E-paper drive waveforms, partial vs full refresh, ghosting control and temperature compensationFont rasterizationgraphics · low: TrueType/CFF outline parsing and anti-aliased glyph rasterization with hinting/cachingHalftoning screeningmedia · low: Convert continuous tone to dots: ordered, error-diffusion and stochastic screens with dot-gain compensationHTTP range requestsnetworking · low: Ask for byte offsets with Range and get a 206 slice back; the standard way to resume, seek and read big remote files piecewise.›Hardware backed keystoresecurity · low: Non-exportable keys in Secure Enclave, StrongBox, TPM: generation, use policies, biometric gatingXML Streaming Parserstorage · low: Tokenize XML into start, text and end events in constant memory, so a few fields can be extracted from huge, broken or hostile documents.›Fractional indexingdistributed · low: Give every list item a sortable string key and generate a new key strictly between its neighbours, so a move or insert writes one row.›Lamport clocksdistributed · low: One integer per process, max-plus-one on receive; gives a total order consistent with causality using 8 bytes per timestamp.›Vector clocksdistributed · low: One counter per node; comparing two vectors tells whether events are ordered or concurrent, which is exactly what conflict detection needs.›Message sequence numbersdistributed · low: A per-stream counter on every message lets the receiver detect loss, duplicates and reordering, ack cheaply and resume after reconnect with "send from N".›Cursor paginationnetworking · low: Keyset/opaque-cursor pagination for stable incremental reads from APIs and tables+ 11 more techniques+ 40 more primitives

Similar systems

Share the most building blocks with this one.