Microservices

Spring GCP BigQuery

Reading Time: 3 minutes BigQuery is Google’s fully managed, petabyte scale, low cost analytics data warehouse. It’s Serverless, highly scalable, and cost-effective multicloud data warehouse designed for business agility. BigQuery Benefits Gain insights with real-time and predictive analytics– Query streaming data in real time and get up-to-date information on all your business processes. Predict business outcomes easily with built-in machine learning–without the need to move data. Access data and Continue Reading

Intro to Spring AOP

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn about working with Spring AOP.Here we will look at what AOP is, and what features we have with AOP. Let’s start with the intro first. Spring AOP AOP stands for Aspect-Oriented ProgrammingSpring Continue Reading

Intro to Spring Reactor: Part 2

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn deep into Spring Reactor. Here we will look into Advance details about Spring Reactor like Backpressure, Operation, and more. Backpressure Backpressure is when a downstream can tell an upstream to send it Continue Reading

Intro to Spring Reactor: Part 1

Reading Time: 2 minutes The world is a stage where all of us are artists and Constant learning is the foundation of success.In order to continue your learning with something new, here were are going to learn about Spring Reactor. Let’s start with the basics about what is Reactive Programming first. Reactive Programming It’s important to understand the difference between reactive programming and reactive systems. We use both these Continue Reading

Implementing Spring Cloud Gateway Filters

Reading Time: 3 minutes Spring Cloud provides a different type of built in filters .So, they are many different type of Spring cloud Gateway filters. Also, we can create our own custom filters to suit our requirement. Spring Cloud Gateway Filters can be divided in two categories: Pre Filters Post Filters Using Predicates Spring Cloud Gateway determines which route should get called. Once it is decided the request is Continue Reading

Comparing Eureka vs. Consul.io

Reading Time: 2 minutes Overview: Hello everyone, let’s take an overview of this blog. In this blog, I will discuss how we can compare spring cloud gateway with eureka vs consul. Microservices is a newer architectural pattern for enterprise web service development. However, one of the greatest challenges with this sort of design is how to oversee the revelation of the web services. Moreover, based on this challenge, there are a few distinctive open-source alternatives. What is Eureka? Eureka Server is an application that holds the information Continue Reading

Writing Custom Route Predicate Factories and Custom Gateway Filter Factories for Spring Cloud Gateway

Reading Time: 2 minutes Route Predicate Factories The Spring Cloud Gateway compares the routes of the incoming request as part of Spring WebFlux HandlerMapping infrastructure. It has many pre-defined route predicate factories. The predicates compares on the basis of different attributes passed on the HTTP request. Gateway Filter Factories The Spring Cloud Gateway Filter Factories provide the modifications of the incoming HTTP request or outgoing HTTP response in some Continue Reading

Dynamic Configuration of Spring Cloud Gateway Routing

Reading Time: 3 minutes In this blog, we are going to see the dynamic configuration of Spring Cloud Gateway routing. The configuration of Spring Cloud Gateway can be control by a series of “RouteDefinitionLocator” interfaces, which are as follows: By default, through the @ ConfigurationProperties mechanism of SB, Spring Cloud Gateway uses PropertiesRouteDefinitionLocator to load the configuration information of routes from the configuration file. In the previous routing configuration, Continue Reading

Spring Cloud Gateway Features

Reading Time: 4 minutes Spring Cloud Gateway provides a library for building an API Gateway on top of Spring WebFlux. Spring Cloud Gateway aims to provide a simple, yet effective way to route to APIs and provide cross cutting concerns to them such as: security, monitoring/metrics, and resiliency. Features Spring Cloud Gateway features: Built on Spring Framework 5, Project Reactor and Spring Boot 2.0 Able to match routes on Continue Reading

Spring Cloud API Gateway Global Filter Example

Reading Time: 3 minutes Global filters are executed for every route defined in the API Gateway. The main difference between pre-filter and post-filter class is that the pre-filter code is executed before Spring Cloud API Gateway routes the request to a destination web service endpoint. While the post-filter code will be executed after Spring Cloud API Gateway has routed the HTTP request to a destination web service endpoint. Let’s create a global pre-filter class Continue Reading

Spring Cloud Gateway Custom Filter

Reading Time: 4 minutes Spring Cloud Gateway Spring Cloud Gateway provides a library for building API gateways on top of Spring and Java. It provides a flexible way of routing requests based on a number of criteria, as well as focuses on cross-cutting concerns such as security, resiliency, and monitoring. An API gateway allows you to implement the complexity separately from the client, moving that responsibility from user side Continue Reading

Introduction of Spring Cloud Gateway

Reading Time: 4 minutes In a distributed environment, services need to communicate with each other. However, this is interservice communication. We also have use-cases where a client outside our domain wants to hit our services for the API. So, either we can expose the address of all our microservices which can be called by clients OR we can create a Service Gateway which routes the request to various microservices Continue Reading

Spring Cloud Gateway Global Filters

Reading Time: 3 minutes Filters act as the place where you can modify the incoming requests before sending the requests to the internal microservices or before responding back to the client.The GlobalFilter interface has the same signature as GatewayFilter. These are special filters that are conditionally applied to all routes. Forward Routing Filter The ForwardRoutingFilter looks for a URI in the exchange attribute ServerWebExchangeUtils.GATEWAY_REQUEST_URL_ATTR. If the URL has a Continue Reading