Popularity
7.0
Stable
Activity
9.3
Growing
1,059
102
217

Programming language: C#
License: Apache License 2.0
Tags: Actor     Concurrency     Actors     Model     Distributed Computing     Proto     Protoactor    
Latest version: v0.11.0

protoactor-dotnet alternatives and similar packages

Based on the "Distributed Computing" category.
Alternatively, view protoactor-dotnet alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of protoactor-dotnet or a related project?

Add another 'Distributed Computing' Package

README

Build status

Join the chat at https://gitter.im/AsynkronIT/protoactor

Proto.Actor

Ultra-fast, distributed, cross-platform actors.

Bootcamp Training

https://github.com/AsynkronIT/protoactor-bootcamp

Installing

Using NuGet Package Manager Console:

PM> Install-Package Proto.Actor

Source code

This is the .NET repository for Proto Actor.

Other implementations:

Design principles

Minimalistic API - The API should be small and easy to use. Avoid enterprisey containers and configurations.

Build on existing technologies - There are already a lot of great technologies for e.g. networking and clustering. Build on those instead of reinventing them. E.g. gRPC streams for networking, Consul for clustering.

Pass data, not objects - Serialization is an explicit concern - don't try to hide it. Protobuf all the way.

Be fast - Do not trade performance for magic API trickery.

Getting started

The best place currently for learning how to use Proto.Actor is the examples. Documentation and guidance is under way, but not yet complete, and can be found on the website.

Hello world

Define a message type:

internal record Hello(string Who);

Define an actor:

internal class HelloActor : IActor
{
    public Task ReceiveAsync(IContext context)
    {
        var msg = context.Message;
        if (msg is Hello r)
        {
            Console.WriteLine($"Hello {r.Who}");
        }
        return Task.CompletedTask;
    }
}

Spawn it and send a message to it:

var system = new ActorSystem();
var context = system.Root;
var props = Props.FromProducer(() => new HelloActor());
var pid = context.Spawn(props);

context.Send(pid, new Hello("Alex"));

You should see the output Hello Alex.

Contributors

Made with contributors-img.

Support

Many thanks to JetBrains for support!