Spring

Spring WebFlux — WebClient

Reading Time: 3 minutes Overview This Blog will see how we could use Spring WebFlux WebClient for making non-blocking HTTP requests. What Is the WebClient? Just put, the WebClient class which provides a common method for sending or receiving data from any local, intranet, or Internet resource which is identified by a URI. The WebClient class uses the WebRequest class which provides the access to resources. It is an interface that stands for Continue Reading

black smartphone on table

Spring WebFlux — Error Handling

Reading Time: 3 minutes Introduction In this Blog, we’ll take a look at the Spring WebFlux Error Handling using @ControllerAdvice. While calling the services/micro-services anything could go wrong and result in 500 “Internal Server Errors” as shown below error: Usually, error messages like this will not be handled properly and would be propagated to all the downstream services which might impact the user experience. In some cases, applications might want to use Continue Reading

Basics of Reactive Programming

Reading Time: 4 minutes Introduction In this blog, we’ll explore some fundamental notions of reactive programming in an effort to better comprehend what it is. What is Reactive Programming? Reactive is a style of programming that encourages an event-driven, asynchronous approach to data processing. “Asynchronous data streams and change propagation are dealt with in reactive programming.“ Now let’s take a moment and understand what the above statement actually means Continue Reading

Programmers working on computer program

Introduction to Spring WebFlux

Reading Time: 2 minutes What is Spring WebFlux? Spring Webflux is a fully non-blocking, annotation-based web framework built on Project Reactor that allows you to build reactive applications on the HTTP layer. WebFlux uses a new router feature to apply functional programming to the web layer and bypass declarative controllers and Request Mappings. It internally uses Project Reactor and its publisher implementations Flux and Mono. It supports two programming Continue Reading

Introduction to Project Reactor

Reading Time: 4 minutes Introduction Reactive programming is supported by Spring Framework since version 5 and This support is built on top of Project Reactor. Project Reactor is a Reactive library for building non-blocking applications on the JVM and it is based on the Reactive Streams Specification. Project Reactor is the foundation of the reactive stack in the Spring ecosystem and it is being developed in close collaboration with Continue Reading

Visualizing data - blue matrix with data, electronic, digital, abstract, dark blue, data science

Logging in Spring WebFlux

Reading Time: 2 minutes Overview: DEBUG level logging in Spring WebFlux is compact, minimal, and human-friendly. Itfocuses on high-value bits of information that are useful over and over again vs others that areapplicable only when debugging a specific issue. TRACE level logging generally follows the same principles as DEBUG (and for example also should notbe a firehose) but can be used for debugging any issue. In addition, some log Continue Reading

Analyzing data.

A Basic Introduction To Spring WebFlux

Reading Time: 3 minutes Introduction Spring WebFlux, like SpringMVC, provides reactive, async, non-blocking programming support for web applications in an annotated Controller style. This method is comparable to how Node.js works. Javascript employs an async, non-blocking approach, which contributes to its scalability. It uses a similar architecture, but with several event loops. Spring WebFlux, a different approach to creating web apps built on reactive programming.. Reactive apps using WebFlux 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

Features of Spring Webflux

Reading Time: 3 minutes Parallel to Spring MVC, Spring WebFlux fully supports non-blocking reactive streams. It utilizes Netty as an internal server to run reactive applications, and it supports the back pressure notion. If you are comfortable with the Spring MVC programming model, working with webflux will be simple for you. Project Reactor serves as the reactive library for Spring WebFlux. All of Reactor’s operators support non-blocking back pressure Continue Reading

Man working at night coding and pointing on a screen with a pen

Introduction to Spring WebFlux

Reading Time: 3 minutes Spring 5 is the first Spring framework that offers built-in support for reactive programming. This blog is an introduction to Spring WebFlux’s . Spring frameworks that have built-in support for reactive programming. so first we will understand what is reactive programming. Reactive programming It is a programming paradigm that used an asynchronous, non-blocking, event-driven approach to data processing. Reactive programming added modeling data and events Continue Reading

Introduction to Spring WebFlux

Reading Time: 3 minutes Introduction Spring 5 includes Spring WebFlux, which provides reactive programming support for web applications.  In this blog, we’ll create a small reactive REST application using the reactive web components RestController and WebClient. We’ll also look at how to secure our reactive endpoints using Spring Security. Spring WebFlux Framework Spring WebFlux internally uses Project Reactor and its publisher implementations, Flux and Mono. The new framework supports two programming models: Annotation-based Continue Reading

Getting started with Spring Webflux

Reading Time: 3 minutes Overview Hello everyone, In this blog, I am going to discuss an introduction to webflux. The original web framework included in the Spring Framework, Spring Web MVC, was purpose-built for the Servlet API and Servlet containers. The reactive-stack web framework, SpringWebFlux was added later in version 5.0. What is Spring Webflux? Spring Webflux is fully non-blocking and supports Reactive Streams back pressure. It runs on Continue Reading

Hacker using computer, smartphone and coding to steal password and private data. Screen with code

Understanding Profiles in Microservices

Reading Time: 4 minutes In this blog, we will learn and try to build an Understanding of Spring Profiles in Microservices. I’ll answer a few questions: what are profiles and why do we need them? Your application is running, at the initial stages, it will run on the dev environment. After some time it will be running in a test environment and finally, it will be in production. So Continue Reading