Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.6 KB

File metadata and controls

33 lines (19 loc) · 1.6 KB

Temporal Journey

This journey is an exploration of time range data using history tables in a scenario where micro-services (PostgreSQL database) rely on logical replication to an eventually consistent canonical database.

The desired solution would allow for history tables to be automatically dealt with in the canonical database through temporal_tables & trigger magic and logical replication.

Something like this:

Micro-Services Logical Replication

Micro-service developers have enough on their plate as it is than to have to worry about how they are going to manage temporal data, and this problem is made even more complex in that what most regulated environments require is actually bi-temporal data (validity & change history) to comply with Regulator demands for immutable records of transactions, whilst business needs the ability to make corrections even to historic "immutable" data.

Thus the journey depicted in the graphic:

Temporal Journey

and just in case ...

Final Word

The end of this journey, is just the beginning of another for others, for .e.g. to look into large temporal table problems with database sharding, or using external tables to distribute the data etc.


Temporal Journey, Copyright © 2019, Bank-Builder

Temporal Journey is licensed under a Creative Commons Attribution 3.0 Unported License.