In this two part series, we will develop our very own file format to store stock prices as time series using Scodec and Akka Streams. The first part will describe the encoding / decoding process and how we improve our binary protocol step by step. In the second part, we will use Akka Streams to read and write our own files in chunks with the help of backpressure.
One critique of Akka, that comes up every now and then is the lack of type safety. Actors essentially represent a
PartialFunction[Any, Unit] which is, from a type point of view, something of the worst you can have. It tells you nothing useful; Anything can go in, it might or might not be processed and if so, anything anywhere anytime can happen. It forgoes all the benefits of a statically typed language.