惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
G
Google Developers Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
V
V2EX

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why Listing Objects Is One of the Hardest Operations in C...
MaxHuo · 2026-06-24 · via DEV Community

This is Part 4 of the Object Storage Internals series.
Previous articles covered core mental models, metadata bottlenecks, and consistency tradeoffs.

When people think about object storage performance, they usually focus on reads and writes.

That makes sense.

Uploading an object sounds expensive.

Downloading an object sounds expensive.

Listing objects sounds trivial.

After all, how hard can this be?

GET /photos/

Return all the objects and move on.

The first time I started looking at object storage internals, I assumed listing was one of the easier operations.

I was wrong.

In many large-scale storage systems, listing objects is significantly more complicated than reading a single object.


Reading one object is usually straightforward

Suppose a client requests:

GET /photos/cat.png

The storage system only needs to answer a few questions:

  • Does the object exist?
  • Where is it stored?
  • Which nodes hold the data?

Once metadata provides the answer, the object can be retrieved.

The operation is targeted.

The system knows exactly what it is looking for.


Listing is a completely different problem

Now consider:

LIST /photos/

The request no longer asks for one object.

It asks for every object matching a prefix.

In a small system this is easy.

In a large distributed storage system, it becomes surprisingly expensive.

Imagine:

  • 100 billion objects
  • Hundreds of storage nodes
  • Metadata distributed across partitions

The answer to a listing request may be spread across dozens of machines.

No single node necessarily knows the complete answer.


The system has to assemble reality

A read operation usually follows a path:

Object Name
      ↓
Metadata Lookup
      ↓
Storage Node

A listing operation often looks more like:

Client
   ↓
Metadata Partition 1
Metadata Partition 2
Metadata Partition 3
Metadata Partition N
   ↓
Merge Results
Sort Results
Remove Duplicates
Return Response

The system is effectively reconstructing a view of reality from multiple sources.

That takes work.


Consistency makes it harder

Things become more interesting when objects are changing while a listing operation is running.

Imagine:

Client A uploads object X
Client B deletes object Y
Client C performs LIST

What should Client C see?

The answer depends on the consistency guarantees of the system.

Some storage systems prioritize a consistent view.

Others prioritize performance and availability.

Either way, the metadata layer now has to make decisions.

This is one reason why listing is often a metadata problem rather than a storage problem.


The first surprising lesson

Many engineers assume object storage is primarily about moving data.

In practice, large storage systems spend an enormous amount of effort managing information about data.

The actual object might be sitting safely on disk.

The hard part is determining whether that object should appear in a query result right now.


Why S3 listing behavior confused developers for years

Historically, developers occasionally encountered situations where:

  1. Upload succeeds
  2. Immediate LIST request occurs
  3. Object does not appear

The object existed.

The storage system had accepted the write.

The issue was that metadata updates had not fully converged.

From the developer's perspective, it felt like a bug.

From the storage system's perspective, it was a consequence of the consistency model.

This is one of the reasons object listing became such an important topic in storage architecture.


Scale changes everything

Imagine a bucket containing:

10,000 objects

Listing is easy.

Now imagine:

10 billion objects

The problem changes completely.

Questions suddenly appear:

  • How should metadata be partitioned?
  • How are results sorted?
  • How is pagination handled?
  • How much memory should listing consume?
  • How many metadata servers participate?

The operation that looked simple now touches some of the most important architectural decisions in the entire system.


Why storage engineers care so much about metadata

After spending time studying object storage systems, one pattern keeps appearing:

Whenever something becomes difficult, metadata is usually involved.

Part 2 of this series argued that metadata is the real system.

Listing operations are a good example.

The object data itself is often not the challenge.

The challenge is maintaining an accurate and scalable view of billions of objects while the system is constantly changing.


The trade-off nobody sees

Users see:

LIST /photos/

Storage engineers see:

Distributed metadata
Consistency guarantees
Partitioning strategy
Pagination
Failure handling
Concurrency
Scalability

The API looks simple because the storage system absorbs the complexity.

That simplicity is expensive.


Key takeaway

Reading a single object is usually about finding data.

Listing objects is about understanding the state of the entire system.

That's why listing often becomes one of the most metadata-intensive operations in cloud storage.

The bigger the system becomes, the more difficult that problem gets.


Next in this series

Part 5: Why Object Storage Systems Avoid In-Place Updates

If updating a file seems simple on your laptop, why do many object storage systems prefer creating new versions instead of modifying existing data?