Author Archives: AnujSaxena

Spark Streaming: Unit Testing DStreams

Frankly, I don’t think there’s any need of telling us, “The Developers”, the need for proper testing or Unit testing to be correct(QAs, Don’t be flattered :P). The unit test cases are the quickest way to know there’s something wrong … Continue reading

Posted in apache spark, Scala, Spark | Tagged , , | 2 Comments

Artificial Intelligence vs Machine Learning vs Deep Learning

The world as we know it is moving towards machines big time. But we can not fully utilize the working of any machine without a lot of human interaction. So in order to do that, we needed some kind of … Continue reading

Posted in artificial neural network, machine learning, Scala | Tagged , , | 2 Comments

Machine Learning with Random Forests

Machines, working on our commands, for each step, they need guidance where to go what to do. This pattern is like a child who doesn’t understand the surrounding facts to make decisions for a situation. The grown ups usually do it … Continue reading

Posted in machine learning, sbt, Scala, Tutorial | Tagged , , , , , | 4 Comments

Machine Learning with Decision Trees: Implementation

Smile is a machine learning library based on JAVA and provides Scala API too although most of the classes it uses are implemented in JAVA. To know more about smile please go through this introductory blog. Here in this blog, … Continue reading

Posted in machine learning, Scala | Tagged , , | 6 Comments

Kafka Streams: Unit Testing

Kafka Streams is a powerful API. In Kafka, we can only store our data for consumers to consume. But we always needed a processor with which we can process the data without going to an external tool like Spark, Storm … Continue reading

Posted in Apache Kafka, Scala | Tagged , , | 2 Comments

Kafka Streams : More Than Just a Dumb Storage

Whenever we hear the word Kafka, all we think about it as a messaging system with a publisher-subscriber model that we use for our streaming applications as a source and a sink. So we can say that Kafka is just a … Continue reading

Posted in Apache Kafka, Scala | Tagged , , , | 3 Comments

Lagom: Getting to Know

JUST THE RIGHT AMOUNT Lagom- [lah-gome], a swedish word meaning ‘Sufficient’ or ‘Just the right amount’. The meaning of the name ‘Microservice’ is misunderstood by a majority of people. Taking it litrelly Micro = very small i.e. very small service is not … Continue reading

Posted in Scala | Tagged , | Leave a comment

Self type Annotations in Cake Pattern

Self type annotations/references allows you to redefine this and is a way to declare the dependencies required by a component. Using a trait mixin, you can inject various implementations of dependencies In layman terms, Self type annotations/references are to ensure … Continue reading

Posted in Scala | Tagged , , , , | Leave a comment