Microservices

a man and a woman using their laptop in a bar

Swagger with Spring REST API

Reading Time: 5 minutes Swagger with Spring REST API REST is the ultimate way to expose web services nowadays. But, how do state to clients and how to use a REST API? There’s no real standard or at a minimum de facto standard to expose a REST contract. Many API spots human-readable documentation, which is currently edited and thus hard to keep perfectly synchronized with the API. Another process Continue Reading

a man wearing a virtual reality headset

Resilience4j Circuit Breaker with Spring Boot

Reading Time: 2 minutes Resilence4j Resilience4j is a Java library that provides several resilience patterns for building fault-tolerant applications. It is designed to help developers write resilient, fault-tolerant, and scalable applications with minimal effort. Resilience4j is designed to be easy to use and integrate into the applications. It also provides a flexible configuration system that allows developers to customize the behavior of each resilience pattern to suit their specific Continue Reading

ebook-2

Evolving Database using Spring Boot and Liquibase

Reading Time: 3 minutes Introduction In this Blog, we will see an example of evolving database using Spring Boot and Liquibase with YAML and SQL configuration. Here we will learn how to build applications using maven build tools. Liquibase is an open-source library for tracking, managing, and deploying database changes that can be used for any database. It helps you create the schema, run them during deployment, and also Continue Reading

Businessman playing digital tablet in cafe

Reliable Database Migrations with Liquibase and Spring Boot

Reading Time: 2 minutes In this blog, we look at database migrations with the very popular Liquibase database migration library and how you can use it in the context of a Spring Boot application. Setting Up Liquibase in Spring Boot By using default Spring Boot auto-configures Liquibase while we upload the Liquibase dependency to our construct document.Spring Boot makes use of the primary DataSource to run Liquibase (i.e. the only annotated with @primary if there is a couple of). In case we need to apply a special DataSource we can mark that bean as @LiquibaseDataSource.rather, we are able to set Continue Reading

Developing programmer Development Website design and coding technologies working

Schema migration with Liquibase and Micronaut

Reading Time: 3 minutes In today’s world of microservices, each microservice has its own set of information stored in some kind of data store. This data store can be either a database or some other system that can retain the data for a period of time. We moved to microservices because we didn’t want one set of functionality not to be impacted by the changes in other functionality. After Continue Reading

Axon snapshot

Reading Time: 3 minutes Aggregate Snapshotting The ability to take snapshots of your application and data can be crucial in maintaining its performance. That’s why we’re introducing snapshot events – a special kind of domain event that can summarize an arbitrary amount of events into a single one. Snapshot events can help reduce the number of events that need to be loaded in order to rebuild an aggregate’s state, Continue Reading

Implementation of SAGA with AxonFrameWork with SpringBoot Part.1

Reading Time: 6 minutes Introduction In Part 1 (this post), we will understand what Saga Pattern really is. We will start building the sample application using Saga Pattern. Continuing in Part 2, we will continue with our implementation. Saga Pattern proposes implementing distributed transactions in the form of Sagas. Whenever a local transaction occurs, it publishes a message or an event. Such an event is responsible for triggering the next Continue Reading

Integrating A Springboot Application with MarkLogic as backend service in easy way.

Reading Time: 3 minutes In this article, I am going to show you how to use Spring Boot as a RESTful web service and MarkLogic as a backend database and how to do marklogic integration with springboot application Introduction Assuming that you have a Springboot application which uses MarkLogic as backend service, this guide will show you how to integrate your application with MarkLogic. The first thing you need Continue Reading

Metaverse digital Avatar, Metaverse Presence, digital technology, cyber world, virtual reality

Introducing CQRS Pattern

Reading Time: 3 minutes In a traditional application, both data modification and data retrieval are handled by the same components. This can lead to bottlenecks when the application needs to scale up because all traffic has to go through the same components. CQRS is a design pattern that stands for Command Query Responsibility Segregation. It can help you build systems with fast data reads and predictable performance. But it’s Continue Reading

Run your aggregation queries at a speed of 14x without spending $$$

GraphQL with Micronaut application

Reading Time: 4 minutes In this article, we will implement a Micronaut application written in Java that uses GraphQL to expose the data. Let’s have a quick overview of the GraphQL and Micronaut frameworks before we move on to the implementation. GraphQL “GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the Continue Reading

How to start with Spring web-flux

Reading Time: 4 minutes Spring Boot provides very good support for building RESTful Web Services for enterprise applications. This blog will explain building RESTful web services using Spring Boot in detail with a pinch of reactive programming using web flux. I will mostly be walking through the code snippets which we can use to quickly start with the web flux without having to dive deep. It is like a 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

two businessmen outdoor using technology

Introduction to CQRS(Working, Uses, Benefits)

Reading Time: 2 minutes Overview The Command and Query Responsibility Segregation (CQRS) pattern separates read and write operations for a data store. Reads and writes may take entirely different paths through the application and may be applied to different data stores. CQRS relies on asynchronous replication to progressively use writes to the read view so that changes to the application state instigated by the writer are eventually observed by the reader. How CQRS Works Consider, for Continue Reading