Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:46
    Aaronontheweb auto_merge_enabled #5404
  • 14:46
    Arkatufus commented #5318
  • 14:41
    Arkatufus synchronize #5404
  • 14:40
    Arkatufus synchronize #5404
  • 14:38
    Arkatufus auto_merge_disabled #5404
  • 09:08
    Zetanova synchronize #5403
  • 05:01
    to11mtm commented #5408
  • 04:41
    BradKnowles commented #5395
  • 04:06
    BobbyMorris edited #231
  • 01:55
    to11mtm commented #5408
  • 00:45
    to11mtm commented #5407
  • Dec 01 23:43
    Arkatufus commented #5404
  • Dec 01 23:41
    Arkatufus synchronize #5404
  • Dec 01 23:33
    Aaronontheweb labeled #231
  • Dec 01 23:33
    Aaronontheweb assigned #231
  • Dec 01 23:01
    Aaronontheweb auto_merge_enabled #5404
  • Dec 01 23:01
    Aaronontheweb synchronize #5404
  • Dec 01 23:01

    Aaronontheweb on dev

    changed API doc root link back … (compare)

  • Dec 01 23:01
    Aaronontheweb closed #5410
  • Dec 01 22:36
    BobbyMorris edited #231
Aaron Stannard
@Aaronontheweb
if you're working on reliable delivery type problems
I made a YouTube video about this last year, let me see if I can grab it
in general, I recommend not using exactly once if you can avoid it
but if you really need it, that video goes through how to implement it
and the technique I use there is exactly once without strong ordering
meaning each message is delivered independently from every other message
if you need to do exactly once delivery AND preserve ordering for all messages to each individual recipient
you'd need to ditch using an AtLeastOnceDeliveryActor base class
and implement something custom where each send operation to each recipient is atomic
and any subsequent sends get queued up until the current send is ACKed
and then you can proceed from there
in a happy-path scenario the performance is probably OK
once you actually start dealing with prolonged trouble on the network though then that technique is going to result in back-ups quickly
Aaron Stannard
@Aaronontheweb
especially if you end up with a poisoned message
I'm working on some finance applications at the moment; real-time price analysis, trading indicators, and eventually an execution engine
In the spec design I have currently we only use something stronger than at most once delivery inside the execution engine
if I miss some real-time order book events from the exchanges I'm connected to
¯_(ツ)_/¯
however, if my ability to process those real-time order book events is slow
then my application can't really do its job properly
we will use the stronger delivery guarantee in the execution engine though
because my view of an account balance and the exchange's view of the account balance have to be identical
Aaron Stannard
@Aaronontheweb
otherwise the trading algorithms are going to try to execute trades that can't be filled or might otherwise blow away the liquidity (cash-on-hand) parameters the users set... which would be bad
AnchishkinAlex
@AnchishkinAlex
hi! I have a problem: there are two independent projects and I am using Akka Remoting for connection. I am also using Autofac DI.
Two projects. Two actor systems. Two Autofac DI containers.
Actor of the first ActorSystem calls actor of the second ActorSystem which should have constructor injection.
But the first actor system doesn't know (and shouldn't know) about this dependencies.
Is it possible to call this actor after resolving dependency through the second actor system?
Aaron Stannard
@Aaronontheweb
@AnchishkinAlex are you remotely deploying those actors?
if not, then none of this stuff matters - both actors are started independently
and neither needs to know about each other's constructor arguments
they just need to acquire a remote actor reference to each other
which you can via an ActorSelection initially
AnchishkinAlex
@AnchishkinAlex
Ok, we tried to use ActorSelection but it needs hardcode address of actor.
Is it possible to get address of actor from HOCON?
Aaron Stannard
@Aaronontheweb
yep, you can create a custom HOCON field
to store the address a remote node
I do this inside the client-server app from our Akka.NET trainings
let me see if I can grab it...
akkatime{
             sessions{
              handshake-timeout = 4.0s #max time to complete the handshake timeout process
              verify-timeout = 1.0s #max time to authentication an end-user locally on the server
              verify-chat = on
             }
             server = "akka.tcp://akkatime@127.0.0.1:14445"
          }

          akka {
the akkatime section is custom
and I have a akkatime.server property that the client reads from configuration in order to figure out how to contact the server
var actorSystem = ActorSystemRefs.AkkaTimeSystem = ActorSystem.Create("akkatime");
            var serverAddress = ActorSystemRefs.ServerAddress = Address.Parse(actorSystem.Settings.Config.GetString("akkatime.server"));
            var serverStatus =ActorSystemRefs.ServerConnectivityActor =
                actorSystem.ActorOf(
                    Props.Create(() => new ServerConnectivityStatusActor((Address)serverAddress.Clone(), ServerConnectivityStatus.Disconnected)),
                    ActorPaths.ServerConnectivity.Name);
which I then read in here when I'm starting my ActorSystem
and that serverAddress gets passed to an actor that uses an ActorSelection to contact another actor on the server
AnchishkinAlex
@AnchishkinAlex
Thank you. Could you provide link to this example? I'll explain it
explore*
Aaron Stannard
@Aaronontheweb
wish I could, but it's part of the training materials we distribute to our customers
that being said, we do have all of these ones
the WebCrawler one for Akka.Cluster is probably the most relevant there
AnchishkinAlex
@AnchishkinAlex
Thanks! I saw Akka.NET Bootcamp, Chat Server Example but not this samples :smile:
Aaron Stannard
@Aaronontheweb
you're welcome!