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-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:
and just in case ...
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.

