These are chat archives for akkadotnet/akka.net

19th
Sep 2016
Vagif Abilov
@object
Sep 19 2016 07:25
Good morning (or whatever depending on wherever you are). We just discovered that our system was split into small processes somewhat naively in regards to persistent actors: the same persistent id received events in two different processes. And of course this got us into a trouble. However it also raised a question about best deployment practice: apart from remote/cluster scenario is an Akka system assumed to live in a single process? And is there anything except persistent actors that has process affinity?
Bart de Boer
@boekabart
Sep 19 2016 07:42
There is always, even in cluster/remote, one 'actorsystem' instance per process (more is not typically useful).
where each actor runs is part of your 'scalability design'
You'll have to make sure, of course, that of persistent actors, you only have 1 instance per cluster, indeed. Cluster.Tools has a singleton helper for that
Vagif Abilov
@object
Sep 19 2016 07:44
Thanks @boekabart
Bartosz Sypytkowski
@Horusiath
Sep 19 2016 08:45
@object @boekabart keep in mind that cluster singleton is designed for small number of instances. For a large numbers (like DDD aggregates) cluster sharding is a way to go.
Maciek Misztal
@mmisztal1980
Sep 19 2016 09:30
@mmisztal1980 fixed it! applause
Kevin McFarlane
@kevinmcfarlane
Sep 19 2016 13:07
@corneliutusnea I'm keeping an eye on Pony. Always interesting to have an awareness of what's going on elsewhere.
Alex Achinfiev
@aachinfiev
Sep 19 2016 13:57
In 1.1 Akka upgrade is ClusterEvent.CurrentClusterState no longer needed or have been replaced with another property?
Peter Bergman
@peter-bannerflow
Sep 19 2016 15:02
Using Akka.TestKit, when sending messages to actors under test, the sender is a TestActor created in the unit test, can I get hold of an IActorRef to this actor from within the unit test somehow? Self doesn't seem to exist within the context of the test
Marc Piechura
@marcpiechura
Sep 19 2016 15:08
@peter-bannerflow there should be an TestActor property
Peter Bergman
@peter-bannerflow
Sep 19 2016 15:08
Oh nice
Thanks
For perf obsessed crowd
Aaron Stannard
@Aaronontheweb
Sep 19 2016 20:03
@aachinfiev it's still there
@voltcode saw that this morning - hopefully that means someone will give that tool a facelift
voltcode
@voltcode
Sep 19 2016 20:06
Haha well deserved
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:06

@Aaronontheweb If I try to subscribe to it using Cluster.Subscribe as

Cluster.Subscribe(Self, ClusterEvent.InitialStateAsEvents, new[]
            {
                typeof(ClusterEvent.IMemberEvent),
                typeof(ClusterEvent.IReachabilityEvent),
                typeof(ClusterEvent.IClusterDomainEvent),
                typeof(ClusterEvent.CurrentClusterState)
            })

I get a runtime exception saying:
Exception during creation ---> System.ArgumentException: Subscribe to IClusterDomainEvent or subclasses, was [IMemberEvent, IReachabilityEvent, IClusterDomainEvent, CurrentClusterState]

Aaron Stannard
@Aaronontheweb
Sep 19 2016 20:06
ah, I see
CurrentClusterState can't be subscribed to - it's just given you to automatically when you subscribe the first time
you can also always query it via Cluster.CurrentClusterState
it's available as a volatile property on the Cluster itself
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:07
So subscribing to the rest events is sufficient?
Aaron Stannard
@Aaronontheweb
Sep 19 2016 20:07
yep
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:07
OK.. Good
Aaron Stannard
@Aaronontheweb
Sep 19 2016 20:07
the current cluster state is a snapshot
not a recurring event
if you catch my drift
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:08
yes
Aaron Stannard
@Aaronontheweb
Sep 19 2016 20:12
man, I love having Mono builds now - the build chain runs significantly faster there due to the shorter spin-up time for Linux VMs
only have them on one of my personal branches
but should have them for the entire project soon
once #2311 is merged
voltcode
@voltcode
Sep 19 2016 20:13
It's fast tho
Oops
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:18
Has anyone run into an issue with Test projects failing to find Newtonsoft.Json 7.0.0 dependency while having 8.0.3 installed as a dependency in all of the projects? It seems to occur only in Test project. I tested this on both 1.0.8 Akka and 1.1.1 and in both cases when we try to startup, Akka.Serialization.NewtonsoftJsonSerializer crashes with errors of not finding the version 7.0.0. Our project are using Project.json and Nuget 3.
Damian Reeves
@DamianReeves
Sep 19 2016 20:19
I had that issue and in the end had to delete my obj and bin folders and the project.json.lock files and retry
Alex Achinfiev
@aachinfiev
Sep 19 2016 20:24
@DamianReeves That doesn't seem to help.. project.json.lock shows explicit 7.0.1 version rather than range. Is that because Akka itself using packages.config with 7.0.1 specified and nuget 3 remaps it to a fixed locked version?
Damian Reeves
@DamianReeves
Sep 19 2016 20:25
oh. I missed the fact that I also added an explicit reference to version 9.0.1 of json.net
And for me it was ask for 6.x.x (some version of 6)
Corneliu
@corneliutusnea
Sep 19 2016 21:48
@jadhavajay
Corneliu
@corneliutusnea
Sep 19 2016 21:55
@Aaronontheweb Any chance you guys hold your webminars at a different time than 8AM your time which is 1AM my time :|
Aaron Stannard
@Aaronontheweb
Sep 19 2016 21:55
@corneliutusnea I tried as hard as I could to find a time that would work for everyone for this one
but yeah :(
turned out it wasn't feasible to do one that would work for USA, Europe, and Australia
good news though: anyone who signs up for that webinar will get the recording afterwards
not the live thing, but still
going to announce that on social media on Wednesday
wanted to give everyone on the Petabridge mailing list a chance to grab a spot first
this one is kind of an experiment
Aaron Stannard
@Aaronontheweb
Sep 19 2016 22:01
the content is a combination of presentations I've done this year, but doing a free webinar on GoToWebinar on the subject
is new
goal is to help people learn about Akka.Cluster and the business case for it as well as understanding, broadly, how the technology works
I get a lot of emails from people who go through bootcamp asking for help to sell their managers on it
had a ton of signups for this already, might need to buy a bigger GoToWebinar subscription if we do this regularly lol
akkadotnet/akka.net#2310 is ready for review
it's pretty cut and dried
fixed the configuration issue that made clustered group routers load the incorrect number of routees
working on debugging some of the Akka.Cluster.Tools specs... although considering switching off of that to give Wire's build system some love
Yin Zhang
@melcloud
Sep 19 2016 22:05
@Aaronontheweb Glad for the recording. Doing it now, not going to get up at 1:30 AM. :tongue:
Aaron Stannard
@Aaronontheweb
Sep 19 2016 22:05
lol
I'm wondering if Mailchimp is under-reporting the number of Kiwis and Aussies on our mailing list
made it seem like there's 50 of you guys
I mean, I had substantially more people than that attend my talk at NDC Sydney 6 weeks ago
so I'm not sure I believe that lol
Yin Zhang
@melcloud
Sep 19 2016 22:07
surely we should have more. Considering, Youi, TAL, domain.com.au uses this. Maybe just one company account for all developers. lol
Aaron Stannard
@Aaronontheweb
Sep 19 2016 22:08
to be fair, Mailchimp also made it seem like the west coast of the USA only had like 50 people
whereas Mountain Time (Colorado, Utah, etc) had 2000ish
which I have a hard time believing
Yin Zhang
@melcloud
Sep 19 2016 22:09
@Aaronontheweb haha. Maybe we all use VPN to hide our identity
Aaron Stannard
@Aaronontheweb
Sep 19 2016 22:10
N+1 error
;)
or even more likely: daylight savings error