Skip to content

lulzzz/kino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kino - framework for building Actor-like networks

Build status NuGet version

Kino

Kino is an Actor framework, based on message-driven communication.

Fault-tolerance and load scale-out by redundant deployment of actors, possibility to broadcast messages – everything without additional infrastructure dependencies. Rendezvous service provides actors auto-discovery and reduces amount of required configuration.

Supported Platforms: .NET 4.7, .NET Core 2.0

It is simple!

Define an Actor:

public class MyMessageProcessor : Actor
{
    [MessageHandlerDefinition(typeof (MyMessage))]
    public async Task<IActorResult> MyMessageHandler(IMessage message)
    {
        // method body
    }
}

Send a Message:

// Just create a message you would like to send
IMessage request = Message.CreateFlowStartMessage(new MyMessage());
// Define result message you would like to receive
ICallbackPoint callbackPoint = CallbackPoint.Create<ResultMessage>();
// Now, send the message. No need to know actor address, ID or anything else!
IPromise promise = messageHub.Send(request, callbackPoint);
// Wait for result
ResultMessage result = promise.GetResponse().Result.GetPayload<ResultMessage>();

Tell me more!

If you are interested in the project, please, read wiki for details about the framework, ask related questions or suggest features in chat! Join the chat at https://gitter.im/iiwaasnet/kino

kino-based Projects

Powered by NetMQ

About

Kino - framework for building Actors networks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.7%
  • PowerShell 1.3%