Fading Coder

One Final Commit for the Last Sprint

Spring Cloud Gateway Core Concepts and Implementation

Introduction to Spring Cloud Gateway Spring Cloud Gateway serves as an API gateway built on the Spring ecosystem, leveraging technologies like Spring 5, Spring Boot 2.0, and Project Reactor. It provides a straightforward approach to route APIs while offering robust filter capabilities including circ...

Building Network Applications with Java and Netty Framework

Implementation Overview Netty provides a robust foundation to developing high-performance network applications in Java. This framwork simplifies the creation of scalable server applications through its event-driven architecture and comprehensive API set. Development Process The implementation follow...

An In-depth Analysis of Netty's Underlying Implementation and Core Mechanisms

<dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.109.Final</version> </dependency> Netty is a high-performance asynchronous network programming framework that simplifies development of scalable, low-latency netwo...

Understanding Packet Assembly and Disassembly in Netty's Codec Framework

In Netty, packet decoders handle inbound byte streams using consistent principles regardless of their type—length-based, delimiter-based, or custom protocol decoders. The core challenge lies in reconstructing full application messages from partial TCP reads, handling both complete packets and fragme...

Implementing HTTP and WebSocket Unified Port Handling with Spring Boot and Netty

Overview This article demonstrates how too implement a unified port handling system for both HTTP and WebSocket protocols using Spring Boot and Netty. The solution allows a single server to process both HTTP requests and WebSocket connections on the same port (e.g., 8080). Endpoint Examples: HTTP: h...

Implementing TCP Servers with Spring Boot Using BIO, NIO, and Netty

BIO (Blocking I/O) Blocking I/O dedicates a thread to each connection. Accept, read, and write operations block the calling thread until data is available or an operation completes. Under high concurrency this approach consumes many threads and context switches. BIO echo server BioEchoServer.java pa...