event

Rubik’s Cube with code background

Getting started with Zio-Http

Reading Time: 6 minutes What is Zio? ZIO is a functional programming library for building concurrent and asynchronous applications in Scala. It provides a set of composable and type-safe abstractions for managing side effects, such as IO, error handling, and concurrency primitives like fibers, promises, and queues. ZIO is designed to make it easier to write correct and performant concurrent code by providing a more expressive and composable API Continue Reading

young business people working with digital tablet while discussing together in conference room

Axon Terminologies

Reading Time: 3 minutes In this blog, We will discuss axon framework terminologies and servers we’ll be talking about part one the structure of an axon application but prior to diving into that, we’ll first have a couple of the axon concepts which come into play when you’re working with an axon application. You might want to learn more about like command query responsibility segregation or using commands events Continue Reading

person holding pen pointing at graph

Axon Framework: Event Sourcing with MongoDB

Reading Time: 4 minutes If you want to build Microservices, You may prefer Axon, a Java-based framework. It provides utility to implement CQRS (Command Query Responsibility Segregation), Event Sourcing, and DDD (Domain Driven Design) architectural patterns while developing a software application. Axon facilitates the implementation of Command Handling, Event Routing, Event Sourcing, Snapshotting, and many more building blocks. It has very friendly APIs to use these implementations and build Continue Reading

A Brief Introduction to Axon Framework

Reading Time: 3 minutes Need for Axon Framework Axon Framework is designed to support developers in applying the CQRS/DDD architectural pattern and Event Sourcing. It helps developers build easily scalable and maintainable applications by providing implementations of some basic building blocks, such as Aggregates, repositories, and event buses  Axon Framework, founded by Allard Buijze also working for Trifork, is an open source product with version 3 planned for Q1 2016. CQRS Example Using Continue Reading

How Kafka Relates to Axon Framework?

Reading Time: 3 minutes Axon and Kafka are used for different purposes, Axon is used for Event-Driven Architecture and provides the application-level support for domain modeling and Event Sourcing, as well as the routing of Commands and Queries, while Kafka serves as an Event Streaming system. The basic fundamental of Axon is to implement CQRS and Event Sourcing-based architecture.  With the help of this, we can design & develop Continue Reading

RDD to DataFrame Conversion in Spark

Reading Time: 2 minutes Overview In this tutorial, we’ll learn how to convert an RDD to a DataFrame in Spark. We’ll look into the details by calling each method with different parameters. Along the way, we’ll see some interesting examples that’ll help us understand concepts better. RDD and DataFrame in Spark RDD and DataFrame are two major APIs in Spark for holding and processing data. It provides us with low-level APIs for processing distributed data. Continue Reading

Scala Traits in Simple words

Reading Time: 2 minutes In this blog post, we will talk about traits in Scala. Then we will discuss how is a trait different from abstract classes. Scala Traits A trait is similar to a partial implementation of an interface. A trait in Scala can contain abstract and non-abstract methods. We can make a trait with all abstract methods or some abstract methods and some non-abstract methods. Variables declared Continue Reading

All you need to know about SOLID Principles

Reading Time: 3 minutes In this blog post, we will discuss about SOLID principles in Scala which are the 5 most recommended design principles. What are SOLID Principles ? The abbreviation SOLID stands for a collection of principles that, when combined, make code more adaptable to change. SOLID principles assist us in making our software more readable, understandable, flexible. They serve as the foundation for developing object-oriented applications that Continue Reading

How to deal with Option data type in Scala

Reading Time: 3 minutes In this blog post, we will talk about Option data type in Scala. Then we will discuss some of the methods for dealing with options. Options In Scala, an Option is a carrier of a single or no element for a specified type. An Option[T] object can be either Some[T] or None object, which represents a value that is not present. Thus, options mainly come Continue Reading

How To Use Regular Expression In Scala

Reading Time: 3 minutes Hi folks, here I am in this article going to explain Regular expression. How to form regular expression in Scala. What is Regular Expression: A regular expression is a string of characters and punctuation that represents a search pattern. Popularized by Perl and command-line utilities like Grep, regular expressions are a standard feature in the libraries of most programming languages including Scala. In Scala, we Continue Reading

Build REST API in Scala with Play Framework

Reading Time: 4 minutes Overview In earlier blogs I discussed about play framework now lets we move to further topics on play. For building simple, CRUD-style REST APIs in Scala, the Play Framework is a good solution. It has an uncomplicated API that doesn’t require us to write too much code. In this blog, we’re going to build a REST API in Scala with Play. We’ll use JSON as Continue Reading

Introduction to the Play Framework

Reading Time: 3 minutes What Play is ? Play makes you more productive. Play is also a web framework whose HTTP interface issimple, convenient, flexible, and powerful. Most importantly, Play improves on themost popular non-Java web development languages and frameworks—PHP and Rubyon Rails—by introducing the advantages of the Java Virtual Machine (JVM). Project Structure Now, it’s time to load the project code into the IDE and look at the directory Continue Reading

Future Type Operation with Scala

Reading Time: 6 minutes Introduction Scala Future represents a result of an asynchronous computation that may or may not be available yet. When we create a new Future, Scala spawns a new thread and executes its code. Once the execution is finished, the result of the computation (value or exception) will be assigned to the Future. Type Future Operations Map When we have a Future instance, we can use the map method to transform its successful result Continue Reading