Tag Archives: scala

The Tale of ‘Tail Recursion’

Recursion in computer science is a method where the solution to a problem depends on solutions to smaller instances of the same problem (as opposed to iteration). Recursions are really cool and they are highly expressive. For example consider factorial … Continue reading

Posted in Scala | Tagged , , | Leave a comment

Scala Trait and Mixin – Points to Remember

Trait can be viewed not only as interfaces in other languages, but also as classes with only parameterless constructor. Whenever there is some code in trait, the trait is called mixin. trait Alarm { def trigger(): String } In scala … Continue reading

Posted in Best Practices, Functional Programming, Scala | Tagged , , , , , , , , , , , , , | Leave a comment

Neo4j With Scala: Rest End Points with AKKA HTTP

Hello Folks, Welcome back again in the series of Neo4j with Scala . Let’s start our journey again. But before starting our journey here is the links for recap who join late us in the journey : Getting Started Neo4j … Continue reading

Posted in akka-http, Scala, scalatest | Tagged , , | 1 Comment

Document generation of Akka-HTTP using Swagger

Hello All, In this blog we are using Swagger to generate document of Akka-HTTP. For Swagger you can get more information from  Introduction to Swagger . For Akka you can get more information from Introduction to Akka-Http You can find … Continue reading

Posted in Akka, akka-http, Scala, Swagger | Tagged , , , | 3 Comments

Short Interview With SMACK Tech Stack !!!

Hello guy’s, today’s we conduct short interview with SMACK about its architecture and there uses. Let’s start with of some introduction. Interviewer: How would you describe your self ? SMACK: I am SMACK (Spark, Mesos, Akka, Cassandra and Kafka) and … Continue reading

Posted in Akka, Apache Kafka, apache spark, big data, Cassandra, Scala, Spark | Tagged , , , , , , , , , , , , | Leave a comment

Handling HTTPS requests with Akka-HTTPS Server

Hi guys, In my last blogs I explained how one can create a self-signed certificate and KeyStore in PKCS12. You can go through the previous blog, as we’ll be needing certificate and keystore  for handling HTTPS requests. https://blog.knoldus.com/2016/10/18/create-a-self-signed-ssl-certificate-using-openssl/ https://blog.knoldus.com/2016/10/26/how-to-create-a-keystore-in-pkcs12-format/ Akka-HTTP provides both Server-Side and … Continue reading

Posted in Akka, akka-http, Scala, Security, Security Audit, Security Checklist, Security Controls, Security Guidelines | Tagged , , , , , , , , , , , , , , , , , , , | 4 Comments


This post will show you how to write and read messages in Avro format to/from Kafka. Instead of using with plain-text messages, though, we will serialize our messages with Avro. That will allow us to send much more complex data … Continue reading

Posted in Scala | Tagged , , | Leave a comment

Solr Relevance Search Using SolrJ In Scala

In this blog we will see how we can perform relevance(or relevant) search in solr using solrj Http API in scala . To give brief what is relevance search : – A developer working on search relevancy focuses on the … Continue reading

Posted in big data, Scala | Tagged , , , , | 1 Comment

Setting Up Multi-Node Hadoop Cluster , just got easy !

In this blog,we are going to embark the journey of how to setup the Hadoop Multi-Node cluster on a distributed environment. So lets do not waste any time, and let’s get started. Here are steps you need to perform. Prerequisite: … Continue reading

Posted in Architecture, big data, Scala | Tagged , , , , , , | 6 Comments

Introduction to Actor Model [Akka in a Nutshell #1]

According to Akka documentation, ” An actor is a container for State, Behavior, a Mailbox, Child Actors and a Supervisor Strategy. “ Let us begin by understanding the need of an Actor Model, A lot of things have changed in … Continue reading

Posted in Scala | Tagged , , , , , , | 4 Comments