Tagged articles
57 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 5, 2026 · Backend Development

Stop Manually Concatenating URLs: Master Spring Boot’s Powerful URI Utilities

This article walks through Spring Boot 3.5.0’s URI building tools—including UriComponents, UriBuilderFactory, encoding options, ServletUriComponentsBuilder, and MVC link generation—showing how to construct correct, automatically‑encoded URLs for RestTemplate, WebClient, and controller methods with concrete code examples and outputs.

JavaSpring Bootresttemplate
0 likes · 8 min read
Stop Manually Concatenating URLs: Master Spring Boot’s Powerful URI Utilities
Java Companion
Java Companion
Jan 20, 2026 · Backend Development

How to Integrate Spring Boot with Third‑Party APIs: HTTP Clients, Sync Strategies, and Code Samples

This article explains how to connect Spring Boot to external services by choosing the appropriate HTTP client (RestTemplate, Feign, WebClient), configuring beans, implementing service methods, and applying various data‑synchronization techniques such as full sync, UPSERT, incremental sync, webhook callbacks, and message‑queue based replication.

Incremental SyncMessage QueueSpring Boot
0 likes · 20 min read
How to Integrate Spring Boot with Third‑Party APIs: HTTP Clients, Sync Strategies, and Code Samples
Lobster Programming
Lobster Programming
Dec 8, 2025 · Backend Development

How Netflix Ribbon Implements Client‑Side Load Balancing in Java

This article explains Netflix's open‑source Ribbon client‑side load balancer, detailing how it intercepts @LoadBalanced RestTemplate calls, resolves service names to IPs using various algorithms, and forwards requests via HttpClient, while highlighting its key features such as in‑process balancing, multiple strategies, fault‑tolerance, and protocol support.

JavaRibbonclient-side load balancing
0 likes · 4 min read
How Netflix Ribbon Implements Client‑Side Load Balancing in Java
Architecture Digest
Architecture Digest
Oct 23, 2025 · Backend Development

Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead

Spring’s team announced that RestTemplate will be deprecated in Spring Framework 7.0 and removed later, outlining its limitations and presenting the new RestClient as a modern, fluent alternative, while also recommending WebClient for reactive scenarios and offering migration strategies for existing projects.

HTTP clientJavaRestClient
0 likes · 6 min read
Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead
Su San Talks Tech
Su San Talks Tech
Oct 6, 2025 · Backend Development

Why RestTemplate Is Being Retired in Spring 7 and What to Use Instead

Spring Framework 7 will deprecate RestTemplate, outlining a migration timeline, the shortcomings of the classic HTTP client, and introducing RestClient and WebClient as modern alternatives for synchronous and reactive applications, while providing guidance for both new and legacy projects.

Backend DevelopmentJavaRestClient
0 likes · 6 min read
Why RestTemplate Is Being Retired in Spring 7 and What to Use Instead
Cognitive Technology Team
Cognitive Technology Team
Jul 6, 2025 · Backend Development

Why Spring WebClient Throws OutOfMemoryError and How to Fix It

Upgrading Spring Boot's RestTemplate to the NIO‑based WebClient improves concurrency and performance, but can trigger a java.lang.OutOfMemoryError: Direct buffer memory; this article explains the cause, diagnostic steps using yCrash, and how adjusting -XX:MaxDirectMemorySize resolves the issue.

Java NIOOutOfMemoryErrorSpring Boot
0 likes · 10 min read
Why Spring WebClient Throws OutOfMemoryError and How to Fix It
Su San Talks Tech
Su San Talks Tech
May 9, 2025 · Backend Development

Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign

This article explores the hierarchy of Spring Boot interception mechanisms—Filter, HandlerInterceptor, AOP, RestTemplate, Feign, and WebFilter—detailing their typical use cases, implementation code, pitfalls, and best‑practice ordering, while providing practical tips and performance monitoring advice for robust backend development.

InterceptorJavaSpring Boot
0 likes · 8 min read
Master Spring Boot Interceptors: Filters, Handlers, AOP, RestTemplate & Feign
Architecture Digest
Architecture Digest
Nov 1, 2024 · Backend Development

Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling

Spring WebClient, the reactive replacement for the deprecated RestTemplate in Spring 5+, offers non‑blocking I/O, functional style, streaming support, and improved error handling; this article explains its benefits, demonstrates synchronous and asynchronous request patterns, timeout configuration, and comprehensive error processing with code examples.

ErrorHandlingHTTPJava
0 likes · 12 min read
Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling
Code Ape Tech Column
Code Ape Tech Column
Oct 31, 2024 · Backend Development

Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide

This article explains why RestTemplate is deprecated in Spring Framework 5+, outlines the advantages of the reactive WebClient such as non‑blocking I/O, functional style, streaming and improved error handling, and provides complete Java code examples for creating, configuring, and using WebClient synchronously and asynchronously, including timeout and error management.

ErrorHandlingHTTPJava
0 likes · 13 min read
Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide
FunTester
FunTester
Sep 12, 2024 · Backend Development

Choosing the Right Spring HTTP Client: RestTemplate vs WebClient vs RestClient

Spring offers multiple HTTP clients—RestTemplate, WebClient, and the newer RestClient—each with distinct features, performance characteristics, and suitability for different scenarios, and this guide compares their core capabilities, advantages, drawbacks, and best-use cases to help developers select the optimal client for their projects.

BackendHTTP clientJava
0 likes · 15 min read
Choosing the Right Spring HTTP Client: RestTemplate vs WebClient vs RestClient
Java Tech Enthusiast
Java Tech Enthusiast
Jan 8, 2024 · Backend Development

Migrating from RestTemplate to Spring WebClient: Benefits and Code Samples

Spring developers should replace the deprecated RestTemplate with the reactive WebClient, which offers non‑blocking I/O, a fluent functional API, streaming support, richer error handling and configurable timeouts, while still allowing synchronous calls via block(), as demonstrated by practical Spring Boot 3 code examples.

HTTPJavareactive
0 likes · 11 min read
Migrating from RestTemplate to Spring WebClient: Benefits and Code Samples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 11, 2023 · Backend Development

Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient

Spring 6 offers four powerful ways to perform remote HTTP calls—WebClient, RestTemplate, HTTP Interface, and RestClient—each with distinct APIs, configuration options, and usage patterns, and this guide walks through their setup, method signatures, request handling, and error management for Java developers.

HTTP InterfaceJavaRestClient
0 likes · 12 min read
Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient
Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.

BackendHTTPHttpClient
0 likes · 8 min read
Various Ways to Send HTTP Requests in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 23, 2023 · Backend Development

Why RestTemplate Is Deprecated and How to Migrate to Spring WebClient

This article explains why Spring's RestTemplate has been deprecated, outlines the advantages of the non‑blocking WebClient, and provides detailed migration examples—including GET, POST, error handling, streaming, retries, custom configurations, and best‑practice guidelines for using WebClient in backend development.

Backend DevelopmentJavareactive-programming
0 likes · 16 min read
Why RestTemplate Is Deprecated and How to Migrate to Spring WebClient
Java Interview Crash Guide
Java Interview Crash Guide
Oct 18, 2023 · Backend Development

Why WebClient Beats RestTemplate in Spring: Non‑Blocking I/O, Functional API, and Advanced Error Handling

This article explains why Spring's RestTemplate is deprecated in favor of WebClient, highlighting benefits such as non‑blocking I/O, a functional programming style, streaming support, improved error handling, and how to configure timeouts, with full code examples for synchronous and asynchronous requests.

HTTPJavareactive
0 likes · 13 min read
Why WebClient Beats RestTemplate in Spring: Non‑Blocking I/O, Functional API, and Advanced Error Handling
Code Ape Tech Column
Code Ape Tech Column
Oct 6, 2023 · Backend Development

Using Spring WebClient Instead of RestTemplate: Advantages and Code Examples

This article explains why RestTemplate is deprecated in Spring 5+, introduces the reactive WebClient as its replacement, outlines its advantages such as non‑blocking I/O and functional style, and provides detailed code examples for creating a client, performing synchronous and asynchronous requests, handling errors, and configuring timeouts.

Error HandlingHTTPJava
0 likes · 10 min read
Using Spring WebClient Instead of RestTemplate: Advantages and Code Examples
Top Architect
Top Architect
Mar 30, 2023 · Backend Development

Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article explains how to invoke external services from a Spring Boot application using three approaches—raw HttpClient, RestTemplate, and Feign—providing code examples, configuration steps, and tips for handling headers and tokens to ensure successful API communication.

APIHttpClientJava
0 likes · 12 min read
Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Top Architect
Top Architect
Mar 30, 2023 · Backend Development

Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot

This article explains microservice service‑splitting guidelines, demonstrates a small demo project with separate order‑service and user‑service modules, shows how to define independent databases, and provides step‑by‑step code for registering a RestTemplate bean and performing remote calls between services using Spring Boot.

Remote CallService SplittingSpring Boot
0 likes · 10 min read
Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 15, 2023 · Backend Development

Mastering Spring Boot RestTemplate and WebClient: Configuration and Customization

Learn how Spring Boot 2.6.14 simplifies calling remote REST services using RestTemplate and WebClient, including automatic configuration with RestTemplateBuilder, customization options via RestTemplateCustomizer and WebClient.Builder, and detailed code examples for building, customizing, and selecting appropriate HTTP connectors.

BackendHTTPJava
0 likes · 9 min read
Mastering Spring Boot RestTemplate and WebClient: Configuration and Customization
Top Architect
Top Architect
Mar 1, 2023 · Backend Development

Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot

This article explains microservice service‑splitting principles, demonstrates a small demo with separate order‑service and user‑service modules, shows how to define independent databases, and provides step‑by‑step code for registering a RestTemplate bean and performing remote calls between services using Spring Boot.

Remote CallService SplittingSpring Boot
0 likes · 9 min read
Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Sep 6, 2022 · Backend Development

Various Ways to Call Third‑Party HTTP APIs in Java

This article explains multiple approaches for invoking third‑party HTTP APIs in Java, covering JDK HttpURLConnection, Apache HttpClient, CloseableHttpClient, SpringBoot RestTemplate, and OkHttp, with detailed code examples, configuration steps, and usage patterns for GET and POST requests.

APIHTTPHttpClient
0 likes · 27 min read
Various Ways to Call Third‑Party HTTP APIs in Java
Selected Java Interview Questions
Selected Java Interview Questions
Aug 11, 2022 · Backend Development

Service-to-Service Calls in Spring Cloud: RestTemplate, Feign, and Load‑Balancing Strategies

This tutorial demonstrates how to implement inter‑service communication in Spring Cloud using RestTemplate and Feign, covering project setup, bean configuration, three RestTemplate invocation patterns, load‑balancing with Ribbon, and switching strategies via code or configuration files.

MicroservicesSpring Cloudfeign
0 likes · 19 min read
Service-to-Service Calls in Spring Cloud: RestTemplate, Feign, and Load‑Balancing Strategies
macrozheng
macrozheng
Aug 2, 2022 · Cloud Native

Master Spring Cloud LoadBalancer: From RestTemplate to OpenFeign

This tutorial walks through replacing Ribbon with Spring Cloud LoadBalancer, showing how to configure dependencies, set up RestTemplate and OpenFeign clients, customize caching and request transformation, and verify load‑balanced calls using Nacos as the service registry.

MicroservicesNacosOpenFeign
0 likes · 10 min read
Master Spring Cloud LoadBalancer: From RestTemplate to OpenFeign
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 31, 2021 · Backend Development

Comprehensive Guide to Using Spring RestTemplate for HTTP Requests

This article provides a detailed tutorial on Spring's RestTemplate class, covering its overview, setup, and extensive examples of GET, POST, file download, header handling, dynamic URL parameters, and integration with HttpClient and OkHttp, along with complete code snippets and best‑practice recommendations for backend Java development.

APIBackendHTTP
0 likes · 25 min read
Comprehensive Guide to Using Spring RestTemplate for HTTP Requests
Top Architect
Top Architect
Aug 24, 2021 · Backend Development

Understanding Load Balancing in Spring Cloud: Service Registration, Discovery, and Ribbon Configuration

This article explains the concept of load balancing, demonstrates how to register multiple Spring Cloud services, use DiscoveryClient and Feign for service calls, configure RestTemplate with @LoadBalanced, and dive into the source code of LoadBalancerInterceptor and RibbonLoadBalancerClient to customize load‑balancing strategies.

MicroservicesRibbonSpring Cloud
0 likes · 13 min read
Understanding Load Balancing in Spring Cloud: Service Registration, Discovery, and Ribbon Configuration
Java Architect Essentials
Java Architect Essentials
Aug 17, 2021 · Backend Development

Implementing Gray Release with Ribbon, Zuul, and Eureka in Spring Cloud

This article explains how to achieve gray release routing in a Spring Cloud microservice architecture by customizing Ribbon's load‑balancing rule, using Eureka metadata, adding version information via Zuul and Feign/RestTemplate interceptors, and configuring thread‑local propagation for consistent service selection.

RibbonSpring CloudZuul
0 likes · 15 min read
Implementing Gray Release with Ribbon, Zuul, and Eureka in Spring Cloud
Ops Development Stories
Ops Development Stories
Aug 6, 2021 · Backend Development

How Nacos and Ribbon Enable Client‑Side Load Balancing in Spring Cloud

This article explains how Nacos provides service discovery via its open API, how Spring Cloud Ribbon implements client‑side load balancing, and walks through the key source code of Ribbon, LoadBalancerInterceptor, RibbonLoadBalancerClient, ZoneAwareLoadBalancer, and Nacos server‑side handling, offering practical usage tips.

MicroservicesNacosRibbon
0 likes · 21 min read
How Nacos and Ribbon Enable Client‑Side Load Balancing in Spring Cloud
FunTester
FunTester
Dec 5, 2019 · Backend Development

Using WireMock for Integration Testing of Spring RestTemplate Services

This article explains how to write integration tests for Spring services that call external APIs by using WireMock to mock HTTP responses, handle dynamic ports, simulate error and timeout scenarios, and adjust exception handling in RestTemplate calls.

JavaWiremockresttemplate
0 likes · 10 min read
Using WireMock for Integration Testing of Spring RestTemplate Services
Programmer DD
Programmer DD
Jul 31, 2019 · Backend Development

Blocking vs Non‑Blocking in Spring: RestTemplate vs WebClient Explained

This article compares Spring's traditional RestTemplate blocking client with the newer reactive WebClient non‑blocking client, explaining their underlying mechanisms, performance differences under concurrency, and provides complete code examples for both approaches, helping developers choose the appropriate tool for efficient HTTP calls.

HTTPJavareactive
0 likes · 8 min read
Blocking vs Non‑Blocking in Spring: RestTemplate vs WebClient Explained
Programmer DD
Programmer DD
Jan 27, 2019 · Backend Development

Simplify Spring Cloud Service Calls with Nacos: RestTemplate, WebClient & Feign

This article demonstrates how to use Nacos for service registration and discovery in Spring Cloud and shows three convenient client consumption methods—enhanced RestTemplate, reactive WebClient, and declarative Feign—complete with configuration, code examples, and the underlying load‑balancing mechanism.

Spring Cloudfeignresttemplate
0 likes · 9 min read
Simplify Spring Cloud Service Calls with Nacos: RestTemplate, WebClient & Feign
Programmer DD
Programmer DD
Oct 25, 2018 · Backend Development

How to Create a Custom RestTemplate ResponseErrorHandler in Spring

This tutorial explains how to implement a custom ResponseErrorHandler for Spring's RestTemplate, inject it via RestTemplateBuilder, and test it with a mock server to gracefully convert HTTP errors into meaningful application exceptions.

BackendError HandlingJava
0 likes · 5 min read
How to Create a Custom RestTemplate ResponseErrorHandler in Spring
Programmer DD
Programmer DD
Feb 19, 2018 · Backend Development

Add Distributed Tracing to Spring Cloud Microservices with Sleuth

This guide shows how to enable Spring Cloud Sleuth in a Spring Boot microservice setup, configure Eureka discovery, add tracing dependencies, implement two simple REST services, set up application properties, run the services, and interpret the generated trace and span IDs from the console logs.

eurekaresttemplate
0 likes · 10 min read
Add Distributed Tracing to Spring Cloud Microservices with Sleuth
Programmer DD
Programmer DD
Dec 22, 2016 · Backend Development

Enable Automatic Retries for Spring Cloud Ribbon Calls

This guide explains how to configure Spring Cloud Ribbon with @LoadBalanced RestTemplate to add client‑side load balancing and a robust retry mechanism that automatically re‑issues failed requests across service instances.

LoadBalancingRetrySpring Retry
0 likes · 4 min read
Enable Automatic Retries for Spring Cloud Ribbon Calls