Skip to content

Incorporate subleveldown, transaction pattern, and serialize encrypt into all subdomains #187

@joshuakarp

Description

@joshuakarp

Currently our subdomains use a conglomerate of different variations of leveldb, encryption, and control of actions on the database. In the recently introduced ACL subdomain, the expected use of these has been implemented. We can use this as a framework for how we should structure the other subdomains.

  • Incorporate subleveldown: usage of a top-level database for the entire subdomain, breaking down into lower levels for other database usages in that domain. For example, the gestalts subdomain previously used a prefixed key to specify separate levels in the database. This has recently been changed to also use subleveldown. The same should be done for all other subdomains. In the future, this could also potentially allow us to provide a single leveldb for all domains, and simply separate the subdomains (gestalts, nodes, etc etc) into separate subleveldowns. This would allow us to perform cross-domain transactions and atomic operations.
  • Transaction pattern: see ACL source
  • Serialize encrypt: see ACL source (@CMCDragonkai can also comment on these latter 2)

Domains to be refactored:

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions