Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 13 15:56
    Arkatufus synchronize #5002
  • May 13 14:35
    Aaronontheweb auto_merge_enabled #5012
  • May 13 08:24
    brah-mcdude commented #5010
  • May 13 07:03
    dependabot[bot] labeled #207
  • May 13 07:03
    dependabot[bot] opened #207
  • May 13 07:03

    dependabot[bot] on nuget

    Bump AkkaVersion from 1.4.19 to… (compare)

  • May 13 06:57
    dependabot[bot] labeled #5012
  • May 13 06:57
    dependabot[bot] opened #5012
  • May 13 06:57

    dependabot[bot] on nuget

    Bump Google.Protobuf from 3.16.… (compare)

  • May 13 03:50
    Aaronontheweb labeled #5010
  • May 13 03:50
    Aaronontheweb labeled #5010
  • May 13 03:50
    Aaronontheweb milestoned #5010
  • May 13 02:35
    brah-mcdude opened #5011
  • May 13 01:48
    brah-mcdude commented #5010
  • May 13 01:47
    brah-mcdude commented #5010
  • May 12 23:43
    brah-mcdude opened #5010
  • May 12 22:23

    Aaronontheweb on dev

    Bump AkkaVersion from 1.4.18 to… (compare)

  • May 12 22:23

    Aaronontheweb on nuget

    (compare)

  • May 12 22:23
    Aaronontheweb closed #206
  • May 12 20:47
    Arkatufus assigned #206
Ralf
@Ralf1108
is there a way to specify all actors below users with all children?
and subchildren and grandchildren and so on ....
Vagif Abilov
@object
Hello, now with deprecation of PersistentViews I am a bit lost about capabilities to monitor state changes of persistent actors. We want to build a Web site that visualizes both journals and snapshots, i.e. it will display the flow of state changes across all actors (possibly also state snapshots). I've found a few examples using SingalR but they were limited to receiving events for some specific actors. But is there a way to receive system-wide state changes for persistent actors?
Bartosz Sypytkowski
@Horusiath
@Ralf1108 AFAIK there has been implemented marker interface to mark messages, which are not supposed to break receive timeout. However it may be not included in the latest release.
@object persistent views will be obsoleted in the favor of akka.persistence.query, which will allow to build streams on top of event journals - depending on the journal, you will be able to track mulitple different persistence ids with it
Vagif Abilov
@object
@Horusiath and until Persistence.Query is ported there is no built-in way to track persistence changes across multiple actors? Would you recommend reading journals and snapshots right from the physical data store (i.e. SQL Server) or there are less dirty ways?
Bartosz Sypytkowski
@Horusiath
there is persistent query mechanism for sql-based journals, standard message based, but I'm hoping to obsolete it once streams + persistence query will come out
Ralf
@Ralf1108
@Horusiath thx for the info! can you give me a hint of the name from the marker interface?
Bartosz Sypytkowski
@Horusiath
@Ralf1108 this is the PR: akkadotnet/akka.net#1835 not merged yet
Jeroen de Haas
@dajero
I have created a server-client system with Akka.Remote and I am wondering what the best way is to disconnect a client from the server without seeing DissociatedExceptions in my server's log
Ralf
@Ralf1108
yes... could be that I saw this yesterday.. but didn't remember it correctly :-)
Vagif Abilov
@object
@Horusiath you mentioned "persistent query mechanism for sql-based journals", can you please point me to some docs or examples that use it?
Vagif Abilov
@object
I guess it must be Akka.Persistence.Sql.Commons.
Chris G. Stevens
@cgstevens
Akka.Cluster.Tools question.
I am doing the following and I expect that if I kill off the remote actor that it would trigger the Terminated message but it does not seem to be doing that.
Receive<ClusterManager.SubscribeToManager>(ic =>
            {
                Program.MyActorSystem.Settings.InjectTopLevelFallback(ClusterClientReceptionist.DefaultConfig());
                clusterClient = Program.MyActorSystem.ActorOf(ClusterClient.Props(ClusterClientSettings.Create(Program.MyActorSystem)));
                Context.Watch(clusterClient);
                clusterClient.Tell(new ClusterClient.Send(ActorPaths.ClusterManagerActor.Path, new ClusterManager.SubscribeToManager()));
            });

            Receive<Terminated>(ic =>
            {
                _logger.Info("Address Terminated: {0}", ic.AddressTerminated.ToString());
            });
Kris Schepers
@schepersk
Any idea when akkadotnet/Akka.Persistence.SqlServer#24 will be merged and a new nuget package will be published?
Bartosz Sypytkowski
@Horusiath
@object akkadotnet/akka.net#1306
John Nicholas
@MrTortoise
has anyone run the cluster sample recently? I just grabbed it and it seems liek the protobuff nuget package stuff is fubar ... just me?
John Nicholas
@MrTortoise
the protobuf nuget has no dll in it :/
John Nicholas
@MrTortoise
am i going insane?
Boban Pavloski
@bobanco

@Horusiath do you have any idea why Sink.FromSubscriber gives this error

[INFO][16-Apr-16 14:10:51][Thread 0008][akka://ReactiveRabbit/user/StreamSupervisor-0/Flow-0-0-unknown-operation] Message RequestMore from NoSender to akka://ReactiveRabbit/user/StreamSupervisor-0/Flow-0-0-unknown-operation was not delivered. 1 dead letters encountered.

here is how it's called

          var trailMessages = new List<string> { "message1","message2", "message3"};

            Source.From(trailMessages)
                .Map(
                    msg =>
                        new Message(Encoding.UTF8.GetBytes(msg)))
                .RunWith(Sink.FromSubscriber(connection.Publish(inboundExchange.Name, "")), mat);
btw am porting ReactiveRabbit to .net which is based on akka stream
Boban Pavloski
@bobanco
here is the Subscriber implemenration
       internal class ExchangeSubscriber : ISubscriber<Routed>
    {
        private readonly IModel _channel;
        private readonly string _exchange;
        private readonly AtomicReference<ISubscription> _active = new AtomicReference<ISubscription>();
        private int _publishingThreadRunning = 0;//can have 2 values, 0 means not running, 1 means running.
        private readonly ConcurrentQueue<Routed> _buffer = new ConcurrentQueue<Routed>();
        private int _closeRequested = 0;//can have 2 values, 0 means not requested, 1 means requested.

        public ExchangeSubscriber(IModel channel, string exchange)
        {
            if (exchange.Length >= 255)
                throw new ArgumentOutOfRangeException(nameof(exchange), exchange.Length, "exchange.Length>=255");
            _channel = channel;
            _exchange = exchange;
        }
        public void OnNext(Routed element)
        {
            if(element==null)
                throw new ArgumentNullException(nameof(element));
            _buffer.Enqueue(element);
            var running = Interlocked.Exchange(ref _publishingThreadRunning, 1);
            if (running == 0)
            {

                Task.Factory.StartNew(PublishFromBuffer, TaskCreationOptions.AttachedToParent);//revisit this
            }

        }

        private void PublishFromBuffer()
        {
            Routed element;
            if (_buffer.TryDequeue(out element))
            {
                Publish(element);
            }
            var nonEmpty = _buffer.Count > 0;
            Interlocked.Exchange(ref _publishingThreadRunning, nonEmpty ? 1 : 0);
            if(nonEmpty)
                PublishFromBuffer();
        }

        private void Publish(Routed routed)
        {
            try
            {
                _channel.BasicPublish(_exchange, routed.RoutingKey,
                    Conversions.ToBasicProperties(routed.Message),
                    routed.Message.Body);
                _active.Value.Request(1);
            }
            catch (Exception ex)
            {
                _active.Value.Cancel();
                CloseChannel();
            }
        }

        public void OnSubscribe(ISubscription subscription)
        {
            var sub = _active.CompareAndSet(null, subscription);
            if(sub)
                subscription.Request(1);
            else
            {
                subscription.Cancel();
            }
        }

        public void OnError(Exception cause)
        {
            ShutdownWhenFinished();
        }

        public void OnComplete()
        {
            ShutdownWhenFinished();
        }

        public void OnNext(object element)
        {
           OnNext((Routed)element);
        }

        private void CloseChannel()
        {
            var closedRequested = Interlocked.Exchange(ref _closeRequested, 1) == 0;
            lock (_channel)
            {
                if (closedRequested && _channel.IsOpen)
                    _channel.Close();
            }
        }

        private void ShutdownWhenFinished()
        {
            //        Future {
            //            publishingThreadRunning.single.await(!_)
            //  closeChannel()
            //}
            Task.Factory.StartNew(() =>
            {
                while (true)
                {
                    if (Thread.VolatileRead(ref _publishingThreadRunning) == 0)
                        break;
                }
            }, TaskCreationOptions.AttachedToParent).Wait();
            CloseChannel();
        }
    }
Bartosz Sypytkowski
@Horusiath
@bobanco it's not necessarily an error - it point out that actor on which your flow materializes, is probably dead. Maybe you've closed the actor system before flow has finished? (also another part is that streams are WIP, and if I remember correctly there were some problems with closing streams, detected by testkit)
dilvishjohn
@dilvishjohn
Hi, all. I have a problem to make akka work at latest ASP.NET 5, but there are no dll's fot DNX 5.0 core framework. Is there any workaroud exist about how to fix it?
Roger Johansson
@rogeralsing
no, there are a lot of parts that needs to be ported before akka.net works with .net core ... there is some progress going on, but no where near complete
Vagif Abilov
@object
Saw that 1.0.7 PR has been accepted for Akka.Persistence.SqlServer. That's a great news, I will start using it right away and hope that NuGet package will also be released soon.
Ralf
@Ralf1108
is it possible to connect to actor system via named pipes?
Zetanova
@Zetanova
If an bigger actor needs to make some requests and wait for the response, how to get this roundstrips in some kind of farmated code ?
BecomeStacked(msg =>
                {
                    return OldBecome(msg) || msg.Match()
                        .With<Response>(m =>
                        {

                            UnbecomeStacked();
                        })
                        .WasHandled;                    
                });
whould it plausible to inline the function and how to get the on the Oldbecome ?
How could it be done for multiple requests?
Zetanova
@Zetanova
How i am currently doing things with requestIds, it is getting very fragmented and i think that i would get problems in 12monath to read and navigate in my own code
Jeff Cyr
@JeffCyr
@Ralf1108 There's work in progress to support named pipes in v1.5
Ralf
@Ralf1108
ok cool :-)
would be cool to support scenarios for multi process akka systems without opening a port and hassle with firewall rules
Kris Schepers
@schepersk
indeed..
Aleksandrs
@sonicflare
Can somebody shine a light on what happened to AsyncBehavior.Suspend/AyncBehavior.Reentrant on Receive? I need to do bunch of operations, but i dont want to waste thread on blocking, and Suspend is the thing that im looking for
Jeff Cyr
@JeffCyr
@sonicflare Are you looking for ReceiveAsync<T>(Func<T, Task>)?
AsyncBehavior got dropped a long time ago, only Suspend is supported now, there is an overload of Receive that accepts a Func<T, Task> it have been renamed to ReceiveAsync in 1.0.7
Aleksandrs
@sonicflare
@JeffCyr looks like it, and it does the suspend by default? So while it is waiting for stuff to complete, no other messages for this actor is processes, right?
Jeff Cyr
@JeffCyr
That's right
Aleksandrs
@sonicflare
@JeffCyr thanks!
Jeff Cyr
@JeffCyr
np!
Grzegorz Bernas
@profesor79
hi guys, just found this question on SO is there a way to use app.json .net core with HOCON
eyantiful
@eyantiful
Hi,
Any sample on how to send Actor (Initiating actor in choreography) inside a meesage in Cluster environment?
Thanks
Christian Sparre
@christiansparre
For a monitoring solution for our services (not using clustering), what would be the best way to present a "list/tree" of actors of a local actorsystem. Having each actor respond to a "getchildren" message or is there a way to ask the actorsystem this? Is there a way to traverse the actor tree?
Zetanova
@Zetanova
@christiansparre the get list/tree its the same as to work with system file directories. You need to ask each folder for the child-items. But i dont know if there is a system message for doing it like Akka.Actor.Identity
Arjen Smits
@Danthar
There is no officially supported way of doing this. But there is a hacky one.
Lejdholt
@Lejdholt
Hi, AroundReceive for UntypedActor allways returns true and ReceiveActor inherites from UntypedActor without changing this behavior. Shouldn't ReceiveActor return false for AroundReceive if for some reason the message wasn't handled by a Receive function defined in a ReceiveActor?
Arjen Smits
@Danthar
@christiansparre check out this repo by @rogeralsing https://github.com/rogeralsing/Beacon