Loic.AsynkronIT.protoactor-dotnet
1.0.0
dotnet add package Loic.AsynkronIT.protoactor-dotnet --version 1.0.0
NuGet\Install-Package Loic.AsynkronIT.protoactor-dotnet -Version 1.0.0
<PackageReference Include="Loic.AsynkronIT.protoactor-dotnet" Version="1.0.0" />
<PackageVersion Include="Loic.AsynkronIT.protoactor-dotnet" Version="1.0.0" />
<PackageReference Include="Loic.AsynkronIT.protoactor-dotnet" />
paket add Loic.AsynkronIT.protoactor-dotnet --version 1.0.0
#r "nuget: Loic.AsynkronIT.protoactor-dotnet, 1.0.0"
#addin nuget:?package=Loic.AsynkronIT.protoactor-dotnet&version=1.0.0
#tool nuget:?package=Loic.AsynkronIT.protoactor-dotnet&version=1.0.0
Join our Slack channel
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
<a href="https://github.com/AsynkronIT/protoactor-dotnet/graphs/contributors"> <img src="https://contributors-img.firebaseapp.com/image?repo=AsynkronIT/protoactor-dotnet" /> </a>
Made with contributors-img.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net5.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1 | 7/31/2021 |