Orbit is a modern framework for JVM languages that makes it easier to build and maintain distributed and scalable online services. It was developed by BioWare, a division of Electronic Arts. For the latest news, follow us on Twitter.
Orbit is primarily made up of the following components:
- Orbit Actors, a framework to write distributed systems using virtual actors.
- Orbit Async, async-await methods for the JVM.
- Orbit Container, a minimal inversion of control container for building online services.
- Orbit Utils, a set of utils to help simplify various tasks on the JVM.
- Orbit Web, a lightweight HTTP and Websockets container for Orbit, powered by Jetty.
- Orbit Commons, various common utilities used by Orbit.
Documentation is located here.
See the Hello World sample.
Orbit is licensed under the BSD 3-Clause License.
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");
}
}
IActor.getReference(IHello.class, "0").sayHello("Meep Meep");
trait IHello extends IActor {
def sayHello(greeting: String): Task[String]
}
class HelloActor extends OrbitActor[AnyRef] with IHello {
def sayHello(greeting: String): Task[String] = {
getLogger.info("Here: " + greeting)
Task.fromValue("Hello There")
}
}
IActor.getReference(classOf[IHello], "0").sayHello("Meep Meep")