Author Archives: Rishi Khandelwal

About Rishi Khandelwal

Sr. Software Consultant having more than 6 years industry experience. He has working experience in various technologies such as Scala, Java, Play, Akka, Spark, Hive, Cassandra, Akka-http, ElasticSearch, Backbone.js, html5, javascript, Less, Amazon EC2, WebRTC, SBT

What to do for overriding the PureConfig behavior in Scala ?

PureConfig has its own predefined behavior for reading and writing to the configuration files, but sometimes we got the tricky requirement in which we need some specific behavior; for example to read the config. It is possible to override the … Continue reading

Posted in Agile, Best Practices, big data, knoldus, Reactive, Scala | 1 Comment

Deep dive into PureConfig types in Scala

Folks, I am back with some more exploration on PureConfig. This time we will talk about the types. For types, we have following two things to discuss: New supported types Override behaviour for types In this blog, we will discuss … Continue reading

Posted in Scala | 1 Comment

A better way to load configuration of certain types with PureConfig in Scala

In this blog we will discuss about the better way of loading the configuration of certain types. Now a days we use typesafe config for the same purpose. PureConfig also uses typesafe config internally but also provides the better way … Continue reading

Posted in Scala | 3 Comments

Apache Spark : Handle null timestamp while reading csv in Spark 2.0.0

Hello folks, Hope you all are doing good !!! In this blog, I will discuss a problem which I faced some days back. One thing to keep in mind that this problem is specifically related to Spark version 2.0.0. Other … Continue reading

Posted in apache spark, big data, Scala, Spark | Leave a comment

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