Akka

Conditional logging with Logback in Scala

Reading Time: < 1 minute Hello Folks In my project , i got a scenario where I wanted conditional logging. I was using Logback framework for the same. I wanted to set different logging level for staging and production. Either i could do manually changes in logback.xml for logging level for staging and production both. But this is not the good practice. Then I found the solution of implementing the Continue Reading

Scala in Business | Knoldus Newsletter – March 2015

Reading Time: 2 minutes Hello Folks We are back again with March 2015, Newsletter. Here is this Scala in Business | Knoldus Newsletter – March 2015 In this newsletter, you will get the business related news for Scala. How organisation are adopting Scala for their business, how Scala related technologies increasing the performance of application and how Scala is getting popular in the industry So, if you haven’t subscribed to Continue Reading

Map reduce with Akka and Scala: The famous word count

Reading Time: 4 minutes After working for around a decade with Java and family, recently i tried my hands with Scala and Akka. Yes! changing taste buds is not at all easy. But working with Scala is fun!  Prior to this, every time when i start on building some APIs, First thing which comes in my mind is Number of java classes or beans. Honestly a POJO is never Continue Reading

A simple CRUD application in Play! Framework using Kundera and Cassandra as a Database.

Reading Time: < 1 minute playing-kundera-cassandra: This is a classic CRUD application, backed by Play 2.3.0, Kundera & Cassandra. It demonstrates: Accessing a Cassandra database, using Kundera. Achieving, Futures to use more idiomatic error handling. Accessing JS & CSS libraries by WebJars. Bootswatch-United with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Instructions :- The Github code for the project is at : playing-kundera-cassandra Clone the project Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-2)

Reading Time: 2 minutes Last week, We have created a simple Employee-Self-Service  application using Play Framework and Anorm SQL data access , which has CRUD facility. Now we have added more features, i.e. Handling asynchronous results with time-outs facility thus application is now reactive (Async + Non-Blocking) Play and Scala-based template engine implementation. Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Application screens: 1. Continue Reading

Spray with Akka Starter Kit

Reading Time: 3 minutes Over the last few months, Spray is fast becoming the de-facto for all the products that we are working on. Irrespective of whether it is a product which has a full featured UI or a gaming component which needs to provide services for the game to execute in a performant way, Spray has found its use. The best part about Spray being that is very Continue Reading

Partial Functions and Modularizing Actor Receive blocks

Reading Time: 2 minutes A partial function is defined as trait PartialFunction[-A, +B] extends (A) ⇒ B It is a unary function which defines a domain. Not all values of A would be a part of the domain. For instance, in the following code block val sample = 1 to 10 val isEven: PartialFunction[Int, String] = { case x if x % 2 == 0 => x+" is even" Continue Reading

Monthly Scala News Letter : December 2013

Reading Time: < 1 minute We have started our Monthly Scala News Letter from last 2 months which is delivered to subscriber’s email address on 25th of every month. If you haven’t subscribed to the newsletter yet then make it hurry and click on Subscribe Scala Monthly News Letter In the newsletter, you will find some very useful scala business news. The main aim of newsletter is that people should Continue Reading

Create Akka project (2.2.3) with latest sbt (0.13) and scala (2.10.3)

Reading Time: 2 minutes In this blog, i will explain that how to create Akka project with the latest sbt and scala. As we know, Now latest Akka version is 2.2.3, sbt is 0.13 and scala is 2.10.3 So lets start to create the project : First of all, install the latest sbt and scala on your system then create sbt project by following the below steps : First Continue Reading

Knoldus Big Data Presentation at National Big Data Conference

Reading Time: < 1 minute Recently, I was at the Big Data conference where I was speaking on the subject of attacking the Big Data riddle with Scala and Akka. The ambience was awesome with big consulting companies rubbing shoulders with niche providers like Knoldus. There were some great initiatives which came to light in the fields of social big data gathering, in genomics and how the auto industry is Continue Reading

Akka Futures: Using For Comprehensions

Reading Time: 3 minutes In my previous post I discussed about composing Futures. I also discussed that Futures are monadic and they can be composed using map or flatmap. Since, for comprehension is just a sugar on top we can use it as well. Lets understand their usage in a bit more detail than my previous post. Using the same example of direct use of Futures and using a Continue Reading

Akka Actor And Futures

Reading Time: < 1 minute This presentation was presented at Knolx session. It was presented before my last post on Akka Futures with a simple example. It focusses on Akka 2.0 and Akka Futures. Please note that in latest Akka version which is for scala 2.10, Scala Future and Akka Future has combined. This presentation caters to Akka 2.0.5 version. This talk is inspired by Viktor Klang talk on Akka Continue Reading