-
Show how CPU-intensive computation can be off-loaded from a mobile app to the cloud, by comparison to a mobile device, an unlimited resource for computation and storage.
-
End-to-end example of continuous integration (CI), continuous deployment/delivery (CD), and DevOps in Scala.
See also the corresponding mobile app.
Test with
$ sbt test
Run with
$ sbt run
or
$ sbt stage
$ ./target/universal/stage/bin/primenumbers-http4s-scala
or deploy to a suitable cloud provider, such as Oracle.
Then, http://host/n returns
- 200 OK if n is prime
- 404 Not Found otherwise