Block Storage Specification (draft)
Introduction
Purpose:
This document aims at providing a specification for a persistent storage of blocks for the BlockDAG use case.
References:
Jira Issue: https://rchain.atlassian.net/browse/CORE-754
Definitions:
Scope
Objectives & goals:
Non-goals:
refactor RSpace so that the projects share code.
To Be Determined
Use Cases
storing blocks (put)
retrieving blocks (get)
lookup of blocks (lookup). seems to be same as 2.
view the whole db asMap
Design Considerations
Interfaces
System Interface
Hardware Interface
The LMDB instance needs to be able to read and write to a file.
Software Interface
And instance:
Usage example:
User Interface
None. We are backend developers. We hail the matrix, and the matrix speaks to us.
Communications Interface
System Overview
Provide a description of the software system, including its functionality and matters relating to the overall system and design. Feel free to split this up into subsections, or use data flow diagrams or process flow diagrams.
Limitations
Assumptions and Dependencies
Architectural Strategies
Describe any design decisions and/or strategies that affect the overall organization of the system and its higher-level structures. These strategies should provide insight into the key abstractions and mechanisms used in the system architecture. Describe the reasoning employed for each decision and/or strategy (possibly referring to previously stated design goals and principles) and how any design goals or priorities were balanced or traded-off. Such decisions might concern (but are not limited to) things like the following:
Use of a particular type of product (programming language, database, library, etc. ...)
Reuse of existing software components to implement various parts/features of the system
Future plans for extending or enhancing the software
User interface paradigms (or system input and output models)
Hardware and/or software interface paradigms
Error detection and recovery
Memory management policies
External databases and/or data storage management and persistence
Distributed data or control over a network
Generalized approaches to control
Concurrency and synchronization
Communication mechanisms
Management of other resources