Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 13 22:04
    Aaronontheweb synchronize #4032
  • Nov 13 20:19
    IgorFedchenko commented #4022
  • Nov 13 20:17
    IgorFedchenko commented #4022
  • Nov 13 20:17
    IgorFedchenko synchronize #4022
  • Nov 13 20:07
    Aaronontheweb commented #4022
  • Nov 13 20:02

    Aaronontheweb on nuget

    (compare)

  • Nov 13 20:02

    Aaronontheweb on dev

    Bump Microsoft.NET.Test.Sdk fro… (compare)

  • Nov 13 20:02
    Aaronontheweb closed #4033
  • Nov 13 20:02
    Aaronontheweb commented #4032
  • Nov 13 16:38
    Aaronontheweb commented #4022
  • Nov 13 16:37
    Aaronontheweb commented #4022
  • Nov 13 16:25
    IgorFedchenko synchronize #4022
  • Nov 13 16:25
    IgorFedchenko synchronize #4032
  • Nov 13 16:08
    IgorFedchenko commented #4022
  • Nov 13 12:50
    IgorFedchenko commented #4032
  • Nov 13 06:50
    dependabot-preview[bot] labeled #4033
  • Nov 13 06:50

    dependabot-preview[bot] on nuget

    Bump Microsoft.NET.Test.Sdk fro… (compare)

  • Nov 13 06:50
    dependabot-preview[bot] opened #4033
  • Nov 12 22:40
    Horusiath commented #4022
  • Nov 12 22:03

    dependabot-preview[bot] on nuget

    (compare)

Finn Neuik
@finnneuik_twitter
yep, although was planning to go through the pluralsight courses first
Marc Piechura
@marcpiechura
👍
Aaron Stannard
@Aaronontheweb
@finnneuik_twitter imho, just do the bootcamp
the pluralsight courses are a little off
based on some feedback I've gotten from folks who took them and did my advance training
your mileage may vary though
artem-karnaukh
@artem-karnaukh
hey im trying to dip into akka.cluster sharding and get the following error when trying to send a message to a shard actor: 2016-05-31 22:26:35.0691|WARN|Akka.Cluster.Sharding.ShardRegion|Trying to register to coordinator at [user/sharding/UserCoordinator/singleton/coordinator], but no acknowledgement. Total [3] buffered messages.
is there any quick fix for it?
Sean Gilliam
@sean-gilliam

@sean-gilliam I found this while working on Cluster stuff tonight and thought you'd get a laugh

@Aaronontheweb lol. GhostDoc is the bane of my existence.

Aaron Stannard
@Aaronontheweb
ping @Horusiath about that @artem-karnaukh
Arjen Smits
@Danthar
sqlserver persistence 1.0.8 has just been pushed, should be available on nuget shortly
Aaron Stannard
@Aaronontheweb
@Danthar :+1: ty sir - that should solve the issue for you @object
Aaron Stannard
@Aaronontheweb
@/all any strong opinions on using or not using System.Diagnostics.Contracts in all Akka libraries going forward?
been going through some core Akka stuff today and saw that we have at least 3 different ways of doing Debug assertions now
some custom exceptions, Debug.Assert
I'm in favor of just standardizing all of this on Code Contracts
the tooling for it is great
among other things
qwoz
@qwoz
Any trick to sending email from within an actor? I'm using SMTPClient and I'm temporarily abusing NUnit a little to actually send out emails for real from within my actor as part of the test as a quick way of verifying the contents are what I expect (I'll fake the email send later). The problem is that I get an SMTPException with an inner exception of ThreadAbortedException.
Aaron Stannard
@Aaronontheweb
@qwoz the ThreadAbortedException usually comes from the test runner
when cleaning up the actors
when I've had to do this stuff before I just had an actor who would queue "email messages" out onto a queue
that would get scooped up by another process and delivered in batch
but that was kind of a special case with how I had to deliver them
(wasn't really over email - just a similar notification system)
what I would do in your case
is create a wrapper around the SMTPClient
can be a thin one
and then unit test with a mock / fake version of that wrapper class
that way you're not live-firing emails during testing
qwoz
@qwoz

hm... I'm using SmallestMailboxPool over the actor that sends out emails to have a bunch available. That actor simply does:

Receive<Email>(email => // SMTPClient stuff here );

so I'd think it wouldn't actually finish and clean up the actor prior to that call completing.

Aaron Stannard
@Aaronontheweb
is the SMTP connection persistent?
or is it something you need to open / close per-request
qwoz
@qwoz
not persistent... it connects to the server for each email send.
Aaron Stannard
@Aaronontheweb
got it
yeah I'd just have the actor fire up a new client on each request like you're doing then
qwoz
@qwoz
so this is probably some NUnit incompatibility that I'll just need to work around by mocking it for now. I wanted to be able to see in my email account that the email is actually formatted the way I want since the piece that actually uses this isn't fully implemented yet.
the joys of prototyping :smile:
Alex Achinfiev
@aachinfiev
@Aaronontheweb does using code contracts put any constraints on cross platform compatibility? I.e running on mono.
Aaron Stannard
@Aaronontheweb
not as far as I know
we use them in NBench / Helios / DotNetty
all of those can run on Mono
hidavidpeng
@hidavidpeng
Hi I'm using the Supervisor to catch the exception. But How can I get the message in Supervisor so that I can re
Hi I'm using the Supervisor to catch the exception. But How can I get the message in Supervisor so that I can re-read the message again? thank you.
@Silv3rcircl3 thank you. i read it later. I'm writing the demo with books.
Bartosz Sypytkowski
@Horusiath
@artem-karnaukh which version of Akka.Cluster.Sharding are you using? Also what steps have you made before an error occurred (maybe hard/graceful shutdown of a node)?
Peter Bergman
@peter-bannerflow
@Aaronontheweb reading the documentation on Akka.Cluster in the web crawler example project, in the section on ASP.NET integration (https://github.com/petabridge/akkadotnet-code-samples/tree/master/Cluster.WebCrawler#best-practices-for-aspnet-and-akkanet-integration) the router is created with a RemoteJobActor. But that don't match the actual code in the repo, where the router is created with Props.Empty (https://github.com/petabridge/akkadotnet-code-samples/blob/master/Cluster.WebCrawler/src/WebCrawler.Web/Global.asax.cs#L23). Maybe the readme should be updated to reflect this to avoid confusion
artem-karnaukh
@artem-karnaukh
@Horusiath hey, thanks for the response. I ve just updated from 1.6 to the latest beta and everything works just fine. Thanks a lot for the amazing sharding module.
Peter Bergman
@peter-bannerflow
I have some questions about Akka.NET and cluster routers. Hope someone can help me clear things up...
  1. As far as I understand it, in order to pass messages between nodes in a cluster, the message must go through a a cluster-aware router. Correct?
  2. And for that I can either use a group or pool router. Difference is that the group router sends the mesasge to predifned routees that might or might not exist at the target node. The pool router on the other hand deploys its routees on the target node. Correct?
  3. For deciding where to route message (and in case of pool router, deploy routees), the use-role property in the cluster part of the deployment config is used. Correct?