DACI: How to implement a repository with history?


Status

Impact

DriverChris Grote 
Approver
Contributors
InformedWho should be informed of this decision?
Due date
OutcomeWhat did you decide?



Tips and info

Contributor? Add your recommendation and reasoning here.


Contributors: I am seeking the right people to get involved in the decision. Add your comments to this page, let's get the conversation started.

Please add:

  • The people directly impacted by this so we can include them.
  • Any references to previous work and investigations that we can leverage.
  • Any constraints and challenges we need to consider to make this decision and following action plan.
  • Any additional options we should consider before making the decision.


Background

A common scenario we come across with almost all metadata repositories we have seen is that they lack the ability to store historical information about metadata and respond to point-in-time inquiries. While Egeria's type system and APIs have been built from the beginning to support such history, we have not yet implemented a backend storage option that implements history.

Considering this comes up frequently as a common need, even to augment existing metadata repositories, providing such a historical store for metadata could be a somewhat narrow but nonetheless extremely common adoption point for Egeria.

Current state

We are currently considering implementation options for an initial approach to such a repository.

Data for decision support

  • Identification of potential technologies to use as the backing store for such a repository.

Options considered

 


Option 1: bi-temporal RDBMSOption 2: bi-temporal graphOption 3: search index

Description


Using a bi-temporal relational database like DB2

Using a bi-temporal graph store like Crux

Using a search index like Elastic

Rollout plan





Pros and cons


Handles historical information natively at the storage layer, so should be simpler to implement point-in-time inquiry.


Takes a new approach to a backing store (relational) compared to our existing implementations (graph-based)


We are unaware of any open source, native bi-temporal RDBMS, so this would put a dependency on licensed commercial software.


Requires a fixed schema, which raises questions about how to both handle efficient queries (not storing things as unqueryable blobs) but also manage history when the type system itself (schema?) may have changed over the course of that history (ie. deprecated attributes and types)



Handles historical information natively at the storage layer, so should be simpler to implement point-in-time inquiry.


Close alignment with our current repository approaches that are more graph-focused than relational.


Provides a simple option to run in an embedded capacity, which could be useful for demonstration purposes (not requiring additional infrastructure and components).


Implemented using pluggable characteristics for its own backends, including both open source and commercial options.


It sounds like each document in Crux is essentially schema-less (tuples / triples-based), so it may be feasible to store multiple versions of a type across the history of a given instance of metadata (question)



Risks




The resource requirements that might be necessary for a "true production" rollout are unclear, or the volume to which it can scale. (We heard mention of "16 TB" (sounds plenty) but also "10 million triples" (with history, and one triple per attribute value, per instance, this sounds small?)



Estimated cost and effort






FAQ

Q1.

A1.


References



RelevanceLink
Original GitHub issue https://github.com/odpi/egeria/issues/2545
Discussion with Crux team2020-11-27 Meeting notes









Follow-up action items

  • Type your task here. Use "@" to assign a user and "//" to select a due date.