Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:10
    zbynek001 opened #4000
  • 11:20
    IgorFedchenko commented #3973
  • 11:20
    IgorFedchenko commented #3973
  • 11:18
    IgorFedchenko commented #3973
  • 10:47
    IgorFedchenko synchronize #3973
  • 10:13
    valdisz commented #3921
  • Oct 21 15:57
    Aaronontheweb closed #3877
  • Oct 21 15:57
    Aaronontheweb commented #3877
  • Oct 21 15:56

    Aaronontheweb on dev

    Persistence TestKit documentati… (compare)

  • Oct 21 15:56
    Aaronontheweb closed #3889
  • Oct 21 07:27
    dependabot-preview[bot] labeled #3999
  • Oct 21 07:27

    dependabot-preview[bot] on nuget

    Bump FluentAssertions from 4.14… (compare)

  • Oct 21 07:27
    dependabot-preview[bot] opened #3999
  • Oct 20 17:25
    valdisz synchronize #3889
  • Oct 20 17:17
    valdisz synchronize #3889
  • Oct 20 15:44
    valdisz synchronize #3889
  • Oct 20 09:22
    ismaelhamed commented #3863
  • Oct 19 23:39
    valdisz synchronize #3889
  • Oct 19 23:08
    edvinasz commented #2947
  • Oct 19 13:36
    Aaronontheweb commented #3973
Arjen Smits
@Danthar
System.Diagnostics.Contract stuff is great. Been using it more and more in my own code as well
l3igmike
@l3igmike
is it possible to kill an actor, recreate it somewhere else and include its former mailbox messages?
Aaron Stannard
@Aaronontheweb
@l3igmike Akka.Persistence can do this
backs up its state, but not its messages, to a durable store
Yin Zhang
@melcloud
Morning guys. Is there a way to filter out death watch and heartbeat log message under debug? I want to see all sent/receive messages between two remote nodes, but those heartbeat message are rally annoying! :smile:
Aaron Stannard
@Aaronontheweb
if you're debugging Akka.Remote
or Cluster
one thing I recommend doing is just setting the heartbeat interval way the hell long
so you can stay at a breakpoint for a few minutes without a bunch of failure detectors going off
I have a snippet for that...
akka {          
           log-config-on-start = on
                        actor {
                            provider = "Akka.Cluster.ClusterActorRefProvider, Akka.Cluster"
                        }

                        remote {
                            log-remote-lifecycle-events = DEBUG

                            helios.tcp {
                                transport-class = "Akka.Remote.Transport.Helios.HeliosTcpTransport, Akka.Remote"
                                applied-adapters = []
                                transport-protocol = tcp
                                #will be populated with a dynamic host-name at runtime if left uncommented
                                #public-hostname = "POPULATE STATIC IP HERE"
                                hostname = "127.0.0.1"
                                port = 800
                            }
             transport-failure-detector {
               implementation-class = "Akka.Remote.DeadlineFailureDetector,Akka.Remote"
               heartbeat-interval = 400 s
               acceptable-heartbeat-pause = 300000 s
               monitored-by-nr-of-members = 5
               expected-response-after = 5000 s
             }
                        }            

                        loggers = ["Akka.Logger.Serilog.SerilogLogger, Akka.Logger.Serilog"]

                        cluster {
                            #will inject this node as a self-seed node at run-time
                            seed-nodes = []
                            roles = [lighthouse]
             failure-detector {
               implementation-class = "Akka.Remote.DeadlineFailureDetector,Akka.Remote"
               heartbeat-interval = 400 s
               acceptable-heartbeat-pause = 300000 s
               monitored-by-nr-of-members = 5
               expected-response-after = 5000 s
             }
                        }
                    }
pardon the weird tabbing
Yin Zhang
@melcloud
@Aaronontheweb nice... you kill two birds with one stone... :+1:
Aaron Stannard
@Aaronontheweb
but that lets me debug a cluster for effectively forever
that setting would be terrible to run in production
obviously
Yin Zhang
@melcloud
yeah, for sure. I just need it for development testing
Aaron Stannard
@Aaronontheweb
we have an issue where we're considering automatically doing that if the debugger is attached
but that probably wouldn't fix it if the service you're debugged is connected to a bunch of other ones that aren't
better just to modify the config
let me know if that works
Yin Zhang
@melcloud
By the way, we really need intellisence for akka config!
Aaron Stannard
@Aaronontheweb
yeah, that's a popularly requested one
Yin Zhang
@melcloud
@Aaronontheweb Yeah, that config works well. thanks
Aaron Stannard
@Aaronontheweb
:thumbsup: glad to hear it
Yin Zhang
@melcloud
hi guys, can I use Become in AtLeastOnceDelivery? Is it a bad idea?
Bartosz Sypytkowski
@Horusiath
@melcloud there's nothing bad in that, as long as you handle message confirmations in the new behavior
Yin Zhang
@melcloud
@Horusiath Thanks for that. Can you show me an example how to do Become in AtLeastonceDelivery? It doesn't seem to accept private void method. Cheers
Bartosz Sypytkowski
@Horusiath
@melcloud probably it works on canonical Receive signature which is bool Receive(object msg)
where returned flag should be true if message was considered handled.
Yin Zhang
@melcloud
Ah, of course. Silly me. Thanks... been a long day...
Bartosz Sypytkowski
@Horusiath
np ;)
Pawel Kasperek
@silentnull
Hi, as F# developer I used Mailbox Actor system. Last time I'm looking to Akka. Maybe my question is stuppid, but I can used all Akka.NET features in F# ?
Bartosz Sypytkowski
@Horusiath
@silentnull yes, but in general F# API is more specific - closer to FP, and not all plugins are adjusted to this paradigm.
sometimes some wrapper over OO might be needed
Pawel Kasperek
@silentnull
@Horusiath Thank you for answer, that I'm starting learning Akka in F# :) . Maybe I will convert some plugins to F#, because sometimes is difficault use OO in FP.
Zetanova
@Zetanova
Yes, debugging is a horror in akka.net
Arjen Smits
@Danthar
Hallmark of async applications
Although with Akka its alot easier to test and debug your Actors in isolation.
John Nicholas
@MrTortoise
is there a way to get a timestamp on logging by default?
Roger Johansson
@rogeralsing
@MrTortoise There is a timestamp on logging already, is there something specific you mean?
Hussein Ait-Lahcen
@hussein-aitlahcen
@Horusiath Is there a way to ensure that a specified actor get executed in the same thread update after update ?
John Nicholas
@MrTortoise
@rogeralsing there is sorry, i meant much higher resolution ... seconds is a bit course grained.
Bartosz Sypytkowski
@Horusiath
@hussein-aitlahcen depending on your needs, you may define actor props with non-default dispatchers. Pinned one will give your actor while separate thread, synchornized one will use UI thread to execute you actor. Alternativelly you could use fork-join dispatcher two define separate thread pool for an actor (which could consist of 1 thread too)
John Nicholas
@MrTortoise
@hussein-aitlahcen http://getakka.net/docs/Dispatchers ... also here has an example of what you asked for https://github.com/petabridge/akka-bootcamp/tree/master/src/Unit-2
Jared Lobberecht
@Jared314
is there a way to have multiple hocon sections in the web.config with inheritance?
Roger Johansson
@rogeralsing
@MrTortoise ah, yes, I have a PR for that to support this akkadotnet/akka.net#1367
I need to add some tests for it to be merged first
but that will allow you to change how the logging templates are presented
John Nicholas
@MrTortoise
oh cool thats what i want ;) thanks ill keep an eye on that then, thats cleaner than what i'm doing