These are chat archives for petabridge/akka-bootcamp

18th
May 2017
chipdice
@chipdice
May 18 2017 20:17
Using DistributedPubSub, is there a way for the publisher to know when a subscription is created? I'd like to send out an initial set of data to the subscriber when they subscribe
Aaron Stannard
@Aaronontheweb
May 18 2017 20:18
@chipdice not that I know of - the bus goes in one direction
but I imagine that the problem you're trying to solve is the "late subscriber" issue
allowing a new subscriber to catch up when it connects
chipdice
@chipdice
May 18 2017 20:18
Can a publisher also subscribe to a different topic?
Aaron Stannard
@Aaronontheweb
May 18 2017 20:19
yeah, that's what I was going to recommend
to send a message to a publisher that is subscribed to some sort of topic, and use that to request the "current" data from that publisher
so you can get caught up on the current state and then let the pub-sub bit propagate the newer changes from that point in time forward
chipdice
@chipdice
May 18 2017 20:21
ok, I'll look at that, thanks
Aaron Stannard
@Aaronontheweb
May 18 2017 20:24
no problem