Contenu connexe
Similaire à Building Reactive Apps (20)
Building Reactive Apps
- 2. Agenda
•Intro to Reactive
•The Typesafe Platform
–Typesafe Activator
–Play Framework
–Akka
–Scala
–Tools
•Questions
© 2013 Typesafe Inc.
|
All rights reserved
|
2
- 8. Go Reactive with Typesafe Activator
© 2013 Typesafe Inc.
|
All rights reserved
|
9
- 10. Play Framework
The High Velocity Web Framework For Java and Scala
© 2013 Typesafe Inc.
|
All rights reserved
|
12
- 20. Reactive Web / Mobile Apps
•Reactive Request
–Async & Non-Blocking Request & Response
•Reactive Composition
–Reactive Request + Reactive Request + ...
•Reactive Push
–Stream Producer
•2-way Reactive = Bi-Directional Reactive Push
•Reactive UIs
–Interactive, Data Synchronization, Real-time Collaboration
© 2013 Typesafe Inc.
|
All rights reserved
|
24
- 22. Request/Response: Traditional vs. Reactive
def getTweets = Action {
Ok(WS.get("http://twitter.com/"))
}
Client
blocking
Server
blocking
Service
nonblocking
Service
def getTweets = Action { Async {
Ok(WS.get("http://twitter.com/"))
}}
Client
nonblocking
Server
© 2013 Typesafe Inc.
|
All rights reserved
|
26
- 23. Streaming: Traditional vs. Reactive
// comet style polling
def getNewTweets = Action {
Ok(queuedEvents)
}
Client
blocking
Server
blocking
Service
Server
nonblocking
Service
def streamTweets = Action {
Ok.stream(eventProducer)
}
Client
nonblocking
© 2013 Typesafe Inc.
|
All rights reserved
|
28