Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:12
    IgorFedchenko commented #3998
  • 18:29
    Aaronontheweb commented #3998
  • 18:24
    Aaronontheweb opened #3998
  • 18:19

    Aaronontheweb on fix-readme-logo

    (compare)

  • 17:30
    Aaronontheweb milestoned #3973
  • 16:38
    jaydeboer opened #3997
  • 15:53
    Aaronontheweb synchronize #3973
  • 15:52

    dependabot-preview[bot] on dev

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

  • 15:52

    dependabot-preview[bot] on nuget

    (compare)

  • 15:52
    dependabot-preview[bot] closed #3996
  • 15:52
    Aaronontheweb commented #3996
  • 14:53
    Aaronontheweb commented #3973
  • 12:20
    IgorFedchenko commented #3973
  • 12:17
    IgorFedchenko commented #3973
  • 11:58
    IgorFedchenko synchronize #3973
  • 11:33
    IgorFedchenko commented #3973
  • 11:25
    IgorFedchenko synchronize #3973
  • 07:04
    dependabot-preview[bot] labeled #3996
  • 07:04
    dependabot-preview[bot] opened #3996
  • 07:04

    dependabot-preview[bot] on nuget

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

Bartosz Sypytkowski
@Horusiath
yes. Well, at least it's interesting
Alex Valuyskiy
@alexvaluyskiy
This message was deleted

@Horusiath, I've been trying Akka.Streams, and I have couple of questions. For example I have this Scala code

  override def eventsByTag(tag: String, offset: Long = 0L): Source[EventEnvelope, NotUsed] = {
    Source.actorPublisher[EventEnvelope](EventsByTagPublisher.props(tag, offset, Long.MaxValue,
      refreshInterval, maxBufSize, writeJournalPluginId)).mapMaterializedValue(_ ⇒ NotUsed)
      .named("eventsByTag-" + URLEncoder.encode(tag, ByteString.UTF_8))
  }

1) What should I use, instead of NotUsed? Unit/Unit.Instanse or something else?
2) I should return Source<EventEnvelope, Unit>, but method "Named" returns IGraph<SourceShape<EventEnvelope>, NotUsed>. How to convert SourceShape<T> to T?

Marc Piechura
@marcpiechura
@alexvaluyskiy yep we are using Unit as NotUsed
2 Use Source.FromGraph to cast the graph back into a source
Kris Schepers
@schepersk
@Horusiath Playing with Sharding, I just encountered the following: 2 nodes up, both hosting a region, both processing shard messages. One node leaves cluster, after a few seconds I restart it, it joins the cluster again, but it doesn't receive any shards. The node that didn't shut down keeps on processing all the messages for the entities. So it seems the rebalancing of the shards to the rebooted region doesn't happen?
Bartosz Sypytkowski
@Horusiath
@schepersk rebalancing check is triggered after X seconds, and some specific threshold needs to be reached in order to start rebalancing
in case when the difference between number of shards on two machines is too small
Kris Schepers
@schepersk
10 shards, 2 nodes in my case?
Bartosz Sypytkowski
@Horusiath
also: are you sure, that your cluster node really rejoined?
Kris Schepers
@schepersk
from what I can see in the logging, yes.
Bartosz Sypytkowski
@Horusiath
can you extract some example to reproduce from that?
This is the sample I'm working on..
Bartosz Sypytkowski
@Horusiath
@schepersk I'll managed to run your example, but to verify it, I'll need to find some spare time. Sorry, but it may take a while to find a reason for this. I'll take a look into it after work
Kris Schepers
@schepersk
@Horusiath But you are seeing the same behavior? Thanks for looking into this..
Nicolas Bourbaki
@b0urb4k1
How lightweight are agents?
Zetanova
@Zetanova
Agents or actors?
Nicolas Bourbaki
@b0urb4k1
actors sorry
I was thinking if they are lightweight enough to use them for agents in a multi agent system.
I would assume though that if you would like to do that you would write your own dispatcher for it.
Zetanova
@Zetanova
not big, i little bigger then a normal object, plus some registration in lists
yes, the are very light in this sence
over a count of 100k you would need to think about memory
Nicolas Bourbaki
@b0urb4k1
Ok :)
Zetanova
@Zetanova
but i dont know the exact byte count for each in avg.
i am loading ~1000 per each aggregate root type
and the app has still low memory consumation
messages are short lived and most likly removed on Gen0 GC
Nicolas Bourbaki
@b0urb4k1
Are there any multi agent systems that use Akka.net?
Zetanova
@Zetanova
multi tenant?
Zetanova
@Zetanova
yes, akka.net is perfect for it
Nicolas Bourbaki
@b0urb4k1
But you have shared state in form of the world state.
Zetanova
@Zetanova
or an other actor-model system
world => actor
can be a singleton service t0o, but better an actor
Nicolas Bourbaki
@b0urb4k1
Ok but i guess you need to throw away determinism then.
Zetanova
@Zetanova
not realy
Nicolas Bourbaki
@b0urb4k1
Lets say you wanted to model something like a board game.
Then you need the sequence of actions of several of the actors.
Zetanova
@Zetanova
then the board can sync the steps or a child of board-actor
Nicolas Bourbaki
@b0urb4k1
Oh!
What is the name of the class i need to look up?
Zetanova
@Zetanova
?
ActorBase
most likly
Christian Duhard
@cduhard
If I send a RoundRobin router a PoisonPill.Instance i assume they all get the PoisonPill?
Christian Duhard
@cduhard
are there any examples on how to use GracefulStop correctly?
Aaron Stannard
@Aaronontheweb
@cduhard if you PoisonPill the router the router dies