Skip to content

Implement approximate time to latest in Kinesis Indexing Service #6739

@jsun98

Description

@jsun98

Kinesis Indexing Service (#6431)

Kinesis records have a ApproximateArrivalTimestamp as a server side timestamp, which can be used to approximate the time from the latest record in the Kinesis stream. This is similar to Kafka's offset lag. This should be implemented in the protected void scheduleReporting(ScheduledExecutorService reportingExec) method of KinesisSupervisor

Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp, that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side time stamp, whereas a client-side time stamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with PutRecords). The time stamp has millisecond precision. There are no guarantees about the time stamp accuracy, or that the time stamp is always increasing. For example, records in a shard or across a stream might have time stamps that are out of order.

see also
https://aws.amazon.com/about-aws/whats-new/2015/09/amazon-kinesis-server-side-timestamp/
https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions