Author Archives: Rishi Khandelwal

About Rishi Khandelwal

Sr. Software Engineer having more than 5 years industry experience. He has working experience in various technologies such as Scala, Java, Play, Akka, Lift Web, Spark, ElasticSearch, Backbone.js, html5, javascript, Less, Amazon EC2, WebRTC, SBT

Apache Spark : Spark Union adds up the partition of input RDDs


Some days back when I was doing union of 2 pair rdds, I found the strange behavior for the number of partitions. The output RDD got different number of partition than input Rdd. For ex: suppose rdd1 and rdd2, each … Continue reading

Posted in Agile, apache spark, Best Practices, big data, Scala | Leave a comment

Compile & load an external scala file in your application


Some days ago, i got a requirement that i need to load an external scala file in my Scala application and have to use that. To use that file, it needs to be compile first and then can be used … Continue reading

Posted in Scala | 1 Comment

A basic application to handle multipart form data using akka-http with test cases in Scala


In my previous blogs, I have talked about file upload and its test cases using akka-http. Now, in this blog I am going to explain the handling of multi part form data in akka-http with the help of a basic … Continue reading

Posted in Akka, Scala | 2 Comments

Test cases for file upload using akka-http in Scala


Hello folks, In my previous blog, i explained how to upload a file using akka-http in Scala. Later, i got the queries about the test cases for the same. Therefore, in this blog I am going to explain the way … Continue reading

Posted in Scala | 3 Comments

How to create auto incremented alphanumeric id in postgres


A few days ago, i got a condition where i need to create an alphanumeric auto incremented id in Postgres. I have created many auto incremented numeric ids before, but never got a use case like this. This was new for … Continue reading

Posted in Scala | 1 Comment

File upload using akka-http in Scala


Lets begin with some introduction of Akka-http first. Akka HTTP is a layer to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an … Continue reading

Posted in Akka, Future, knoldus, Scala | 13 Comments

Scala in Business | Knoldus Newsletter – April 2015


Hello Folks We are back again with April 2015, Newsletter. Here is this Scala in Business | Knoldus Newsletter – April 2015 In this newsletter, you will get the business related news for Scala. How organisation are adopting Scala for their … Continue reading

Posted in Agile, Akka, Amazon EC2, Cloud, Java, JavaScript, LiftWeb, Mockito, MongoDB, Play Framework, Scala, Slick, Spark, Web | 1 Comment

Conditional logging with Logback in Scala


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

Posted in Agile, Akka, Best Practices, Cloud, Java | Tagged , , , , , | 1 Comment

Scala in Business | Knoldus Newsletter – March 2015


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

Posted in Akka, Architecture, Cloud, Future, Java, News | Tagged , , , | Leave a comment

Knolx : Logging with Logback in Scala


In this presentation, I have explained brief introduction about logback and its components. I also explained about configuration of logback.xml file, appenders as File and SMTP.

Posted in Java, Play Framework, Reactive, Scala | 6 Comments