65. SPI のインタフェース
public interface Publisher<T> {
public void subscribe(Subscriber<? super T> s);
}
public interface Subscriber<T> {
public void onSubscribe(Subscription s);
public void onNext(T t);
public void onError(Throwable t);
public void onComplete();
}
public interface Subscription {
public void request(long n);
public void cancel();
}
すべて戻り値なし=非同期
語彙は RxJava がベース
91. CRDT の利用例
• League of Legends のチャットサーバ
• Riak 上に実装している
• フレンドリスト管理の分散化など
• https://engineering.riotgames.com/news/chat-
service-architecture-persistence
• Akka でも利用できる (Akka Distributed Data モ
ジュール)
92. 参考: LASP
• Erlang + Riak Core ベースの分散処理言語
• Basho の Christopher Meiklejohn 氏が開発中。Oz
言語で有名な Peter Van Roy 氏が指導教官?
• “Coordination-Free Computations”
• “Coordination-Free Designs for Mobile Gaming”