Lin is Dream
Author

Lin is Dream

Sharing Java developer knowledge, practical articles, and continuous insights into computer engineering.

102
Articles
0
Likes
614
Views
0
Comments
Recent Articles

Latest from Lin is Dream

100 recent articles max
Lin is Dream
Lin is Dream
Oct 20, 2025 · Fundamentals

From Philosophy to Bits: A Minimalist Computer History and Bitwise Operator Mastery

This article traces the evolution of computers from philosophical logic to modern digital circuits, explains how logical gates enable computation, introduces bitwise operators with practical code examples, and analyzes a coupon‑code generation algorithm that combines masking, shifting, and XOR operations for secure identifier creation.

Low-Level Programmingalgorithm analysisbitwise-operators
0 likes · 12 min read
From Philosophy to Bits: A Minimalist Computer History and Bitwise Operator Mastery
Lin is Dream
Lin is Dream
Oct 14, 2025 · Backend Development

Designing a Scalable Short‑Link System: From Base62 Encoding to Security

This article explains how to build a production‑grade short‑link service, covering the background of SMS short URLs, Base62 encoding principles, database schema design, request routing, security measures such as custom alphabets, rate limiting, and signed links, and additional management features for operation and monitoring.

Rate LimitingSecuritybackend architecture
0 likes · 16 min read
Designing a Scalable Short‑Link System: From Base62 Encoding to Security
Lin is Dream
Lin is Dream
Oct 11, 2025 · Backend Development

Why Your Spring Boot File Upload Fails: Async Reading, Temp Files, and Encoding Gotchas

This article explains common pitfalls when handling file uploads in Spring Boot, including temporary file lifecycle causing FileNotFound errors in asynchronous processing, and character encoding mismatches that lead to garbled text, and provides practical solutions such as size limits, main‑thread parsing, and BOM‑based charset detection.

BOMMultipartFileencoding
0 likes · 7 min read
Why Your Spring Boot File Upload Fails: Async Reading, Temp Files, and Encoding Gotchas
Lin is Dream
Lin is Dream
Aug 29, 2025 · Backend Development

How I Built a Mini‑Netty from Scratch: Lessons in Java NIO Design

This article concludes the "From Zero Hand‑write Mini Netty" series, walking through the evolution from a simple single‑thread NIO program to a multi‑threaded, pluggable Mini‑Netty framework with heartbeat, decoding, and responsibility‑chain processing, and outlines future plans for a full‑featured Netty chat application.

BackendJavaMini Framework
0 likes · 7 min read
How I Built a Mini‑Netty from Scratch: Lessons in Java NIO Design
Lin is Dream
Lin is Dream
Aug 25, 2025 · Backend Development

How to Build a Mini‑Netty Pipeline that Decouples Decoding from Business Logic

This article explains how to redesign a Java NIO server by introducing a Netty‑style pipeline that separates decoding, logging, authentication, and business handling into independent handlers, improving extensibility, maintainability, and performance while providing complete sample code and initialization steps.

Design PatternsJavaNetty
0 likes · 15 min read
How to Build a Mini‑Netty Pipeline that Decouples Decoding from Business Logic
Lin is Dream
Lin is Dream
Aug 22, 2025 · Backend Development

Mastering Asynchronous Writes in Java NIO: Build a Reliable Write Queue

This article explains why direct writes to a Java NIO channel fail for large messages, introduces a write‑queue and OP_WRITE listener to handle partial writes, and provides a complete PacketWriter implementation that transforms synchronous writes into efficient asynchronous operations.

Java NIONettySocketChannel
0 likes · 9 min read
Mastering Asynchronous Writes in Java NIO: Build a Reliable Write Queue
Lin is Dream
Lin is Dream
Aug 18, 2025 · Backend Development

Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model

This article explains how to overcome the single‑threaded bottleneck of Java NIO by introducing a Boss‑Worker architecture, detailing the design of multiple Selectors, thread binding, client implementation, performance considerations, and provides complete open‑source code examples.

Boss-WorkerJavaNIO
0 likes · 11 min read
Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model
Lin is Dream
Lin is Dream
Aug 15, 2025 · Backend Development

Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming

This article explains what network programming is, why it matters beyond HTTP, compares BIO and NIO models, dives into Java NIO's design with selectors, channels, and ByteBuffer methods, provides full server/client code examples, and shows how Netty simplifies high‑performance networking.

ByteBufferJavaNIO
0 likes · 23 min read
Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming