Category Archives: Architecture

KnolX Session: Testing Akka Actors Using TestKit


In the presentation which is the part of our ongoing Knolx session, we discussed about how to test Akka actors using Testkit. By using testkit we can test Actor’s behaviour, apply time assertions on actor’s reply and we can also … Continue reading

Posted in Agile, AJAX, Architecture, Cloud, Scala, Web | Leave a comment

Efficiently using Session & Flash in Play framework


Play framework is being the love of every Scala developer now a days. In this post we’ll learn about using Session & Flash scopes in Play framework. Play has a stateless architecture so in order to keep the data across … Continue reading

Posted in Architecture, Cloud, Scala, Web | Tagged , , , | Leave a comment

ATDD, Generating random tests with ScalaCheck


Further, in our series on Acceptance Test Driven Development, we would look at generating random test values with the ScalaCheck framework. In our last post we looked at, how we make our test logic respect the DRY principle by defining … Continue reading

Posted in Agile, Architecture, Scala | Tagged , , , | Leave a comment

Parallel Collections in Scala


As multi-core becomes a standard, writing code which can harness the power of the cores remains a formidable challenge. The following KnolX session, tried to decode how scala is trying to give us an advantage by providing us parallel collections. … Continue reading

Posted in Architecture, Scala | Tagged , , , , | Leave a comment

Providing a “Sign-in with Google” functionality using Scala


Continuing our series on providing authentication via third party OAuth/Open ID providers, in this post we look at Google. We have already covered sign in with Facebook and Sign in with Twitter in the past. We walk through a step … Continue reading

Posted in Architecture, Scala, Web | Tagged , , , | 3 Comments

Building Massively Scalable Applications with Akka 2.0


Recently Knoldus, presented at the IndicThreads conference, New Delhi on the power of Akka 2.0. The case study involved a demonstration on how a major white goods company is able to analyse their social feeds in real time and respond … Continue reading

Posted in Architecture, Scala, Web | Tagged , , , | Leave a comment

Harnessing the Power of Nutch with Scala


Knoldus was recently speaking at the IndicThreads conference in New Delhi, India. Here, we talked about Nutch and how easy it was for us to integrate it with Scala and build a scalable web crawler with less than 900 lines … Continue reading

Posted in Architecture, Scala, Web | Tagged , , , | Leave a comment

Intercepting Nutch Crawl Flow with a Scala Plugin


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 … Continue reading

Posted in Architecture, Scala | Tagged , , , , , , , | 2 Comments

AMQP and AKKA


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 … Continue reading

Posted in Architecture, Scala | Tagged , , , | 2 Comments

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 … Continue reading

Posted in Architecture, Scala | Tagged , | 1 Comment