janjaali opened a new issue, #1761: URL: https://github.com/apache/pekko/issues/1761
# Use case As of now, we already have the capability to derive the source of events using `CurrentEventsByPersistenceIdQuery`, limited by `fromSequenceNr` and `toSequenceNr`. Using this functionality to, for example, derive the last two events requires knowing the last known sequence number. # Idea Idea would be to have similar to other `ReadJournal` inheriting traits a new trait `CurrentLastKnownSequenceNumberByPersistenceId` that can be implemented by certain plugins, e.g. pekko-persistence-jdbc. The new trait `CurrentLastKnownSequenceNumberByPersistenceId` would have similar to other `ReadJournal` inheriting traits a single method to derive the last known sequence number for a given persistence id. Deleted events should be ignored. It must be determined if returning `None` or `0` for unknown persistence ids is better suited (looking at Java interop). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org