Posts

Showing posts with the label scala

A Sample of Lambda Architecture Project

I would like to present my pet project: A Sample of Lambda Architecture Project , the boilerplate for detecting IoT sensor anomalies using the Lambda architecture. It's based on Akka/Scala cluster, and utilizes Cassandra database and Redis in-memory data store.

Getting PID in Java/Scala (cross-platform)

The Scala/Java environment has a certain lack of features regarding process management - it's in a very good shape, but sometimes we need more. It's totally understable considering that the underlaying system is the JVM (in most cases), however once in a while we have to leave the sandbox. That was the case I've faced, and it got me to the problem how to get the ID of the process I started in JVM for various operating systems.

Simple HTTP/HTTPS server on Scala/Akka

Let me present a simple Scala script to serve local files over HTTP or HTTPS. I've used Scala/Akka to get the good performance and to play around with the programming language I really like. Toolchain We need Scala, SBT (Scala interactive build tool), Conscript  (a distribution mechanism for Scala apps) and Scalas (the script runner for Scala). Conscript is needed only to install Scalas here, so you may want to install the runner manually (see the Scalas link above) if you don't want to install Conscript. For Mac OS X we're going to use Homebrew to install Scala and SBT:  $ brew install scala sbt Next step is Conscript (please follow the installation instructions on the official site):  $ wget https://dl.bintray.com/foundweekends/maven-releases/org/foundweekends/conscript/conscript_2.11/0.5.1/conscript_2.11-0.5.1-proguard.jar  $ java -jar conscript_2.11-0.5.1-proguard.jar Next step is installing Scalas (please follow the  installat...