Skip to content

theburgerfan/orbit

 
 

Repository files navigation

Orbit Framework

Release Maven Central Javadocs Build Status Gitter

Orbit Actors is a JVM based framework to write distributed systems using virtual actors. 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.

It is heavily inspired by the Microsoft Orleans project. For the latest news, follow us on Twitter.

Developer & License

This project was developed by BioWare, a division of Electronic Arts and is licensed under the BSD 3-Clause License.

Documentation

Documentation is located here.

Simple Example

Java

public interface Hello extends Actor
{
    Task<String> sayHello(String greeting);
}

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

Actor.getReference(Hello.class, "0").sayHello("Meep Meep");

Scala

trait Hello extends Actor {
  def sayHello(greeting: String): Task[String]
}

class HelloActor extends AbstractActor[AnyRef] with Hello {
  def sayHello(greeting: String): Task[String] = {
    getLogger.info("Here: " + greeting)
    Task.fromValue("Hello There")
  }
}

Actor.getReference(classOf[Hello], "0").sayHello("Meep Meep")

About

Orbit - Virtual actor framework for building distributed systems

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%