Tag

MappedByteBuffer

0 views collected around this technical thread.

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.

FileChannelJava NIOMappedByteBuffer
0 likes · 12 min read
Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty
Architect
Architect
Sep 13, 2022 · Backend Development

Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems

This article explains the concept of zero‑copy, its benefits for I/O performance, and how Java NIO, Netty, Kafka, RocketMQ and related APIs such as mmap+write and sendfile implement zero‑copy to avoid unnecessary data copying between kernel and user space.

I/O performanceJava NIOMappedByteBuffer
0 likes · 13 min read
Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems
Architect's Tech Stack
Architect's Tech Stack
Jan 19, 2022 · Backend Development

Implementing Chunked and Resumable File Upload with Fast Upload (秒传) in Java

This article explains how to implement fast (MD5‑based) upload, chunked upload, and resumable (break‑point) upload for large files in Java, detailing the Redis‑based status tracking, server‑side file handling with RandomAccessFile or MappedByteBuffer, and the required front‑end and back‑end coordination.

BackendChunked UploadFile Upload
0 likes · 13 min read
Implementing Chunked and Resumable File Upload with Fast Upload (秒传) in Java