> kontraktor 3

(Micro-)Service oriented, distributed Actors designed for Java 8

Boilerplate-free, typed Actors Kontraktor uses plain old methods to implicitely define Actor messages. So no need to define "Message"-Classes. This way Inheritance, Interfaces, Refactoring, Code Completion work same as with Pojo's.





public class HelloActor extends Actor<HelloActor> { public IPromise greet( String name ) { return new Promise( "Hello " +name) ; } public static void main(String a[]) { HelloActor myService = AsActor(HelloActor. class ) ; System.out.println( myService.greet( "Kontraktor" ).await() ) ; } }

You might replace Java's 'multithreading/shared data concurrency' model by 'shared-nothing/message passing of single threaded actors'. However Kontraktor plays well with idiomatic Java multithreading code. Mix both models as they fit your needs.