Scala

KnolSnow: SNOWSQL – I

Reading Time: 2 minutes SnowSQL is a command-line tool for interactive query experience with the Snowflake Elastic Data Warehouse cloud service. Need of SnowSQL What is the need of introducing a command-line SQL tool when there is already various SQL tools are available? The answer is simple Need of modern command-line tool designed for the cloud that is easy to use, built on high-security standards, and is tightly integrated Continue Reading

integrating Cucumber with Akka-Http

Akka Cluster in use (Part 9): Effectively Resolving Split Brain Problem

Reading Time: 7 minutes We can deal with cluster failures manually, as mentioned in our blog post Manually Healing an Akka Cluster. However, it requires a DevOps engineer to be available 24 x 7. This process is very expensive and can be very frustrating (sometimes). Hence, we really need a way via which we can resolve cluster failures in an automated fashion. This is where a Split Brain Resolver Continue Reading

Type Parameterization

Reading Time: 4 minutes Introduction Hello everyone, in this blog we discussed Type Parameterization in Scala. It generally covers generic, types bounds and variance in Scala. What is type Any class, trait or object is a type Anything defined by type keyword is a type. For example, type A = String Why we use type parameterization? Type parameterization allows you to write generic classes and traits. For example, sets Continue Reading

integrating Cucumber with Akka-Http

Akka Cluster in use (Part 8): What is a Split Brain?

Reading Time: 5 minutes In our previous blog post, Manually Healing an Akka Cluster, we have already seen that if we do not handle the failures in an Akka Cluster carefully, then it can lead to disastrous situations like Split Brain. Hence, in this blog post we will learn more about the consequences of the Split Brain problem. What is Split Brain? Split Brain is a destructive condition of Continue Reading

Polyglot ability for GraalVm

Running Spring boot application as Native Image

Reading Time: 6 minutes Hi all. In the last post on GraalVm we saw how polyglot functionality works when we are working with GraalVm. We saw how multiple languages can be tied together in a single application. Moreover, we saw how to pass variables and state from one programming language to another. You can visit the post here: https://blog.knoldus.com/going-polyglot-with-graalvm/. In this blog we will cover the other aspect of Continue Reading

Polyglot ability for GraalVm

Going Polyglot with GraalVm

Reading Time: 4 minutes Hi all. In this blog we will see how we can do polyglot implementations with GraalVm. The pre-requisites for this are: Understanding of GraalVm. Knowledge of features GraalVm provides. Local Setup of GraalVm. A bit of java and python(Optional). So let’s start. What’s GraalVm? GraalVm is an Open Source project from Oracle which aims to target the JVM so that many langauges can co-exist in Continue Reading

Scala: Field And Method

Reading Time: 3 minutes In this blog, we will discuss about Scala fields and methods. As we know that fields in any language used to store the information and methods are use to define the behavior of the object. Let’s discuss more about both of them in detail. What are fields in Scala? Fields are basically keeping the state of an object. Unlike in Java, Scala fields are of Continue Reading

Working With Akka Quartz Scheduler

Reading Time: 2 minutes In this blog, I am going to discuss how you can schedule tasks with the help of akka quartz scheduler. Also, we can use akka scheduler to execute tasks but akka scheduler is not design for the long-term scheduling. Instead of this, we use akka quartz scheduler. With the help of akka quartz scheduler, we can execute the task on the basis of cron expression. Continue Reading

Simple CI/CD Pipeline Using Jenkins

Reading Time: 5 minutes In this blog we gone a see creating a CI/CD Pipeline using Jenkins. Some pre-requisites to create a CI/CD pipeline using Jenkins are. Open-JDK-8 Jenkins installed on our system At the very first we see a little bit introduction of Jenkins and why we need Jenkins Pipeline. Jenkins Jenkins is an open-source automation tool to create a continuous integration pipeline. It is used to building Continue Reading

Deploying application onto GCE using codeship

Reading Time: 3 minutes Codeship Basic uses fast, performant VMs with preinstalled technology stacks to make it super easy and fast to get started running a CI/CD pipeline. We already deploy the application on GCE by creating a VM instance. If you have no idea about that you can refer it from here. I personally experienced that whenever new version of the application occurs or any new feature added Continue Reading

The lifecycle of an Actor in Akka

Reading Time: 3 minutes Hola Amigo, I presume you are already familiar with the Actor Model i.e why you are looking for the lifecycle of an actor. So, let’s dive deeper into the Akka Actor Lifecycle. So, what happens when we create an actor and when it stops? The lifecycle of an actor starts automatically after its creation(instantiation). A started actor can right away start processing messages. So, here’s Continue Reading