Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 26 18:23

    Aaronontheweb on dev

    Akka.DependencyInjection.Servic… (compare)

  • Jan 26 18:23
    Aaronontheweb closed #4745
  • Jan 26 17:38
    Arkatufus synchronize #4745
  • Jan 26 17:38
    Aaronontheweb milestoned #4745
  • Jan 26 17:38
    Aaronontheweb labeled #4745
  • Jan 26 17:34
    Arkatufus commented #4745
  • Jan 26 15:15
    Aaronontheweb commented #4745
  • Jan 26 15:09
    Arkatufus review_requested #4745
  • Jan 26 15:08
    Arkatufus opened #4745
  • Jan 26 05:54
    ClockGet commented #4744
  • Jan 26 02:29
    ClockGet edited #4744
  • Jan 26 02:28
    ClockGet edited #4744
  • Jan 26 02:27
    ClockGet edited #4744
  • Jan 26 02:25
    ClockGet edited #4744
  • Jan 26 02:25
    ClockGet opened #4744
  • Jan 25 21:02

    Aaronontheweb on 1.4.16

    (compare)

  • Jan 25 21:01

    Aaronontheweb on master

    Bump AkkaVersion from 1.4.14 to… Correct warning on circuit too … Added v1.4.16 release notes (#1… and 1 more (compare)

  • Jan 25 21:01
    Aaronontheweb closed #194
  • Jan 25 21:00
    Aaronontheweb opened #194
  • Jan 25 14:35

    Aaronontheweb on 1.4.16

    (compare)

Jari Pennanen
@Ciantic
no classes at all
and no assembly linking
Zetanova
@Zetanova
its not importend what it is, the idea is myInstanceActor.Handle((dynamic)message)
one sec
protected override sealed bool Receive(object message)
        {
            MethodInfo method = GetType().GetMethod("Handle", new[] {message.GetType()});
            if (method == null)
            {
                return false;
            }

            method.Invoke(this, new[] {message});
            return true;
        }
its the current code for typedActor
GetType().GetMethod() is i think pritty slow and Handle((dynamic)message) with trycatch would be much faster
but never the less
Jari Pennanen
@Ciantic
public interface Greet {
int Id { get; set; }
string Name { get; set; }
}
ReceiveStructure<IGreet>(greet => Console.WriteLine("Hello {0}", greet.Name));
Zetanova
@Zetanova
if u make an own actor base
that just looks up on the bases interface or class instance
for the handler method
and calls it
ten you have your decopling
Jari Pennanen
@Ciantic
hmm
Zetanova
@Zetanova
of course Context is somethign u will need
Jari Pennanen
@Ciantic
shouldn't it check the type?
Zetanova
@Zetanova
and IActorRef
Jari Pennanen
@Ciantic
I mean the fields
not the type name, which might not be available
Maciek Misztal
@mmisztal1980
good morning
anyone know if Akka.Remote supports port sharing?
Zetanova
@Zetanova
unlikly
Maciek Misztal
@mmisztal1980
my scenario is : attempt to run multiple lighthouse instances in a servicefarbric cluster - the local cluster has 5 virtual nodes, but they share the same physical host - so I was curious, if I can get it up and running that way. Apparently the SF communication listeners need to support port sharing :/
Zetanova
@Zetanova
i am not 100% sure, but for port sharing u need native support in the plattform to route the request to the proper process
like http.sys
Maciek Misztal
@mmisztal1980
seems that there's a port sharing service available https://msdn.microsoft.com/en-us/library/aa395195(v=vs.110).aspx
and it's being used in WCF
Zetanova
@Zetanova
yes, WCF
its SOAP
Jari Pennanen
@Ciantic
namespace ConsoleApplication11
{
    [ResultMatches("MyCompany.OtherAssembly.Greet")]
    public interface IGreet
    {
        public string Who { get; set; }
    }

    public class GreetingActor : ReceiveActor
    {
        public GreetingActor()
        {
            Receive<IGreet>(greet => Console.WriteLine("Hello {0}", greet.Who));
        }
    }
}
I wonder would that work
having own attribute there
which did the "connection"
then I would only need to agree on that string
and not link the assemblies
Zetanova
@Zetanova
?
and how does the message implementation looks like?
Jari Pennanen
@Ciantic
sending part?
Zetanova
@Zetanova
the message implementation is usualy put in a shared assembly
and dont realy need link to akka
you have then
Jari Pennanen
@Ciantic
yes but I wanted to have one without shared message implementation
Zetanova
@Zetanova
MyClient.dll
MyBase.dll
MySystem.dll
yes it can work, but its slow and very error prone
Vagif Abilov
@object
@Horusiath PR is submitted with clarification in PR comment.
Jeff Cyr
@JeffCyr
@mmisztal1980 When you run multiple service fabric node on the same physical host, the service endpoint's port is not shared, all service instance will be assigned a different private port that is retrievable through the service endpoint
Zetanova
@Zetanova
@Ciantic its a realy good idea to imeplement the messages in a shared assembly. It is basicly the contract definition without it you can pass JSON strings around, that would be even better then the interfaces