Back to Creators
SIsiddontang

siddontang

@siddontang
Tech & ProductEnglishEmerging (1K–30K)

AI agents need databases and filesystems too. I build them. Author of TiDB

Share on X
Followers
4.6K
Typical Views
1.3K18 posts · 30d
Bookmark %
0.7%
Authority
—unknown
30d Breakout Hits
4since 2026-11-24
Reach RatioTypical Views / FollowersEmerging (1K–30K)
Typical views ≈ 28% of followers·▲ Peer Median 17%1.6×
0%▲100%

7d follower delta is accumulating (tracked since 2026-11-24); 7d net growth appears after multi-day follower snapshots are recorded.

2-Day Follower Growth

Select a ★ growth spike to view that day’s trigger post and interactions

Follower trendGrowth spike
4.6K11-254.6K011-2311-2411-25
2026-11-250 / day
Total: 4.6K
Notable Post & Bio Update

No single breakout post linked on this date.

Notable InteractionsPublic interactions

No tracked creator interactions recorded on this date.

Content Format Mix

Original 0%Thread 0%Quote 100%Reply 0%
Top & Breakout Posts
Sorted by outlier multiplier & heat
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

We've used TLA+, Jepsen, and chaos testing in TiDB, and I still worry about what we failed to model. 😂

AI makes writing formal specs easier. But who verifies that we're specifying the right thing?

Now we can formally prove the wrong thing 10x faster.

Welcome to vibe verification. 😂

Formal verification is the Rust of software correctness.

Most do not understand it, but just as people started shipping Rust because LLMs made it easier to write, we are now writing formal specifications because LLMs can generate them.

The problem is, if you do not understand what you are writing, you can never be sure that it is "correct".

8.7K85(1.0%)1831415
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

Very cool project! Git servers are turning into distributed databases: Raft, S3, immutable layers, etc.

I did a double take: Enroute uses TiKV's raft-rs for its root Raft group, and raft-engine for log storage. 😄

Database infrastructure keeps finding new jobs. 😂

We just built the most scalable Git server out there: 7,600+ concurrent pushes/s per repo at millisecond latency.

Powered by Raft and S3, designed like a modern database.

Today we're making it open source by releasing Enroute 0.3.0.

Read the write-up: t.co/y9W7YLN148

5.2K65(1.3%)8673
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

GitHub’s new storage: CAS, replicated logs, immutable packs, compaction.

Looks like a distributed DB. 😂

We built a GitHub-like service for agents too, with TiDB for metadata and bare Git repos.

New workload, old database problems.

GitHub is rebuilding how it stores Git repositories because of, well, AI agents. They published a blog post about it, and one idea that was very insightful was how it makes reading nearly free when nothing has changed. Here is how it works...

Today, even a very busy repository sees at most a few dozen writes per second. With hundreds of agents pushing to the same repository, GitHub wants thousands per second. Before we dig in, let us understand what a reference is. In Git, a reference is a name that points to a commit, like a branch:

- `main` points to commit `a1` - `fix-login` points to commit `b1`

When you push, you add your new commit and then move a reference to it. For example, pushing to `fix-login` changes it from `b1` to `b2`. The push is only complete once that reference is updated.

When someone clones or fetches, the server cannot send anything until it looks up what each reference points to. "Give me `main`" means nothing until the server knows `main` is at `a1`.

GitHub first tried two designs for storing references on plain object storage:

- Keep all references in one log file. Reading is easy, because everything is in one place. But every push has to wait its turn to write to that one file, so it topped out at a few hundred writes per second.

- Split references across many files. Pushes can now write in parallel. But to get the full picture, a read has to check every file, so reads became slow.

Each design speeds up one side and slows down the other. So the team built a dedicated replicated log called Ref-CAS to track references. It does two things:

- Writes lock only the references they change. A push says "move `fix-login` from `b1` to `b2`, but only if it is still at `b1`", and only `fix-login` is locked while that check happens. An agent pushing to `add-tests` is not affected. Agents mostly push to their own branches, so they rarely wait on each other.

- Every successful change gets the next number. Moving `fix-login` is change 101, and creating `add-tests` is change 102. The version of the repository is the latest number, so it is 102 now. Ref-CAS can tell exactly what anyone holding an older number missed.

Now, how does this make reads faster?

The replicas that serve requests keep a local copy of the references, tagged with the version they last saw. Here is an example:

1. A replica has a copy at version 100: `main` is `a1`, `fix-login` is `b1`.

2. Two agents push at the same time. `fix-login` moves to `b2` (version 101), and a new branch, `add-tests`, appears at `c1` (version 102).

3. A read arrives. The replica asks Ref-CAS: "I am at version 100, anything new?"

4. Ref-CAS answers with the updated references and the new version, plus pointers to any pack data the replica needs: `fix-login` is now `b2`, `add-tests` is `c1`, and the version is 102. The replica updates its copy.

5. The next read asks "I am at version 102". Ref-CAS says "yes, you are current" and sends no references.

So when nothing has changed, a read costs one number comparison. The replica does not need to check every reference or every segment, which was the problem with the second design.

With the new architecture, GitHub reports 7,200 pushes per second to a single repository in internal tests, with 5,000 agents pushing at once.

Classic solution to a classic problem.

5.0K40(0.8%)3823
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

After years scaling Multi-Raft in TiKV, this hits home.

At that scale, the problem isn't only replicating logs - it's managing hundreds of thousands of mostly idle groups. 😂

Root Raft handling leadership and placement? Sounds like a mini PD for Git. Love it!

Have been hard at work figuring out how to make replicated state machines both simple and scalable.

The result allows a single Enroute cluster to scale up to 300,000 repos, with more to come.

Check out our write up!

t.co/FPPryZtPaw

3.6K31(0.9%)5033
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

The hardest part of debugging distributed systems isn't triggering failures. It's reproducing the exact sequence that caused them.

Deterministic Simulation Testing changes that.

Testability isn't an afterthought. It's an architectural decision.

Distributed systems are hard to test due to inherent non-determinism in their execution traces. Unmesh Joshi describes how deterministic simulation allows reproducible execution.

t.co/ar0TBnuQpI

1.6K12(0.7%)3433
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

A million tiny files is a metadata problem, not a capacity problem.

We hit the same trade-off building TiDB Filesystem: meta and small files in TiDB, large blobs in S3.

Of course, that just trades filesystem overhead for DB write amplification and GC. 😂

Fun fact: for small blobs, SQLite can actually be faster (about 35% for 10KB blobs) than reading and writing individual files on the filesystem.

When we read a file read, we need to make bunch of system calls like open, read, and close. Each one requires a switch to kernel mode and back, long with a directory lookup and a permission check.

Now, with 100,000 small files, that overhead is paid 100,000 times. SQLite opens one file once and keeps it open, so reading a blob is mostly a lookup in a B-tree through the page cache.

Disk usage works the same way. A filesystem allocates in blocks, usually 4 KiB, so a 10 KB file takes 12 KiB on disk. SQLite packs records tightly into pages inside a single file, so there is much less wasted space.

Writes are where it gets more interesting.

Now, if you want to update 50 files atomically, raw file IO require you to write temp files, call fsync on each, rename them and fsync the directory, and still handle a crash in the middle.

SQLite gives you atomic commits from the journal out of the box.

Of course, there are trade-offs. The advantage goes away as blobs get larger. Also, a single writer is also a real limit, plus a single huge database file is harder to inspect.

Just remember this, in case you are planning to deal with large number of smaller files on your own.

Hope this helps.

1.5K12(0.8%)1902
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

I’m building a demo named, TiDB AgentSpace, to give my agents a persistent workspace. Their files and databases are still there next session, so they can pick up where they left off.

For now, it only uses TiDB Cloud’s free tier. I haven’t connected it to production yet.

Try it → t.co/xiy5XDzYOF GitHub →

1.1K10(0.9%)1434
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers
typical 1.3K

TiDB Filesystem adds a compute layer to storage. With ti exec, you can point a managed sandbox at a directory and run a program against the files already there.

We used Python to total 50,000 orders in /sales/orders.csv.

ti exec -w /sales python3 -c ’ import csv orders = csv.DictReader(open(“orders.csv”)) print(sum(int(row[“amount_cents”]) for row in orders)) ’

The sandbox read the CSV. The client received a single number, 274,695,000 cents.

You can run shell commands or bring tools like DuckDB through the same interface. TiDB Filesystem manages both the sandbox and the storage.

t.co/hGftVVtXs3

1.5K15(1.0%)1432
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

I think agent apps will grow around the user’s filesystem the way business apps grew around the database.

The database gave different apps a shared set of records that outlived any one app. For agents, the work that carries over is often a set of files.

That’s the idea behind TiDB Cloud Filesystem. When an agent needs compute, it can ask the filesystem to run code against the project’s files. The filesystem can bring in a sandbox for that task, and the files it produces stay with the user’s project.

t.co/hGftVVtpCv

8424(0.5%)903
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

AI coding made me more productive. Somehow, I’m busier than ever. 😂

I used to need a laptop to code. Now my Mac stays home while I run coding agents from my phone - even at the playground with my kids.

Compute went remote. Work followed me everywhere.

I thought AI would give me more free time.

Turns out my laptop had a lid. My work doesn’t. 😂

1.1K2(0.2%)604
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

Thanks for the suggestion, @DominikTornow! You asked about running shell commands directly on TiDB Filesystem. We’ve shipped it in public preview.

Just Bash t.co/Cg4E9NJZkR handles commands like grep inside the filesystem service, so an agent can search a log without starting a separate sandbox.

ti exec –read-only -w /logs grep -a -n ERROR app.log

2:ERROR upstream timeout 4:ERROR invalid response

Only the matching lines come back to the agent. Dominik, I’d love to hear which commands you’d like us to support next.

TiDB Filesystem · t.co/hGftVVtXs3

9893(0.3%)722
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followerszh
typical 1.3K

以前 C++ 工程师跟内存问题做斗争,Rust 工程师跟编译器吵架。

现在好了,无论是 C++ 还是 Rust,AI 帮两边写 Bug,反正最终都是工程师来背锅。

其实现实也有一个很有趣的错位。 现实中99%的项目不会超过几十万行的级别,而却有更多的声量去支持rust这种为百万千万行以上项目设计的语言。 现在AI的存在,几十万行的Cpp代码基本不会有内存安全问题,甚至有时可以放手让AI去改一部分几百万行级别的代码。 因为大代码量的工程不可能是高耦合的,局部性一般都比较好,AI目前的上下文基本能处理。 这种情况下rust以后不可能取代cpp在基础设施和各种垂直领域的地位。但rust有一点好处就是社区很活跃(先不说有多少vibe safety,就问你活不活跃吧),可以无包袱地渗入cpp和其他语言渗透不够的领域(虽然也没多少了)。 rust因为社区狂热所以才能存续。 尽管精神对内存安全,高性能和所有权设计狂热,但肉体已经和cpp没有区别了。更别说vibe safety,和cpp一样越来越多的包袱,更高的耦合度与上下文污染,难以进一步优化性能… 说到底,是cpp老了,cpp人老了。

1.7K3(0.2%)301
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

AI coding tests my patience. 😂

With engineers, I explain goals and discuss mistakes.

With AI, third mistake: “WTF? Fix it!”

We expect AI to make us 10x engineers. What if it makes us 10x worse people first?

Glad I noticed early. Maybe AI needs a “Hey, be nice!” feature. 😂

7331(0.1%)414
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

Heading to AWS re:Invent in Las Vegas!

AI agents are cool. Making them reliable at scale? That's where things get interesting.

Would love to swap notes with founders, CTOs, and builders working on agents, databases, and cloud infrastructure.

DM me to grab coffee! ☕

4660(0.0%)500
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

Love this direction. Agents need a terminal, durable state, and compute on demand - not necessarily a dedicated sandbox.

Sandboxes have become the default answer to where AI agents should live, but agents never needed the sandbox, only the terminal interface they were post-trained on.

Today we're releasing Mirage 0.1.0, a virtual terminal that separates the terminal from the data and the compute behind it.

- Mirage shell. A bash-compatible shell with Unix-like tools rewritten in Rust, keeping the semantics agents were trained on - Unified virtual filesystem. S3, Google Drive, Slack, Gmail and about 60 more data stores, all behind the same Unix-like commands - Virtual CLIs. Every tool, MCP servers included, becomes a CLI the agent already knows how to use or can discover progressively - Scriptable policy. Every command and file access can be checked by a script that sees the full terminal context - Machine routing. Commands go to local or remote machines, such as sandboxes, only when they need the real compute Because the terminal is separated from the data and the compute behind it, Mirage is light enough to live wherever the agent does, in an app, a browser tab, a FastAPI or Express server, with each command line adding only KBs of memory. Also fully open sourced in Python and TypeScript.

1120201
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

Oh, I've been using X for 15 years now.

#MyXAnniversary

5420(0.0%)401
View on X
SIsiddontang
siddontang@siddontangTech & Product4.6K followers

Love this! Two questions after seeing the robot dog demo:

- From CAD to a physical prototype - plans for one-click fabrication? - From mechanics to intelligence—any plans for electronics, firmware, and AI?

You've designed the body. Who gives it a brain? 🐶

Introducing HappyCAD: the AI teammate that designs hardware 10× faster, every mechanism proven.

It uses the best LLMs like Fable 5.2 and GPT-6 Astra to design hardware.

Comment HAPPYCAD to get an invitation code for

5460(0.0%)100
View on X