Reactive Streams Condensed

Download Reactive Streams Condensed

Post on 17-Jul-2015

200 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

<ul><li><p>REACT I V E S TR EAMS COND ENS ED</p><p>W H A T D O Y O U N E E D T O K N O W A B O U T N E W S T A N D A R D F R O M J V M W O R L D</p></li><li><p>The Java World was Sad Once</p></li><li><p>... Here comes Java 8</p></li><li><p>And new King</p></li><li><p>Not Enough</p></li><li><p>STREAMS ARENot LAZY</p></li><li><p>stream.forEach(x -&gt; {return x * 2;</p><p>})</p></li><li><p>DONT HAVE API TO REALTIME, DISTRIBUTED PROCESSING</p></li><li><p>Only Push orPull</p></li><li><p>stream.forEach(x -&gt; {return x * 2;</p><p>})</p></li><li><p>Iterator i = stream.iterator()while (i.hasNext()){// do execution</p><p>}</p></li><li><p>NOT A SPECIFICATIONNot A Specification</p></li><li><p>JVM is not just Java </p></li><li><p>Reactive Streams</p></li><li><p>Stream Over AsyncBoundaries</p></li><li><p>FAST PublisherSlow SubscriberProblem</p></li><li><p>Publisher Subscriber</p><p>Demand</p><p>Data</p></li><li><p>RxJavaReactor from SpringSourceAkka StreamsVert.x</p><p>INTEROPERATIBILITY</p></li><li><p>void onSubscribe(Subscription s)</p><p>void onNext(T t)</p><p>void onComplete()</p><p>void onError(Throwable t)</p><p>SUBSCRIBER</p></li><li><p>void subscribe(Subscriber</p></li><li><p>SUBSCRIPTION</p><p>void cancel()</p><p>void request(long n)</p></li><li><p>extendsSubscriber, Publisher</p><p>PROCESSOR</p></li><li><p>Publisher Subscribersubscribe</p><p>onSubscribe</p><p>request</p><p>Subscription</p><p>onNext</p></li><li><p> All call on subscriber must be async All call on Subscription must not block Publisher just create subscription</p><p>CONTRACT</p></li><li><p> 1.0.0 RC-5 published 10th April Technology Compatibility Kit Released JVM Interface JS Interface Network Protocols</p><p>CURRENT STATE</p></li><li><p>Thank You!</p></li></ul>