replicase / pgcapture

A scalable Netflix DBLog implementation for PostgreSQL
Apache License 2.0
220 stars 31 forks source link

feat: add server time info to the pg source checkpoints #61

Closed benjamin99 closed 2 months ago

benjamin99 commented 2 months ago

Description

The PR added the additional server time info to the checkpoints generated by the pg source, so the application could use the timestamp info to check if it is continuously consuming the events (including the KeepAlive messages) from the pg source.

One of the usage of such the feature is to help setting up the readiness probe in the k8s deployment.

rueian commented 2 months ago

Hi @benjamin99, cool!

How would you use the ServerTime?

benjamin99 commented 2 months ago

Hi @benjamin99, cool!

How would you use the ServerTime?

Hi, just added more context to the PR to describe the intended usage of the server time info.