Sorry, so the discussion I think can be brought back here:
In testing the shopping-cart sample, it does seem that kafka messages are pretty instantaneous, however, my application seems to be plagued by the issue with akka-typed issue that leads to the EventsByTagStage to start at the default beginning (2016-02-25 it seems):
2:06:41.427 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.426UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-33}] - [4e24c6f2-7621-431a-81b9-cf6f5a663e92]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent9] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.427 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.427UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-35}] - [80a96a19-6983-4894-b192-fa5fc73c1e5e]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent6] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.430 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.429UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-7}] - [2fe0be83-bb94-43bf-9fbf-f24e0b32fac6]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent1] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.431 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.430UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-34}] - [c7c94fca-f9c8-4a0d-ab12-bdcfceb51050]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent2] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.433 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.432UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-18}] - [63ef02f9-398b-4ba4-b06f-ae25bd398300]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent5] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.434 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.434UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-30}] - [b7991953-26d3-4549-a08d-69b09b425176]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent4] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.438 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.436UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-20}] - [eabd8cc3-8c25-4e2b-a949-960953fa60ce]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent7] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.441 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.441UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-31}] - [ce3a7e7f-2bfc-4602-b1e5-ba0a22665737]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent8] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.444 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.444UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-32}] - [8a184bd8-1f37-4084-902a-d92093f3f988]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent0] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
22:06:41.445 INFO akka.persistence.cassandra.query.EventsByTagStage [{akkaAddress=akka://systemofadownload-versions-impl-application@127.0.0.1:62958, akkaSource=EventsByTagStage(akka://systemofadownload-versions-impl-application), akkaTimestamp=05:06:41.444UTC, sourceActorSystem=systemofadownload-versions-impl-application, sourceThread=systemofadownload-versions-impl-application-akka.actor.default-dispatcher-19}] - [d3533546-8acc-49f5-ae16-7ea4b5efb31f]: EventsByTag query [org.spongepowered.downloads.versions.api.event.VersionedArtifactEvent3] starting with EC delay 5000ms: fromOffset [b67b4000-db52-11e5-8080-808080808080 (2016-02-25 00:00:00:000)] toOffset [None]
The problem that the issue has laid out is that the akka-typed docs do mention configuring the initial offset with the following in the application.conf (I re-tested today with today’s date):
akka.persistence.cassandra.events-by-tag.first-time-bucket = "20210714T00:00"
but still, with that line in all of my application.conf
's I can’t seem to get the EventsByTagStage to start at an appropriate time.