question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EventsByTag support

See original GitHub issue

Support EventsByTag query in read journal

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:48 (46 by maintainers)

github_iconTop GitHub Comments

1reaction
scullxbonescommented, Dec 5, 2016

@marcuslinke ok i see what you mean with duplication:

Additionally there could be multiple journal entries within the same timestamp. Which one would be addressed by a specific offset especially if you think of the possibility that an additional event for that timestamp might occur later? In this case we probably have to replay ALL events with that specific offset which may lead to events duplicated in the view.

So on write, we’ll create the timestamp. We can look into a migration in the future to back-propagate this (and potentially add tags, and add insertion order sort to AllEvents), but don’t want to bite off too much now. When a user runs the query they can hold onto the timestamp they care about, and you’re right - it may cause them to see “more events” than they’d like. For this initial release, idempotency/“at least once” will be a requirement for users of EventByTag. It can cause duplication on multiple runs, but not lost data since the only way a user will know the offset is via running EventByTag at least once.

@filosganga I agree, it would only affect those two queries, not recovery. sequenceNr isn’t leaving, that needs to continue to drive recovery - that’s a critical part of akka-persistence behavior.

1reaction
marcuslinkecommented, Dec 5, 2016

@filosganga I agree. This is specific to EventByTag and AllEvents. So it does matter in the context of this issue. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events by tag • Akka Persistence Cassandra - Documentation
It supports: Deleting all events in the tag view for a given persistence id; Re-building the tag view for a persistence id for...
Read more >
akka persistence - EventsByTag support in EventStore
Am using EventStore as the ReadJournal and akka-persistence API , to build a persistent view. The issue am facing is that i do...
Read more >
How do people handle "delayed" events in eventsByTag in ...
Don't use it without setting delayed-event-timeout if you care about retrieving all events. It was probably a mistake to support anything else and...
Read more >
Cassandra Journal: eventsByTag receiving events 5 min after ...
The problem we are facing is that after starting the service and emitting the first event from the EventSourcedBehavior , eventsByTag does ...
Read more >
Support - Events at UCF - University of Central Florida
View events tagged: Support at the University of Central Florida in Orlando Florida. ... Events By Tag: “Support”. Giving and Getting Emotional Support....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found