Play Flashcards
As at 2016 what was the only full-stack reactive web application framework for the JVM
play
Play is built on top of _______ and leverages its reactive behaviour by using __________
Netty
Asynchronous stream handling
Play deals with the typical concerns of web application development such as client- side resource handling, project compilation, and packaging by making use of
the sbt build tool
They have certainly evolved a lot over the past decades, especially in terms of CPU clock speed (MHz to GHz) and memory (kilobytes to gigabytes). The most significant change, however, which has happened in the past few years, is that although the clock speed of CPUs isn’t increasing very much, the
the number of cores each CPU has is changing
what is the von Neumann bottleneck
There is a shared bus between the program memory and data memory leads to the von Neumann bottleneck.
Because the single bus can only access one of the two classes of memory at a time, throughput is lower than the rate at which the CPU can work.
Roughly speaking, there are two categories of programming models in which web serv- ers can be placed.
Threaded
Evented
The threaded model
large numbers of threads take care of handling the incoming requests.
The evented model
a small number of request-processing threads communicate with each other through message passing.
Example of a threaded server
Apache Tomcat, IIS
The evented model only works if
the entire pipeline is asynchronous
What is the architectural challenge you seek to address with Actors and Events
Developing web applications fit for multicore architectures
Languages and tools favoring the use of ______ _______make it easier to develop web applications that have to deal with concurrent access.
immutable state
Building applications that don’t fail is extremely difficult, and if those applications are meant to be built at a reasonable pace it’s close to impossible. Instead of avoiding failure, reactive systems are designed and built from the ground up to embrace failure, leveraging the principle of
supervision
What are the 8 fallacies of distributed computing
1 The network is reliable 2 Latency is zero 3 Bandwidth is infinite 4 The network is secure 5 Topology doesn’t change 6 There is one administrator 7 Transport cost is zero 8 The network is homogeneous
What is an iteratee
An iteratee is a construct that allows you to consume streams of data asynchronously; it’s one of the cornerstones of the Play Framework.