Scala is well known as a general purpose functional programming language. One place where Scala is shining right now is in the world of Big Data. Many of the largest players in the digital economy are betting on Scala by directly developing or connecting Scala-based components for Big Data gathering and analysis.

Big Data. Two small words that have blossomed into something far larger than anyone could have imagined. Big Data is the overarching label for the generation, collection, and analysis of disparate data in today’s digital economy. The amount, rate, and types of data have mushroomed to encompass almost every imaginable device. Everything and anything can generate data. But what to do with it? The first system to handle the initial data trickle was called Hadoop. It provided a mechanism to analyze the data post-collection in “batches” using HDFS and MapReduce. Hadoop is written in Java and surprisingly, has reached a decade in age. In that time, the volume, velocity, sources, and types of data have grown exponentially. From the smartphone to the refrigerator, everything is generating data.
The first decade of Big Data is now over. The next generation of Big Data analysis is fully upon us. Java is quietly and slowly passing the Big Data processing baton to Scala to incorporate real-time data handling. Scala-based components like Apache Spark are now at the forefront of Big Data. Spark can run programs up to 100x faster than Hadoop MapReduce in memory. It also provides a 10x speed increase using on disk processing. In addition, Spark greatly increases the capabilities over Hadoop by combining SQL, streaming, and complex analytics. Spark is complemented and enhanced by a host of companion components also written in Scala, like Kafka, Spray, Samza, and Scalding. Kafka is an open-source message broker which can easily scale to handle millions of messages per second. Samza is a distributed stream processing framework which is underpinned by Kafka. Corporations are starting to attach and weave these various Scala-based solution building blocks to create powerful Big Data analysis engines.
If we look at the companies participating and investing in Big Data using Scala, we see some of the biggest names in the digital economy. Kafka was created by LinkedIn. Scalding was created by Twitter. It is obvious why Scala is the natural language for the next generation of Big Data handling. Scala is object-oriented, functional, and statically typed. It has powerful combinators, mapping, pattern matching, monoids, currying, and the ability to create elegant DSL’s. These are all crucial capabilities which align quite naturally with the processing functionality required for analyzing Big Data. There are conferences focused exclusively on using Scala for Big Data. The maturity and appropriateness of Scala as a tool for Big Data is no longer in question. The only question is where and how far Scala can take Big Data.

