Deploying the Play 2.0 application on Heroku

Reading Time: 2 minutes We are working on a project using Play freamework with Scala programming language. Here we’ll discuss about the deployment of the play application on Heroku. This is a very straightforward process. You just have need to follow some simple steps and your application will be on Heroku in minutes. 1. Heroku needs a file named ‘Procfile‘ for each application to be deployed on it. Procfile Continue Reading

ZeroMQ Module In AKKA 2.0 Some Gotchas

Reading Time: 5 minutes Akka framework supports ZeroMQ in its ZeroMQ extensions module. Akka is a great framework and we have our product built on its version 1.3x. We were looking at ZeroMQ support in our product and we stumbled on this issue. We found that ZeroMQ applications built on Akka extensions are running slower than an application built in plain scala. Please read about our discussion thread on Continue Reading

QuickKnol: Integrating Logback with Scala

Reading Time: 2 minutes Logback is the successor of Log4j and is one of the better logging frameworks around. In this post, we would quickly see how to set it up on a Scala project and how to start using it. The relevant dependency to be included in your build.sbt is libraryDependencies += “ch.qos.logback” % “logback-classic” % “1.0.1” Once, you have this set, next you have to get a Continue Reading

Integrating Twitter Bootstrap with Play 2.0 using Scala

Reading Time: < 1 minute We spent more than a few hours in getting the boostrapping right for Play 2.0 RC3 and twitter bootstrap. Following is a summary of steps we followed and some pitfalls that we encountered. For starters, you can start by having a look to the sample play application for a todo list. Here we are going to discuss about the twitter bootstrap integration using ‘Build.scala‘ file. Continue Reading

Handling Large Data File Using Scala and Akka

Reading Time: 6 minutes We needed to handle large data files reaching size Gigabytes in scala based Akka application of ours. We are interested in reading data from the file and then operating on it. In our application a single line in a file forms a unit of data to be worked upon. That means that we can only operate on lines in our big data file. These are Continue Reading

Intercepting Nutch Crawl Flow with a Scala Plugin

Reading Time: 4 minutes Apache Nutch, is an open source web search project. One of the interesting things that it can be used for is a crawler. The interesting thing about Nutch is that it provides several extension points through which we can plugin our custom functionality. Some of the existing extension points can be found here. It supports a plugin system which is used in Eclipse as well. Continue Reading

Using MongoDB in Scala with Salat

Reading Time: 2 minutes In our last post, we had seen how easily we could access MongoDB with the Casbah driver. In this post, we would have a sneak peak at Salat. Salat is a bidirectional, serialization library which helps us work with MongoDB’s DBObject. To quicly get started with Salat, you would need to include the following dependency in your Build.scala We would also need the dependency for Continue Reading

Getting Started with MongoDB using Scala

Reading Time: 3 minutes MongoDB is a document oriented NoSQL database which has gained tremendous popularity on account of its performance and scalability characteristics. It positions itself in the sweet spot near RDBMS which provide depth of functionality and memcache for scalability and performance characteristics. In this post, we would look at connecting with MongoDB running on the local system with a Scala client. To install MongoDB, follow the Continue Reading

Capsules for recovering Scala fever.

Reading Time: 2 minutes Scala is a multi-paradigm programming language that combines the features of object-oriented programming and functional programming. The word “Scala” refers to “Sca(Scalable)+la(Language)” i.e designed to grow with the demands of its users. Scala runs on the Java Virtual Machine. Here We’ll discuss about some of the basic concepts in Scala that make it distinct from other programming languages.Let us start with some of the following: Continue Reading

Setting up environment to work with scala using play framework.

Reading Time: 3 minutes Play is an open source web application framework base on model-view controller architecture. Play is written in java but also provides support for the scala programming language. Here we are going to elaborate the steps about the initial environment setup to start working with scala using play framework. 1. Install scala for play using following command. $ play install scala 2. Create new project as Continue Reading

Create web application menus using the Lift web framework

Reading Time: < 1 minute Lift is a powerful & secure web framework having elegant features and also stresses the importance of security, maintainability, scalability and performance. Lift applications are written in Scala. Here we will discuss about creating the menus in Lift. These are the approaches to create a menu: Define the url names and routes directly in Boot.scala. Create the seperate Singleton for defining menu items. Let us see Continue Reading

Using Akka Dispatchers In Scala

Reading Time: 4 minutes Akka dispatchers are extremely important in Akka framework. They are directly responsible for optimal performance, throughput and scalability. Akka supports dispatchers for both event-driven lightweight threads and thread-based Actors. For thread-based Actors each dispatcher is bound to a dedicated OS thread. Default dispatcher is a single event-based dispatcher for all Actors created. The dispatcher used is this one: Dispatchers.globalExecutorBasedEventDrivenDispatcher For many cases it becomes mandatory Continue Reading

Power of Parallel Processing in Akka

Reading Time: 4 minutes If you have been following the Inphina blog and our work with Scala related technologies, you would have noticed a spurt in our blog feeds. The reason being that we have recently come out of a very successful massively scalable framework created with Akka. Inphina holds an active stake in the product and the details of the framework would follow once the embargo is over. Continue Reading