Insights and perspectives to keep you updated.

Getting Started with MongoDB using Scala

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

Google Web Toolkit (GWT) : Your first step !

Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications. It is an open-source, Java-based framework for creating Ajax web applications. It is created and used by Google. With GWT, you can develop and debug AJAX applications in the Java language using the Java development tools of your choice. When you deploy your application to production, the GWT compiler translates Continue Reading

Capsules for recovering Scala fever.

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

Basic Http authentication in Lift.

Lift web framework accommodate a no. of conspicuous features that are implemented in a unique and solitary way as compared to other frameworks. Here we’ll discuss about the basic “Http authentication” mechanism for security in Lift. What is ‘LiftRules’ singleton ? Nearby all configuration parameters for the http requests and response are defined in LiftRules singleton. The important thing to notice is that we can Continue Reading

Getting Started with Lift web framework : Your first step…!

Lift is a sophisticated web development framework that runs inside a Java web container & uses the Scala programming language.Lift removes a lot of the burdens that other frameworks place on developers by mixing together the best ideas in the marketplace today & aims to make building real-time, highly interactive, and amazingly scalable applications.Here we are going to introduce you with the Lift web framework Continue Reading

Setting up environment to work with scala using play framework.

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

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

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

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

Manage Akka Actors With Supervisors

We are building a concurrent and massively scalable system using Akka framework. Akka uses light-weight Actor paradigm of managing concurrency. Most of the times a bunch of Akka actors are required for a common functionality; therefore we do tend to manage them as a group. This is where Akka Supervisor comes into the picture. Akka Supervisors are responsible for starting, stopping and monitoring child Akka Continue Reading


AMQP is a message protocol that deals with publishers and consumers. It would look a lot like JMS but it is not. The main entities are Exchanges, Queues and Bindings. Look at the following diagram So a producer would send a message to the exchange and it is the job of the message broker (RabbitMQ in our case) to ensure that the messages are delivered Continue Reading

Building a Plugin Based Architecture in Scala

A plugin based architecture has many advantages. Some of the common ones include Extending an application’s functionality without compiling it again Adding functionality without requiring access to the original source code. Replacing or adding new functionality becomes easy Help in organizing large projects Help in extending the functionality of the system to unimagined areas. I know this one sounds extreme but believe me it is Continue Reading

Akka Actors on Mac beating the S#!t Out of my Dell

Let me explain the scenario. We have n (tens, hundreds or thousands) of Akka actors listening to a queue on RabbitMQ server. So the scenario looks something like this AMQP.newConsumer(connection, ConsumerParameters("*", actor, Some(queueName), Some(exchangeParameters))) As you would notice, each of the actors gets a message from the Q and invokes a plugin to do the processing and returns the results back to the result Q. Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!