scala

Hands-on: Apache Kafka with Scala

Apache Kafka is an open sourced distributed streaming platform used for building real-time data pipelines and streaming applications. It is horizontally scalable, fault-tolerant, wicked fast, and runs in production in thousands of companies. Before the introduction of Apache Kafka, data pipleines used to be very complex and time-consuming. A separate streaming pipeline was needed for every consumer. You can guess the complexity of it with Continue Reading

Case class and object in Scala

In this blog, we are going to have a look at one of the important concept of Scala that is case class moreover we will also take a look at companion object. Before diving into a case class let’s first look at scala basics. Construct like class, traits, object, the package can have characteristics and behaviour. Scala has access modifier to restrict the use of Continue Reading

The Scala Chronicles: The Beginning.

This is the beginning of a multi-part series on Scala. Starting with an introduction to usage of var and `val` followed by Control Structures. If you have some prior programming experience, you’d feel right at home. If not, I’ll try to introduce the concepts in a way that you’d understand. Declaring “var”, or maybe not! Scala allows one to declare variables mutable or immutable. Immutable Continue Reading

Let us have a tour on Scala

Hello Readers,If you want to explore what Scala is? or why we use Scala? or even some basic concepts of Scala then this is the blog for you.If you’re a Java programmer, for example, reading this blog will surely expose you to many concepts of Scala. The name Scala stands for “scalable language”.  The language is so named because it was designed to grow with Continue Reading

Is Apache Flink the future of Real-time Streaming?

In our last blog, we had a discussion about the latest version of Spark i.e 2.4 and the new features that it has come up with. While trying to come up with various approaches to improve our performance, we got the chance to explore one of the major contenders in the race, Apache Flink. Apache Flink is an open source platform which is a streaming Continue Reading

kafka with spark

Apache Spark 2.4: Adding a little more Spark to your code

Continuing with the objectives to make Spark faster, easier, and smarter, Apache Spark recently released its fifth release in the 2.x version line i.e Spark 2.4. We were lucky enough to experiment with it so soon in one of our projects. Today we will try to highlight the major changes in this version that we explored as well as experienced in our project. In our Continue Reading

Scala: Facade Design Pattern

Hi Everyone, In our previous blogs, we have discussed several Structural design patterns i.e., Decorator design pattern, Adapter design pattern and Proxy design pattern. In this blog, we will be discussing Facade Design pattern and will try to implement it in Scala. Problem Statement: We recently had a tour to Udaipur from our office and to organize it, we inquired a travel agency and asked Continue Reading

Using Protocol Buffers in Scala

What is Protocol Buffers? Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. Continue Reading

Scheduling Jobs with Akka Scheduler

Hey folks, in this blog I am going to explain how can you schedule jobs that you want to repeat over a certain period of time with the help of Akka Scheduler. Suppose you have a use-case in which you want some cleaning background process to run a cleanup-repository method to delete records after a fixed interval of time, then look nowhere else because Akka scheduler Continue Reading

Akka Streams: Is it a Solution to Your Streaming Problems?

A few days earlier, in our project, we were using Spark streaming and initially, it worked like a charm. But as we were very close to completion of our use case, the unexpected occurred. Spark does have a lot of interesting features, but we had some more custom needs such as running a ton of varying jobs with different actors/flows. Also, we needed something which Continue Reading

Trying to use form field and file upload directive together in Akka-Http?

If you are reading this then probably you have encountered the issue that comes while accessing fields with uploading a file, and if not then let me first tell you what’s the situation that I’m talking about here, Let’s see the code where we try to use fileUpload directive and formFields together

MachineX: Association Rule Learning with KSAI

In many of my previous blogs, I have posted about Association Rule Learning, what it’s about and how it is performed. In this blog, we are going to use Association Rule Learning to actually see it in action, and for this purpose, we are going to use KSAI, a machine learning library purely written in Scala. So, let’s begin. Adding KSAI to your project You Continue Reading

Scala : Proxy Design Pattern

Hi Everyone! In our previous blogs, we have discussed Decorator design pattern and Adapter design pattern. Now, its time to discuss another Structural design pattern i.e. the Proxy design pattern. We will implement the same EUGDPR problem using the Proxy design pattern, which we implemented using the Adapter design pattern in our previous blog. Problem Statement: Earlier, in many applications, all the user-specific details like Continue Reading

Knoldus Pune Careers - Hiring Freshers

Get a head start on your career at Knoldus. Join us!