This article analyzes Spring Cloud Gateway's reactive architecture through three production incidents, detailing route predicates, filter chain mechanics, source code flow, and four critical tuning dimensions—thread model, connection pooling, timeout hierarchy, and off-heap memory—to prevent gateway failures under high concurrency.
This article traces an HTTP request through Spring Boot's Servlet and reactive stacks, explaining how SpringApplication chooses between Tomcat and Netty, detailing Netty's event-loop decoding, Spring Cloud Gateway's routing and filtering, Tomcat's request processing to DispatcherServlet, and four common gateway-downstream issues including timeout alignment, header forwarding, thread-model mismatch, and unsafe retries.
The author shares hands-on experience building a stock viewing app with Tencent's Kuikly Kotlin Multiplatform framework, covering multi-module project setup, network layer migration, component encapsulation, and a deep technical analysis of Kuikly's reactive update mechanism with practical solutions for child component observation.
A comprehensive guide to replacing RestTemplate with Spring WebClient for high-concurrency HTTP calls, covering connection pool isolation per downstream, three-layer timeout strategy, retry-with-backoff filtering, Resilience4j circuit breaker integration, ExchangeFilterFunction for logging/auth/tracing, and memory-safe streaming with backpressure.
The article analyzes marimo, a Python notebook tool that replaces Jupyter's manual execution order with a reactive dependency graph, saves notebooks as plain .py files for Git-friendly diffs and tooling, supports interactive widgets and SQL within the same model, and enables dependency management via uv and PEP 723, while noting trade-offs like lazy mode for long-running cells and mutable object caveats.
This article explains why Spring Cloud Gateway cannot coexist with Spring MVC due to fundamental model differences, and details how Spring Boot's DeferredImportSelector and conditional annotations enable intelligent auto-configuration by evaluating classpath, beans, and environment at runtime.
This article compares Spring Data JDBC and Spring Data R2DBC for Spring Boot 3.x/4.x projects, detailing setup, Maven dependencies, configuration, entity definitions, repository and service implementations, transaction handling, performance trade‑offs, and provides a hybrid approach that wraps JDBC calls in reactive Monos for WebFlux, helping developers decide which persistence layer best fits their reactive architecture.
The article explains how Spring Cloud Gateway achieves ultra‑high QPS by leveraging Netty's non‑blocking I/O, Project Reactor's event‑driven streams with backpressure, and lightweight route predicates combined with load‑balancing to maximize thread utilization and system throughput.
This article details integrating Sentinel with Spring Cloud Gateway to achieve intelligent rate limiting, circuit breaking, dynamic routing, and security controls, covering cluster flow control modes, hot rule updates via Nacos, performance tuning for reactive pipelines, and production-grade security patterns including IP filtering and API signature verification.
Spring WebFlux replaces the thread‑per‑request model of Spring MVC with an event‑loop, non‑blocking architecture that dramatically reduces memory and CPU usage, supports back‑pressure, streaming, and GraalVM native images, making it ideal for high‑concurrency microservices while acknowledging its learning curve and debugging challenges.
This article details a production-ready implementation of full-chain gray release using Spring Cloud Gateway, covering context propagation via Reactor Context and headers, dynamic rule engine with Caffeine and Nacos, deterministic traffic splitting, downstream interception, circuit breaking, rollback strategies, and lessons learned from reactive blocking, cache consistency, distributed transactions, and header injection pitfalls.
The article explains how Spring WebFlux replaces the thread‑per‑request model with an event‑loop, non‑blocking I/O and reactive streams, offering higher resource efficiency, built‑in back‑pressure, and better support for real‑time data, while also discussing its drawbacks and when virtual threads may be a viable alternative.
This article presents a complete knowledge map of the AgentScope Java framework—including its core components, API quick‑reference, and a high‑frequency Q&A self‑test—to help developers understand and master multi‑agent orchestration on the JVM.
This guide explains why traditional Spring MVC struggles under high concurrency, introduces Spring WebFlux’s asynchronous non‑blocking model, compares its performance to MVC, walks through core reactive concepts, shows practical code for controllers, functional endpoints, R2DBC integration, backpressure, scheduling, SSE, gateway usage, and real‑world benchmarking results.
The article examines the evolution from the synchronous, blocking RestTemplate to the reactive, non‑blocking WebClient in Spring Boot, detailing their design principles, code examples, performance characteristics, and guidance on when to choose each for modern microservice and high‑concurrency applications.
This article explains how Claude Code, a super‑intelligent AI agent, differs from traditional code‑completion tools, introduces its official SDK limitations, and provides a comprehensive guide to the community‑driven Claude Agent SDK for Java—including one‑shot, blocking, and reactive APIs and a practical RAG‑based Q&A example.
The article explains the limitations of Spring MVC's blocking model, introduces Spring WebFlux's reactive, asynchronous, non‑blocking architecture, compares annotation and functional programming models, details core components and request flow, and provides guidance on when and how to adopt WebFlux for high‑concurrency I/O‑intensive applications.
The article explains how Spring WebFlux replaces the thread‑per‑request blocking model of Spring MVC with an asynchronous, non‑blocking, reactive architecture that uses fewer threads for high‑concurrency I/O workloads, while also outlining its learning curve, ecosystem constraints, and practical decision guidelines for when to adopt it.
This article explains the debounce operator in Kotlin Flow, covering its core concept, practical scenarios like search input, multiple implementation styles—including fixed timeout, duration‑based, and dynamic debounce—along with internal mechanics, performance trade‑offs, best practices, common pitfalls, and real‑world code examples.
Spring Cloud Gateway leverages reactive programming, Netty’s non‑blocking I/O, and cluster scaling on Kubernetes or Docker to support tens of millions of QPS, using techniques like sharding, load‑balancing, DNS/Anycast, and built‑in rate‑limiting and circuit‑breaker mechanisms for resilient, high‑throughput microservice traffic.
This article introduces the five most common Reactor error‑handling operators—onErrorReturn, onErrorResume, doOnError, retry, and blockOptional—explains their distinct behaviors, appropriate scenarios, and common pitfalls, and provides concise code examples for each within Spring WebFlux.
This article explains the concept of backpressure, its implementation in Spring WebFlux, and presents practical strategies—including buffering, dropping, latest, and error handling—along with code samples to help developers manage data flow efficiently in reactive backend applications.
This article shows how to replace inefficient front‑end polling with a Spring WebFlux server‑sent events (SSE) solution that pushes file‑import progress to the browser in real time, providing complete code for the progress service, import logic, controller, and a vanilla‑JS front‑end example, plus deployment tips.
During high‑traffic spikes, traditional servlet‑based services often crash due to thread‑pool exhaustion, while reactive systems using Reactor can still fail if backpressure is ignored; this article explains the pitfalls, compares models, and provides practical backpressure solutions such as dynamic rate limiting, bounded buffering, and circuit breaking.
This article explains why the traditional Spring MVC request‑response model struggles with real‑time scenarios and shows how WebFlux and its Flux API enable server‑side data streaming, concurrent aggregation, and progressive updates for use cases such as infinite scrolling, import progress, and live notifications.
This article explains how traditional synchronous JSON responses differ from modern streaming responses, introduces reactive programming concepts, and shows step‑by‑step how to implement non‑blocking, high‑throughput APIs using Spring WebFlux, Mono/Flux, SSE, WebSocket, and related protocols.
During high‑traffic spikes, traditional servlet thread‑pool systems often collapse, but simply switching to Reactor isn’t enough; without proper backpressure control you’ll still face OOM and outages—this article explains why backpressure matters and offers practical dynamic rate‑limiting, bounded buffering, and circuit‑breaker solutions.
This article examines the origins, core principles, and practical implementation of the Model‑View‑Intent (MVI) pattern in Android, clarifies common misconceptions with Redux and MVVM, and provides Kotlin code examples and guidelines for building robust, unidirectional, immutable state architectures.
This article traces the evolution of Android's Model‑View‑Intent (MVI) architecture from its MVC and Flux roots, clarifies common misconceptions versus Redux and MVVM, and provides concrete Kotlin code examples and guidelines for implementing a truly unidirectional, immutable‑state MVI pattern in mobile apps.
This article introduces a Spring‑compatible download library that lets developers annotate a single method to download arbitrary objects—files, HTTP resources, or custom objects—while handling caching, concurrent loading, compression, and reactive response writing for both MVC and WebFlux environments.
This article provides a comprehensive walkthrough of Spring Cloud Gateway, covering its core concepts, architecture, key components such as Route, Predicate, and Filter, and detailed source‑code analysis with configuration examples and the underlying HTTP handling flow.
This article introduces deepseek4j, a Spring‑Boot‑compatible library that fully supports DeepSeek R1’s chain‑of‑thought and billing features, offering reactive streaming, easy configuration, and a built‑in debugging page, with step‑by‑step setup and code examples to help developers quickly integrate the model.
This article explains the concept of state in Flutter, distinguishes local and global state, reviews built‑in state‑handling mechanisms such as setState and InheritedWidget, outlines criteria for selecting a state‑management library, and provides a step‑by‑step guide with code examples for using the Provider package, including advanced features like MultiProvider, FutureProvider, Selector, and the underlying implementation details of InheritedProvider.
This article explains how to use Spring WebFlux's reactive, non‑blocking model to create a server‑sent events (SSE) endpoint that streams text data, and demonstrates a front‑end Vue implementation that splits the stream into characters to produce a realistic typing animation.
This article explains what a microservice gateway is, outlines the advantages of Spring Cloud Gateway, and provides step‑by‑step instructions with code examples to create, configure, and run a reactive API gateway for Java microservices.
This article introduces the RSocket binary protocol, explains its four interaction models, highlights key features such as back‑pressure and lease, and provides step‑by‑step Spring Boot 2.7 examples for Request‑Response, Request‑Stream, Channel, and Fire‑and‑Forget communication.
This article introduces Spring Cloud Gateway as a powerful tool for building scalable microservice gateways, explains its reactive architecture and advantages, and provides a step‑by‑step tutorial—including Maven dependency, route configuration, custom filter code, and deployment instructions—plus suggestions for advanced features.
This article explains how Formily structures form data, manages field dependencies through a publish‑subscribe model, and achieves precise component updates using a custom reactive system, providing practical code examples for frontend developers.
The article breaks down modern asynchronous programming by examining four core models—callbacks, Promises, reactive observer patterns, and message‑driven architectures—explaining their mechanics, pros and cons, and providing JavaScript/Dart examples and system diagrams to help developers master non‑blocking concurrency.
This article demonstrates how to use Spring Data R2DBC with Spring Boot 3 to perform reactive 1‑to‑1 and 1‑to‑many database operations, covering environment setup, entity definitions, repository queries, custom converters, and unit testing for full‑stack backend development.
This article explains Spring WebFlux's reactive programming model, compares it with Spring MVC, describes its concurrency advantages, and provides complete code examples for building a reactive Spring Boot application, helping developers decide when to adopt WebFlux.
This article presents a comprehensive analysis of the limitations of Spring Cloud Gateway, proposes a self‑developed API gateway architecture called DAG, details its core components such as request context, filter chain, async client, routing, and connection management, and demonstrates through extensive performance testing that DAG achieves significantly higher throughput, lower latency, and improved stability compared to the original SCG solution.
Learn how to integrate Spring Boot WebFlux with R2DBC for reactive database operations, covering R2DBC basics, driver selection, configuration, entity and service implementation, controller endpoints, repository usage, optimistic locking, and practical code examples to build high-performance, non-blocking backend applications.
The article recaps a Scala & Java meetup where experts discussed the challenges of traditional Java threading, introduced JDK virtual threads as a low‑overhead concurrency solution, examined their benefits and limitations, and explored the impact of virtual threads on Scala and reactive programming.
Java’s traditional synchronous blocking model wastes thread resources during I/O, leading to scalability limits, while asynchronous, reactive, and especially Java 21’s virtual threads offer non‑blocking execution paths that improve performance and simplify development without complex reactive pipelines.
Learn the fundamentals of Project Reactor’s Mono and Flux, including creation, subscription, error handling, and common operators, with detailed code examples and visual diagrams, enabling you to effectively implement reactive, asynchronous streams in WebFlux-based Java backend applications.
This article compares Spring Boot and Quarkus, detailing their architectures, reactive capabilities, native image support, and performance metrics from JMeter and VisualVM tests, while also offering migration guidance for developers moving from Spring to the Kubernetes‑native Quarkus framework.
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.
This guide explains how to set up Spring Data R2DBC with Spring Boot, covering driver selection, dependency configuration, application properties, entity definitions, CRUD services, controllers, repository usage, and optimistic locking for reactive relational database interactions.
This article introduces the Concept-Download library, explains how a single @Download annotation can handle various download sources—including files, HTTP URLs, and custom objects—by leveraging reactive programming, handler chains, source factories, concurrent loading, compression, and unified response writing for both Spring MVC and WebFlux.
To overcome Spring Cloud Gateway’s memory leaks, slow O(N) routing and complex reactive code, the team built a custom, thread‑per‑core Netty gateway with in‑memory O(1) route lookup, DAG‑based filter chains and an asynchronous client, delivering four‑times higher throughput (≈45 k QPS), ~19 ms ART, no leaks, and far‑reduced latency.
This article introduces Spring WebFlux as a reactive, non‑blocking web framework built on Spring 5, explains the concepts of reactive programming, compares it with Spring MVC, and provides practical code examples and guidance on when to choose WebFlux for Java backend development.
This article presents a comprehensive case study of the SPA system used by Qunar, detailing its business and technical complexity, the adoption of Domain‑Driven Design and an adapter‑based architecture, the migration to Spring WebFlux for reactive asynchronous processing, and the measurable improvements achieved after refactoring.
This article explains the fundamentals of Spring WebFlux, its reactive programming model with Mono and Flux, compares it to Spring MVC, and provides practical code examples for building non‑blocking backend services using Spring Boot.
This article introduces Spring WebFlux, a reactive web framework introduced in Spring 5, explains the concept of reactive programming, compares it with Spring MVC, describes its concurrency model, and provides practical code examples for building a WebFlux application with Spring Boot.
This article introduces Spring WebFlux as a reactive, non‑blocking web framework for Java, explains the concepts of reactive programming, compares it with Spring MVC, and provides practical code examples—including Mono/Flux usage, routing, and handlers—to help developers build and run a WebFlux application with Spring Boot.
This article demonstrates how to create a fully reactive backend using Spring Cloud Finchley, WebFlux, Eureka service discovery, and Reactive MongoDB, covering service registration, inter‑service communication with WebClient, and reactive data access to achieve a complete reactive microservices stack.
The article demonstrates how to boost iOS chat session page performance by refactoring heavy data‑source and business‑data processing into ReactiveObjC signals, using combineLatest and flattenMap to shift intensive tasks off the main thread, improve readability, and eliminate frame drops.
An in‑depth walkthrough of Spring Boot 2.7.10 with Spring Cloud Gateway 3.1.6 shows how the RouteToRequestUrlFilter, ReactiveLoadBalancerClientFilter, NettyRoutingFilter, and NettyWriteResponseFilter sequentially transform incoming URLs, resolve service instances via load balancing, and forward requests to target microservices.
This case study describes how the hotel business gateway at Qunar was refactored using Spring WebFlux to achieve full‑process asynchronous handling, service orchestration, and significant performance gains—including a 100% increase in single‑machine throughput, 50% reduction in response latency, and lower code complexity—while outlining the analysis, solution design, results, and future work.
This article explains Spring's transaction abstraction, detailing the roles of PlatformTransactionManager and ReactiveTransactionManager, the TransactionDefinition attributes, TransactionStatus interface, resource synchronization techniques, declarative transaction management with AOP, rollback rules, and provides XML and Java configuration examples for both JDBC and Hibernate environments.
This guide walks through creating a fully reactive microservice architecture using Spring Cloud Finchley, WebFlux, and Spring Data Reactive, including setting up a Eureka service registry, building account and customer services with reactive MongoDB repositories, configuring load‑balanced WebClient calls, and demonstrating load‑balancing across multiple instances.
This tutorial demonstrates how to create a fully reactive microservice architecture using Spring Cloud Finchley, WebFlux, Spring Data Reactive, Eureka for service discovery, and MongoDB (via Docker), covering service registration, inter‑service calls with WebClient, and reactive data access.
This tutorial demonstrates how to create a full‑reactive microservice system using Spring Cloud Finchley, WebFlux, Spring Data Reactive MongoDB, and Eureka for service discovery, covering project setup, service registration, reactive repositories, controllers, inter‑service calls with WebClient, and load‑balanced testing.
This article provides an in‑depth tutorial on Dart's Stream API, explaining the purpose and usage of various operators such as map, distinct, where, take, expand, asyncMap, transform, and terminal methods like reduce, fold, firstWhere, and includes complete code examples for each.
Learn how to configure Spring WebFlux's WebClient with various HTTP client connectors, customize memory limits, handle responses, send request bodies and form data, apply filters, and use advanced exchange methods, all illustrated with concise Java code examples for reactive backend development.
This article explores the use of Reactor in Spring Cloud Gateway, highlighting its role in enabling reactive programming for efficient API gateway implementations through non-blocking, asynchronous operations and advanced data flow management.
This article explains Spring WebFlux's functional programming model, showing how HandlerFunction and RouterFunction work together to process HTTP requests and responses with reactive types, and provides practical code examples for routing, handling, and validating data.
This article details how the Sohu video PUGC team refactored a legacy video‑object‑creation API by introducing a reactive, asynchronous, non‑blocking architecture built on RxJava, Vert.x WebClient and a custom Dubbo reactive client, achieving clearer business flow and a 43% latency reduction.
This article provides a comprehensive overview of reactive programming, explaining its data‑flow model, contrasting it with observer, reactor, and other design patterns, contrasting it with imperative, object‑oriented, declarative, and functional paradigms, and includes Java code examples illustrating the transition from command‑style to reactive implementations.
This article explains the fundamentals of reactive programming as a declarative, data‑stream‑based paradigm, describes its core concepts such as streams, events, and operators, and demonstrates how to replace traditional imperative Java code with RxJava‑based reactive implementations for a backend service that processes MQ messages, fetches data, and updates a cache while handling errors, request deduplication, and rate limiting.
This article introduces Spring WebFlux, explains the concept of reactive programming, compares it with Spring WebMVC, describes its concurrency model, and provides complete code examples for building a reactive Spring Boot application using Mono, Flux, functional routing, and WebClient.
This article introduces Spring WebFlux, explains reactive programming concepts, compares it with Spring MVC, and provides practical code examples demonstrating how to build a reactive web application using Spring Boot, Reactor's Mono and Flux, and functional routing.
This article introduces JetLinks, an open‑source, enterprise‑grade IoT platform built on a reactive Java stack, outlines its rich features and architecture, and provides step‑by‑step Docker and non‑Docker deployment instructions so developers can quickly launch and explore the system.
Flower is a Java‑based reactive programming framework built on Akka that enables developers to compose fine‑grained services into visualized, message‑driven flows, providing instant response, elasticity, and distributed asynchronous processing for high‑performance microservice architectures.
This article introduces RxJava as a reactive functional programming framework based on the observer pattern, explains its core concepts, stream types, a wide range of operators, backpressure strategies, and demonstrates its practical use for data migration between MongoDB and MySQL.
This article introduces RxJS, explaining its roots in functional and reactive programming, detailing core concepts such as Observables, Observers, Subscriptions, Subjects, and operators, and demonstrates practical code examples that illustrate how to manage asynchronous event streams effectively in modern front‑end development.
This comprehensive guide explains how RxJS brings functional reactive programming to web applications, showing real‑world examples such as online classrooms, autocomplete search, canvas drawing, and service‑layer design, while comparing it to Redux and offering debugging tools and best practices.
The article explains why database connections in Java applications usually rely on connection pools instead of IO multiplexing, discusses the blocking nature of JDBC, outlines how non‑blocking drivers could be built, and examines the practical and architectural reasons that prevent IO multiplexing from becoming the default.
Formily is a data‑plus‑protocol driven form framework that leverages reactive programming to deliver O(1) performance for massive fields, supports multiple front‑end frameworks, offers a rich ecosystem of cross‑platform components, and provides design principles and extension strategies for building high‑efficiency enterprise forms.
This guide introduces MongoDB fundamentals and demonstrates how to integrate it with Spring WebFlux to create a fully reactive CRUD service, covering dependencies, configuration, entity definitions, repository interfaces, service logic, and controller endpoints.
This article explains the fundamentals of Reactor's reactive programming model—including Mono and Flux types, map and flatMap operators, asynchronous execution, scheduler choices, and error handling—while providing practical code examples to help developers efficiently use Spring WebFlux.
This article introduces Spring Cloud Gateway, outlines its core components such as routes, predicates, and filters, and provides a detailed step‑by‑step analysis of the request handling process—including code examples, filter chain execution, routing, and response writing—offering practical insights for backend developers.
This article recommends a comprehensive CSDN blog series on reactive Spring, detailing beginner‑friendly explanations of reactive programming, lambda and functional concepts, testing tips, performance insights, and includes vivid CPU‑I/O analogies, plus useful links to the Reactor 3 manual and Apache Shenyu gateway.
This article introduces RxJS, explains the prerequisite concepts of reactive programming, streams, observer and iterator patterns, and then details core RxJS constructs such as Observable, Observer, Subscription, and Subject with code examples and visual illustrations.
This article examines the performance challenges of high‑concurrency Java services and demonstrates how applying reactive programming with Spring WebFlux and lightweight fibers via Quasar can dramatically reduce thread and memory overhead, improve throughput, and simplify asynchronous code.
This article explains the motivations behind Spring WebFlux, introduces reactive programming concepts, compares annotated controllers with functional endpoints, discusses when to choose WebFlux over Spring MVC, and provides complete code examples for building a reactive CRUD service with Spring Boot.
This article introduces RxJS, explains its reactive programming paradigm, core concepts such as Observables, Observers, Subjects, Operators and Schedulers, and demonstrates practical implementations like a draggable ball and toast notifications, providing code examples and best‑practice guidance for front‑end developers.
This article introduces the major programming paradigms frequently used in Objective‑C—including chainable, reactive, functional, procedural, and object‑oriented styles—explaining their concepts, advantages, and providing concrete code examples to help developers design cleaner, more maintainable iOS applications.
This article provides a comprehensive overview of Spring WebFlux, covering its reactive fundamentals, key components, auto‑configuration process, functional endpoints, request handling flow, performance benchmarks against Spring MVC, and recommended reactive data stores for high‑concurrency applications.
This article explains the core concepts of RxJS—including Observable, Observer, Subject, and various operators—by walking through their fundamental principles, implementation details, and practical code examples that illustrate unicast and multicast data flows in reactive JavaScript programming.
This article explains the core concepts of RxJS—including Observable, Observer, Subject, and various operators—by walking through their definitions, basic usage, static creation methods, and detailed implementation with JavaScript code examples, while comparing unicast and multicast behaviors.
This article introduces RSocket's efficient binary protocol, its four interaction models, bidirectional communication, internal frame and payload design, architecture, practical use cases like brokers and RPC, and how it integrates with reactive programming concepts such as Reactive Streams.
This article explores how the C++‑based Klee framework brings component‑based, data‑driven, and reactive UI development to native mobile and desktop apps, comparing its efficiency and architecture with modern web frameworks and RxSwift, and showcasing practical code examples.
RxJava brings reactive, event‑driven programming to Java by using Observables and Observers, offering operators, schedulers for thread control, and asynchronous, non‑blocking execution that avoids callback hell, improves performance, and fits UI events, I/O, RPC, and complex service orchestration, as demonstrated by Alibaba’s Xianyu.
The article explains reactive programming fundamentals, shows why traditional OO assignments struggle with dynamic data relationships, and introduces the LiveData Extensions library that leverages MediatorLiveData to create lifecycle‑aware, chainable operators (map, filter, merge, etc.), dramatically reducing boilerplate and improving code metrics in Android apps.
This article explains the concept of Schedulers in the Swift Combine framework, compares the default scheduling behavior with explicit subscribe(on:) and receive(on:) operators, demonstrates various Scheduler implementations (ImmediateScheduler, RunLoop, DispatchQueue, OperationQueue) through detailed code examples, and provides practical guidance for managing thread execution in reactive iOS applications.
The 2021 Online Scala Meetup organized by Tubi featured four technical talks covering a fully reactive ad‑serving platform built with Scala and Akka‑Streams, a pragmatic take on functional programming, Scala 3 typeclass implementation, and a Spring‑Akka microservice integration, followed by summaries and recruitment information.
This article explains the concepts of streaming output and reactive programming, describes the underlying HTTP chunked transfer, SSE, WebSocket and RSocket protocols, provides code examples, and outlines practical scenarios where end‑to‑end streaming improves performance and user experience.