Author: Akhil Vijayan

Best Practices for Cassandra Data Modeling

People new to NoSQL databases tend to relate NoSql as a relational database. But there is quite a difference between those. For people from relation background, CQL looks similar but the way to model it is different. Picking the right data model is the hardest part of using Cassandra. I will explain to you the key points that need to be kept in mind when designing a schema Continue Reading

Cassandra User-defined types(UDTs)

Cassandra supports a rich set of data types that we can use to create our tables. You can refer to all the supported data types from here. Other than that Cassandra also provides support to user-defined data types. User-defined types (UDTs) can attach multiple data fields, each named and typed, to a single column. The fields used to create a UDT may be any valid Continue Reading

Run your project using Conductr Sandbox

ConductR is a solution for managing Lightbend Reactive Platform applications across a cluster of machines. It is reactive from the ground up thus enabling operations to provide the resiliency required to unleash the full benefits of the Lightbend Reactive Platform in their organization. Conductr is suitable for running microservices in a cluster. Conductr comes with a sandbox where we can test our project locally. Now Continue Reading

uJson: a Simple Json Library

uJson is uPickle’s JSON library, which can be used to easily manipulate JSON source and data structures without converting them into Scala case-classes. It comes bundled with uPickle json serializer but it can be used standalone as well. You may refer to my previous blog to known more about uPickle. We can perform the following operations with uJson:   Add the following to the build.sbt libraryDependencies Continue Reading

Functional Error Handling in Scala

In Java, exceptions are handled using try/catch where we throw exceptions for the failure condition. That’s ok with Java but as a Scala developer, we should avoid this. Let me take an example, case class Person(name: String, location: String) val person = Person(“Akhil”, “Delhi”) def getPerson(person: Person) : Person = { if(person.location.equals(“Delhi”)) { person } else { throw new Exception(“Invalid Person Object”) } } val Continue Reading

AWS SAM Local: Test Serverless Application Locally

AWS Lambda is a serverless framework where we can just create an application, make an artifact out of it and just upload it. Developers are free from configuring the infrastructure as it is handled by AWS. Now the concern here is that when developers want to test the application after changing the code they have to, again and again, deploy the jar to AWS lambda Continue Reading

uPickle: a flexible Json Serializer

uPickle serializer is a lightweight Json library for scala. uPickle is built on top of uJson which are used for easy manipulation of json without the need of converting it to a scala case class. We can even use uJson as standalone too. In this blog, I will focus only on uPickle library. Note: uPickle does not support Scala 2.10; only 2.11 and 2.12 are supported uPickle (pronounced micro-pickle) is a Continue Reading

uPickle : Comparison with other Json Serialiers

In my previous blog, I talked about how uPickle works. Now I will be comparing it will many other json serializers where I will be serializing and deserializing scala case class. Before that let me discuss all the json serializers that I have used in my comparison. I will compare uPickle with PlayJson, Circe and Argonaut. You can get all the code that I will explain in my github repository. Continue Reading

Create AWS Lambda with ease

Hi readers, this is my second blog on AWS lambda, I covered the basics in my previous blogs. Now we will focus on the implementation part. Before starting, please keep a check on these things: Prerequisite Setup your AWS account, click here  Understanding what AWS Lambda is? click here All set let’s start.

A WalkThrough with AWS Lambda

  Serverless Architecture Serverless is an application framework for building a serverless application without having to worry about managing infrastructures. It is based on the principle of third party service (BaaS) and on custom codes which run on a container(FaaS). Serverless architecture doesn’t mean we don’t have a server. With the serverless architecture, we still have a server to run our application, it’s just that Continue Reading

Scala Clippy : Why no one is talking about?

Scala Clippy : The Helping Hand Hi all, I am back with another blog. This one is really interesting. As a developer, we usually come across many types of compilation errors some take a hard time to rectify it. This is what we require Scala Clippy. Scala Clippy provides a human-friendly explanation to some of the common errors that we make. Let’s take a simple example, Continue Reading

Getting started with Docker Compose

Prerequisite 1) Install Docker (Link – Docker setup) 2) Install Docker Compose (Link – Docker compose setup) Lets gear up with the basics of Docker. What is docker? Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries Continue Reading

%d bloggers like this: