Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 16:19
    valdisz synchronize #3904
  • 14:58
    Aaronontheweb synchronize #3924
  • 14:58
    Aaronontheweb commented #3922
  • 14:45
    valdisz synchronize #3904
  • 14:43
    valdisz synchronize #3904
  • 14:35
    Aaronontheweb commented #3925
  • 09:51
    cptjazz opened #3925
  • 09:11
    cptjazz opened #3924
  • Sep 20 23:30

    Aaronontheweb on dev

    added ability to support custom… (compare)

  • Sep 20 23:30
    Aaronontheweb closed #3923
  • Sep 20 23:30
    Aaronontheweb closed #3861
  • Sep 20 23:26
    Aaronontheweb opened #3923
  • Sep 20 23:01
    Aaronontheweb commented #3922
  • Sep 20 22:59
    Aaronontheweb closed #3890
  • Sep 20 22:59
    Aaronontheweb commented #3890
  • Sep 20 22:58
    Aaronontheweb synchronize #3922
  • Sep 20 22:58
    Aaronontheweb opened #3922
  • Sep 20 22:21
    Aaronontheweb commented #3905
  • Sep 20 22:21

    Aaronontheweb on dev

    Fixed Akka.Remote.ResendUnfulfi… (compare)

  • Sep 20 22:21
    Aaronontheweb closed #3914
Zetanova
@Zetanova
its getting somehow complicated :(
Yin Zhang
@melcloud
Hi guys. I am revisiting the akka design pattern course. Can any explain to me why the way IdentityWriterActor uses CanProceed is a very weak manner?
Aaron Stannard
@Aaronontheweb
@melcloud
Whoops - typing on mobile
Yin Zhang
@melcloud
:smile:
Aaron Stannard
@Aaronontheweb
That code is naive on purpose
It's just to illustrate a way to implement some sort of consensus model using messages
Yin Zhang
@melcloud
I see.
Aaron Stannard
@Aaronontheweb
It's good enough for non distributed contexts if you add some metadata
Yin Zhang
@melcloud
So if I have a AtLeastOnceDeliveryActor, should I use this to do idempotent check?
Bartosz Sypytkowski
@Horusiath
@Zetanova which part is supposed to take 30min? Only sending the state back or the whole process?
Bartosz Sypytkowski
@Horusiath
Maybe this is obious, but basically each actor playing in the saga is supposed to persist all incoming events.
I don't see, where TaskScheduler should be used.
Hussein Ait-Lahcen
@hussein-aitlahcen
@Horusiath What is the best way to delay the delivery of a message ? ScheduleTellOnce ? I have two actors A and B, a tells B to update, B send back it state, A compute the next time it should update and delay the update message in order to have a constant intervall between updates
cyril andreichuk
@andreichuk
hi. is there any way to set actor's dispatcher? i was not able to do so using HOCON config (i do not use deployment), nor by code (because of the exception i posted here last night). any help?
Bartosz Sypytkowski
@Horusiath
@hussein-aitlahcen you could just schedule interval for updates directly in actor B, and let actor A subscribe to actor B for updates. This way when scheduled tick occurs, B updates it's state and send it to all subscribers
but remember that schedulers have limited resolution, as they work in intervals themselfs (by default it's around 10ms)
@andreichuk my guess is that string, you've provided in dispatcher is invalid, but maybe it's a bug. Could you write an issue on github and describe your case?
cyril andreichuk
@andreichuk
maybe. could you please provide me with an full example of dispatcher configuration?
there are some examples in the docs but they are not full so it's not clear where exactly put dispatcher configuration there
Hussein Ait-Lahcen
@hussein-aitlahcen
@Horusiath Assuming my actor need to be update 60 times per second, can i predict the Scheduler interval (will not be accurate of course) by deducting the 10 ms ?
This is a critical point of my system
Bartosz Sypytkowski
@Horusiath
I know that you can configure the interval, but I'm not sure, how will it behave in intervals lower than 10ms. I don't think, it was designed for high time sensitivity, but for 60 frames/sec it should be sufficient. However if I were you, I would check if it fits your needs
Hussein Ait-Lahcen
@hussein-aitlahcen
So you think that i should do that outside the actor system
Bartosz Sypytkowski
@Horusiath
no, I think that you should measure first ;)
don't be driven by the belief. If you won't measure and stay with built-in scheduler, it may give you some performance problems later. But if it turns out it's sufficient, but you've moved this part outside an actor system, then you may end with unnecessarily complicated solution
cyril andreichuk
@andreichuk
after downloading and debugging the sources i fixed my issue by providing a full path of the dispatcher. like this:
.WithDispatcher("akka.dedicated-dispatcher")
Zetanova
@Zetanova
@Horusiath the process to download the data can take 30min, its an import from the external system. Because this process relays on the read-model for index lookup, maybe should it just be outside? the AR have near the same ImportCommand. It just query the external service for the data and generates a Created+Updated Event. On CreateCommand the AR is creating the external account first and generates the Created Event.
Zetanova
@Zetanova
I moved the process from outside to an actor-process so it can run to the end when the client disconnects and i got a error that the actor "akka.persistence.snapshot-store.sql-server" is not unique!" Its still coming
some race conditions
when i push messages to the AR
Bartosz Sypytkowski
@Horusiath
@Zetanova yes, it's a bug. Could you create an issue for that?
Zetanova
@Zetanova
just looking in to it
how to force the creation of the snapshot extension?
Bartosz Sypytkowski
@Horusiath
create persistent actor with snapshot store configured, and initialize it by sending a message
Zetanova
@Zetanova
Its something related to a Lazy<Extension> that will becreated twice in race condition
Bartosz Sypytkowski
@Horusiath
yes
in scala it was solved as each snapshot store is initialized as akka extension (extensions registration is thread safe) using anonymous classes initialization... but C# haven't got anonymous classes
nonetheless it can be solved quite easily, I've just forgot to think about that
Zetanova
@Zetanova
yes i wrote it
Lazy<>(...,true)
Bartosz Sypytkowski
@Horusiath
thank you good man
Zetanova
@Zetanova
as long as the extension initializion process dont call the same method where the Lazy helper is created and query itself, all will be good.
Thomas Lazar
@thomaslazar
is there a way to find out from an IActorRef what the type of the actual underlying actor is?
Bartosz Sypytkowski
@Horusiath
@thomaslazar nope, there is no correlation there
Thomas Lazar
@thomaslazar
ok. other question. can i somehow convert a IActorRef into a TestActorRef?
i have an actor i want to test. i send it a message and get an IActorRef in return and i just want to make sure that it's actually the actor i want.
Bartosz Sypytkowski
@Horusiath
you could do this for LocalActorRef but first think, if YAGNI
Thomas Lazar
@thomaslazar
well my situation is this. i have an actor A that creates 2 child actors B and C, both are doing stuff with resources. A has messages E/F that are used to return an IActorRef of B or C so code can work with the underlying resources. if certain stuff happens A tells B and C to shut down and when nobody is using them anymore they kill themselves. A creates a new B and C that get handed off to new caller asking message E/F. i just want to test sending message E and F if i get their corresponding B and C types back.
Bartosz Sypytkowski
@Horusiath
it sounds, like you're trying to test implementation (type of an actor) instead of behavior (what actor does). You could just invoke the test scenario. It's like duck typing - if actor behaves like B, it means it's B. If not and it behaves like C, it means, you've invoked C