Tagged articles

filechannel

10 articles · Page 1 of 1
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 17, 2026 · Backend Development

Production-Grade Large File Upload in Spring Boot: Chunking, Resume & OSS Direct Transfer

This article details a production-ready Spring Boot large file upload architecture covering chunked protocol design, async server-side merging with zero-copy FileChannel, OSS/MinIO direct upload via presigned URLs, resumable transfer with Redis chunk tracking, and security hardening including magic-number validation and rate limiting.

RedisSpring Bootchunked upload
0 likes · 18 min read
Production-Grade Large File Upload in Spring Boot: Chunking, Resume & OSS Direct Transfer
Java Companion
Java Companion
Apr 30, 2026 · Backend Development

JDK 26 Introduces ofFileChannel: Simplify Large File Chunk Uploads

JDK 26 adds HttpRequest.BodyPublishers.ofFileChannel, letting developers read specific file segments directly from a shared FileChannel without copying data into heap memory, dramatically reducing memory usage and simplifying parallel chunk uploads to object storage such as OSS or S3.

HttpClientJDK 26Java
0 likes · 12 min read
JDK 26 Introduces ofFileChannel: Simplify Large File Chunk Uploads
Lin is Dream
Lin is Dream
Jul 30, 2025 · Backend Development

Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps

This article explains the fundamentals of Java NIO, showing how to use Channels and ByteBuffer to efficiently read, write, and manipulate large files, including memory‑mapped files and RandomAccessFile alternatives, with clear code examples and step‑by‑step guidance.

ByteBufferJavaNIO
0 likes · 18 min read
Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps
Lobster Programming
Lobster Programming
Mar 24, 2025 · Backend Development

Boost Java File Copy Performance: 5 Proven Methods Compared

Learn five Java file copy techniques—from basic streams to NIO Files.copy, FileChannel, and RandomAccessFile—detailing their implementations, performance differences, and ideal use cases for small, large, and massive files, helping you choose the most efficient method for your project.

BufferedStreamJavaNIO
0 likes · 6 min read
Boost Java File Copy Performance: 5 Proven Methods Compared
Bin's Tech Cabin
Bin's Tech Cabin
Mar 28, 2024 · Backend Development

Why MappedByteBuffer Beats FileChannel (And When It Doesn’t) – Deep Linux Kernel Insights

This article examines the internal read/write mechanisms of Java's FileChannel and MappedByteBuffer on Linux kernel 5.4, compares their performance through detailed source analysis and benchmarks, and explains why MappedByteBuffer often outperforms FileChannel for small I/O but can be overtaken for larger transfers due to page‑fault and dirty‑page handling.

JavaLinux kernelMappedByteBuffer
0 likes · 28 min read
Why MappedByteBuffer Beats FileChannel (And When It Doesn’t) – Deep Linux Kernel Insights
Architect's Guide
Architect's Guide
Nov 6, 2022 · Backend Development

Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty

This article explains the concept of zero‑copy, how it eliminates redundant data copying in I/O operations, and demonstrates its implementation in Java through buffers, mmap+write, Sendfile, MappedByteBuffer, DirectByteBuffer, channel‑to‑channel transfers, and Netty’s composite buffers.

Java NIOMappedByteBufferNetty
0 likes · 12 min read
Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty
Shepherd Advanced Notes
Shepherd Advanced Notes
Mar 20, 2022 · Fundamentals

Understanding Java IO: BIO, NIO, and AIO Explained

The article explains Java's I/O ecosystem, covering synchronous blocking BIO, synchronous non‑blocking NIO, and asynchronous non‑blocking AIO, their classifications, practical code examples, and when to choose byte streams versus character streams.

AIOBIOBufferedStream
0 likes · 12 min read
Understanding Java IO: BIO, NIO, and AIO Explained
Programmer DD
Programmer DD
Mar 15, 2021 · Fundamentals

Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples

This article provides a comprehensive guide to Java NIO, covering its core components—Channel, Buffer, and Selector—explaining the differences from traditional IO, demonstrating file, socket, and server implementations with detailed code samples, and illustrating advanced features such as memory‑mapped files, scatter/gather, and pipe communication.

BufferJavaNIO
0 likes · 31 min read
Master Java NIO: From Basics to High‑Performance I/O with Real‑World Examples
JavaEdge
JavaEdge
Nov 6, 2020 · Backend Development

Understanding Java NIO Channels: Read, Write, and Asynchronous I/O

Java NIO's Channel API offers bidirectional, asynchronous read/write operations using Buffers, with implementations such as FileChannel, DatagramChannel, SocketChannel, and ServerSocketChannel, and the article provides a practical FileChannel example illustrating buffer handling and the essential buf.flip() step.

NIOasynchronouschannel
0 likes · 3 min read
Understanding Java NIO Channels: Read, Write, and Asynchronous I/O
ZhiKe AI
ZhiKe AI
Mar 8, 2017 · Fundamentals

Understanding Java NIO: Core Components and How They Differ from Traditional IO

This article explains Java NIO introduced in Java 1.4, covering its core components—Channels, Buffers, and Selectors—detailing channel types, buffer operations, non‑blocking behavior, selector usage, and code examples such as FileChannel and Pipe, and compares NIO with classic IO.

BuffersChannelsJava NIO
0 likes · 19 min read
Understanding Java NIO: Core Components and How They Differ from Traditional IO