[go: up one dir, main page]

Menu

Tree [2e6335] v0.1.1 / actors /
 History

HTTPS access


File Date Author Commit
 actors-all 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 client 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 core 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 providers 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 samples 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 server 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 stage 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 test 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1
 README.md 2015-03-29 Joe Hegarty Joe Hegarty [572552] Update actor readme. Added simple code example.
 pom.xml 2015-03-31 joe@bioware.com joe@bioware.com [2e6335] Version 0.1.1

Read Me

Orbit Actors

Orbit Actors is a framework to write distributed systems using virtual actors. It was developed by BioWare, a division of Electronic Arts, and is heavily inspired by the Orleans project.

A virtual actor is an object that interacts with the world using asynchronous messages.

At any time an actor may be active or inactive. Usually the state of an inactive actor will reside in the database.
When a message is sent to an inactive actor it will be activated somewhere in the pool of backend servers.
During the activation process the actor's state is read from the database.

Actors are deactivated based on timeout and on server resource usage.

Documentation

Documentation is located here.

License

Orbit is licensed under the BSD 3-Clause License.

Simple Examples

Simple Actor

public interface IHello extends IActor
{
    Task<String> sayHello(String greeting);
}

public class HelloActor extends OrbitActor implements IHello
{
    public Task<String> sayHello(String greeting)
    {
        getLogger().info("Here: " + greeting);
        return Task.fromValue("Hello There");
    }
}

HelloFactory.getReference("0").sayHello("Meep Meep");