scala

Is Logback the Solution to Your Logging Problems?

Reading Time: 4 minutes What do you do when you get an error/issue with the code? What is the first thought that comes to your mind? What if you are trying to fix a code that was written by someone else?   That’s right. We check the logs. We all know that Useful logs can provide the developer ( especially when someone has to debug/maintain someone else’s code ) Continue Reading

Understanding data persistence in Lagom

Reading Time: 4 minutes When we create any microservice, or in general any service, one of the biggest task is to manage data persistence. Lagom supports various databases for doing this task. By default, Lagom uses Cassandra to persist data.

Mocking The Right Way

Reading Time: 3 minutes Mockito is a fun way to perform unit tests, but it’s true potential can only be realised if the underlying layers are designed in such a way that there is no interaction with the internal logic of other components of the application.

Implicit Conversions In Scala: Let’s extend Functionality

Reading Time: 3 minutes Hello folks, in this blog we will see Implicit Conversions in Scala language. And how it helps to make our code more readable. Before going into much detail about implicit let’s understand why we need implicit in Scala. There is a basic difference between your own code and libraries of other people. You can change your code as your need but when you have to Continue Reading

How to make an executable jar file for deployment in scala

Reading Time: 3 minutes The importance of writing this blog is to solve the following problem(creating executable jar file) which I faced during my project. In this blog, we see a simple scala application i.e “HelloWorld” Problem: We all know that the “sbt package” command is used to create a jar file of a scala application. When I tried to run a jar file it shows the following error. Continue Reading

Beginners Guide for Mocking in Scala

Reading Time: 3 minutes We all must know how the unit test cases are one of the most important part of an application. If not? Then I must tell you that unit testing is one of the earliest testings which is performed on the unit of code and the earlier the defects are detected, the easier it is to fix. It reduces the difficulties of discovering errors contained in Continue Reading

Rejection In The Akka HTTP: Let’s handle errors scenarios more properly

Reading Time: 4 minutes Hello folks, in this blog we will see Rejection in the Akka HTTP and how it helps in handling errors scenarios in our Application. Rejection concept in Akka HTTP helps to deal with errors scenarios more properly. When a filtering directive, like the get directive. It does not allow the request to pass through its inner route . As the filter condition is not satisfy, Continue Reading

Kryo Serialization in Spark

Reading Time: 4 minutes Spark provides two types of serialization libraries: Java serialization and (default) Kryo serialization. For faster serialization and deserialization spark itself recommends to use Kryo serialization in any network-intensive application. Then why is it not set to default : Why Kryo is not set to default in Spark? The only reason Kryo is not set to default is because it requires custom registration. Although, Kryo is Continue Reading

Practical Guide: Anorm using MySQL with Scala

Reading Time: 3 minutes  In this blog, we are going to explore the Anorm. Play includes a simple data access layer called Anorms that uses plain SQL to interact with the database and provides an API to parse and transform the resulting datasets. In this blog, we will be using MySQL as our database.  You need to perform the following steps to utilize Anorm: 1)To start with anorm, you Continue Reading

ScalaGeek-Why Reactive Architecture?

Reading Time: 5 minutes In my previous blog. I discussed some In-build functionalities of ScalaGeek that makes it unique and flexible. Now In this blog, I will discuss the architecture and the tech stack that is used in ScalaGeek. Technology Stack In the ScalaGeek we have used five primary technologies for Back-end and two are used for front-end:1. Scala2. Akka3. Kafka4. Real-time database5. Firestore6. Angular 87. IonicNow I will Continue Reading