*Eventually* all events with the given tag.
Note also that that stream is infinite, unlike the “currentEventsByTag”
which is finite and whatever was currently visible by that tag when it was
reading.

—
Konrad `kto.so` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 1 August 2017 at 01:26:27, Moritz Schallaböck (
moritz.schallabo...@agido.com) wrote:

Hi,

I'm wondering if a persistence query running in a sharded environment sees
the events from all shards, or just the "local" shards.

Using the Cassandra Journal Plugin.

Say I have 3 cluster shards, each (for argument's sake) running in their
own VM:
- shard 1
- shard 2
- shard 3

Furthermore I have one persistent actor each:
- shard 1: actor A
- shard 2: actor B
- shard 3: actor C

Now each actor persists an event and tags it:
- shard 1: actor A: persist(Tagged(MyEvent("A"), Set("Tag1"))
- shard 2: actor B: persist(Tagged(MyEvent("B"), Set("Tag1"))
- shard 3: actor C: persist(Tagged(MyEvent("C"), Set("Tag1"))

Now, when I run a persistence query in shard 1:
- readJournal.eventsByTag("Tag1")

Does it see "A", "B", "C"? Or just "A"? Something else entirely?

Thanks
Moritz
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to