Studio-Scala

Event Sourced Entity in Kalix

Reading Time: 3 minutes What is an event sourced entity? Before understanding event sourced entity, let’s first understand a few terminologies: Entity – An entity is any singular, identifiable and separate object. Command – Command is an instruction which a user gives to a computer or a program to perform a specific task. State –  The state of a program is its condition regarding stored inputs. The term “state” is similarly Continue Reading

background

Event Sourcing with KALIX

Reading Time: 6 minutes As we all know, Event Sourcing is a practical approach to design a service that reliably/atomically updates the database and transmits messages/events. But before I tell you how to do it with KALIX, let me give you a little overview of KALIX. Kalix Introduction Kalix is a considerable improvement over the existing serverless model in terms of abstraction of complexity. As it provides a unifying Continue Reading

Introduction to Reactive System

Reading Time: 2 minutes We’ll take a quick look at the reactive system, as well as the principles and approach used to create it. Reactive Manifesto The Reactive Manifesto is a document that defines a set of core principles of reactive programming.Team: Jonas Boner and team membersYear: 2013Website: https://www.reactivemanifesto.org/GitHub: https://github.com/reactivemanifesto/reactivemanifesto. What is a reactive system? Reactive systems are an architectural style that enables numerous independent services to blend into Continue Reading

Airbyte OSS Metrics in Prometheus

Reading Time: 4 minutes Airbyte is a fast-growing ELT tool that helps acquire data from multiple sources. Particularly useful in building data lakes. Airbyte offers pre-built connectors to over 300 sources and 10s of destinations and also allows custom connectors to be built quickly using language SDKs. Airbyte recently released Opentelemetry-based metrics, however, the documentation has been spotty and incomplete. You can check it out here. In this blog, Continue Reading

background

Dependency Injection in Springboot

Reading Time: 2 minutes What is Dependency Injection? It helps in injecting one object into another object Make it easy to do loose coupling Managing and testing the code becomes easy Removes dependency from the program and provides information externally Consider an example: class Student { Marks marks; Student(Marks marks){ this.marks=marks; } public void setMarks(Marks marks){ this.marks=marks; } } Here the instance of Marks class is provided externally That Continue Reading

philips

The Beginner’s Guide to Easy Parallel Programming With Scala Futures

Reading Time: 3 minutes Introduction We can build a Futures API into the Scala programming language, making parallel programming much easier than using threads, locks, and callbacks. The purpose of this blog post is to provide an overview of Scala’s Futures: how they work, how you can use them, and how you can use them to leverage parallelism in your code. Creating Futures We have imported under the name Continue Reading

background

The best CODE Migration TOOL for SCALA Explained

Reading Time: 2 minutes Introduction With Scalafix, you can focus on the changes that truly merit your time and attention rather than having to deal with easy, repetitive, and tedious code transformations. Scalafix is the best code migration tool for Scala and transforms unsupported features in source files into newer alternatives and writes the result back to the original source file. Scalafix may not be able to perform automatic Continue Reading

GREAT START WITH THE REST API

Reading Time: 2 minutes REST APIs give us lightweight, flexible ways to integrate applications. And have emerged as the most straightforward method for connecting parts in microservices architectures. What is a REST API? API stands for an application programming interface. API is a protocol that defines how applications or devices can connect to and communicate with each other. A REST conforms to the design principles of the REST. REST Continue Reading

Receivers in Apache Spark Streaming

Reading Time: 2 minutes Receivers are special objects in Spark Streaming. The receiver’s goal is to consume data from data sources and move it to Spark. We create Receivers by streaming context as long-running tasks on different executors. We can build receivers by extending the abstract class Receiver. To start or stop the receiver there are two methods:- onStart() This method contains all important things like opening connections, creating threads, Continue Reading

background

Cache and Persist in Apache Spark Dataframe

Reading Time: 2 minutes Spark computations are faster than map-reduce jobs. If we haven’t designed our jobs for reusing computations then our performance will degrade for billions and trillions of data. Hence, we may need to look at the stages and use optimization techniques as one of the ways to improve performance. cache() and persist() methods provide an optimization mechanism to store the intermediate computation of a spark data frame. So we Continue Reading

How data flow in React-Redux app

Reading Time: 4 minutes Introduction Today React JS is one of the most popular javascript framework library because it is so simple to code in react js and make web applications, but in the big react project we have to also use the redux to manage the states of our application. Starting with react-redux can be challenging and painful for the beginner’s and the most tricky thing in react-redux Continue Reading

Introduction to zio-json | Encoding Decoding

Reading Time: 2 minutes In this blog we discuss how encoding and decoding of data is perform in zio using the zio-json. According to ZIO documentation, we know ZIO is a library for asynchronous and concurrent programming that promotes pure functional programming. At the core of ZIO is ZIO, a powerful effect type inspired by Haskell’s IO monad.The ZIO[R, E, A] data type has three type parameters: R – Environment Type:- The effect requires an environment Continue Reading

Environment Variables in Angular Part 1

Reading Time: 3 minutes Introduction Environment Variables are those variables, whose value changes as per the environment we are in. This will help us to change some behavior of the App based on the environment.As we all know there are majorly three stages through which an application goes through before going into production. Namely thoes stages are development, testing, staging and production. We call these stages as Environments. And Continue Reading