Author Archives: Piyush Mishra

How to integrate typesafe console with akka-scala based application


We are working on a akka-scala based project. We needed to monitor the akka actors related activities and their profile so we integrated typesafe console with our application. So i am going to tell here how to integrate it with … Continue reading

Posted in Scala | Leave a comment

How to create a priority based mailbox for an akka actor


There are some situations when you want an actor to process certain messages first and then other ones. So, I am going to demonstrate how to create a priority based mailbox for an actor. Suppose we have an actor. Now … Continue reading

Posted in Scala | Leave a comment

Knolx session : Monoids in Scala


This presentation is the part of our on-going knolx session. It is brief introduction to monoids in scala. Monoids are the certain common pattern followed by the various data types of a programming language. They are the simple algebraic structure governed … Continue reading

Posted in Scala | Leave a comment

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

ElasticSearch: How to index data in bulk in elasticsearch with scala using java Bulk API.


Elasticsearch is an open-source, restful, distributed, search engine built on top of apache-lucene.In this post, we will learn to use elasticsearch java api in Scala to index data using BulkRequest. we will begin with adding dependency of elasticsearch in the … Continue reading

Posted in Web | Leave a comment

Akka Futures and Akka Remoting


In this presentation which is a part of our ongoing knolX session, i talked about  Akka Futures, how to compose them using  for comprehensions. Since Future is a monad,  I also illustrated how to apply methods like map, flatmap  on … Continue reading

Posted in Web | Leave a comment

Specs2


Posted in Web | Leave a comment

Knolx Session: Implicit Conversions and Parameters


This session was presented at Knolx Session at Knoldus. I introduced implicit conversions and parameters in scala. Implicit conversion allows us to fix type errors and allows us to define new methods on existing library. Here is the presentation

Posted in Scala | Tagged , | Leave a comment

Introducing inheritance and traits in scala


We believe in experiential learning. This knolx session has code examples which Knolders tried while I was explaining it. The objective was to  the to introduce Inheritance and Traits. in this presentation i told about  mixin composition of traits into classes … Continue reading

Posted in Web | Tagged | 1 Comment