什么是 TigerBeetle?
TigerBeetle is a distributed financial transactions database designed for mission-critical safety and performance to power the next 30 years of Online Transaction Processing (OLTP). Written in Zig, it delivers 1000x faster performance than traditional databases while maintaining strict serializability and indestructible durability.
⚡ Key Features of TigerBeetle
🚀 1000x Faster OLTP
Purpose-built for transaction processing with 100K-500K TPS throughput and predictable low P100 latency. Executes thousands of transactions in a single query with zero lock contention.
💰 Debit/Credit Strict Consistency
Enforces double-entry accounting with strict serializability by default. Every debit has an equal and opposite credit, guaranteed by the database with no anomalies or caveats.
☁️ Multi-Cloud High Availability
Runs across AWS, GCP, and Azure simultaneously with Viewstamped Replication (VSR) consensus. Automated failover and flexible quorums ensure uninterrupted transaction processing.
🛡️ Indestructible Durability
Replicated write-ahead log with end-to-end 128-bit checksums and protocol-aware recovery. Survives disk corruption, misdirected I/O, and even helical fault injection.
🎯 Universal Schema
Debit/credit model with accounts and transfers provides a minimal and complete schema for any exchange of value across any domain - from banking to gaming to energy.
🔬 Extreme Engineering
TigerStyle methodology applies NASA's Power of 10 Rules with static allocation and 6,000+ assertion tripwires. Deterministic simulation testing runs 2000 years of faults every 24 hours.
📊 Performance Benchmarks
- 100K-500K TPS: Sustained throughput under 90% contention
- 100ms P100 Latency: Predictable tail latencies at peak load
- 100B+ Transactions: Store billions in one cluster with tiered storage
- 1B+ Accounts: Scale to billions of accounts with 20+ indexes
- 6 Replicas: Replicated, never partitioned for maximum consistency
apt upgrade 即可始终保持最新版本。
📦 从 deb.griffo.io 安装
步骤 1:添加仓库
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt updateinstall -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt update🆓 有一个永久免费的镜像。 deb-free.griffo.io 永久免费提供软件包 — 无需账号、无需订阅,最多落后上游 2 个月,安全修复立即发布。目前收录 cliamp、Ghostty、lazydocker、Oh My Posh 和 Zed;TigerBeetle 不在其中,因此今天只能通过上面的仓库安装 — 提出请求即可将其加入。
步骤 2:安装 TigerBeetle
# Install latest TigerBeetle
sudo apt install tigerbeetle
# Verify installation
tigerbeetle version# Install latest TigerBeetle
apt install tigerbeetle
# Verify installation
tigerbeetle version🎯 Quick Start Example
Create and start a TigerBeetle cluster:
# Format a data file for replica 0
tigerbeetle format --cluster=0 --replica=0 --replica-count=1 0_0.tigerbeetle
# Start the replica
tigerbeetle start --addresses=3000 0_0.tigerbeetleBasic usage with Node.js client:
const { createClient } = require('tigerbeetle-node');
const client = createClient({
cluster_id: 0n,
replica_addresses: ['3000']
});
// Create accounts
const accounts = [{
id: 1n,
ledger: 1,
code: 1,
flags: 0,
}];
await client.createAccounts(accounts);
// Create transfers
const transfers = [{
id: 1n,
debit_account_id: 1n,
credit_account_id: 2n,
amount: 100n,
ledger: 1,
code: 1,
}];
await client.createTransfers(transfers);🚀 为什么选择 deb.griffo.io?
- Official Ubuntu: TigerBeetle not available in official repositories
- Manual Download: Weekly releases require manual updates
- Docker Only: Limited to containerized deployments
- deb.griffo.io: Latest version with automatic updates
- ✅ Latest Performance: Get newest optimizations and features immediately
- ✅ Weekly Updates: Packages updated within hours of upstream releases
- ✅ Native Installation: No Docker required, runs directly 在 Ubuntu 上
- ✅ Production Ready: Battle-tested with Apache 2.0 license
- ✅ Multi-Distribution: Works on Jammy and Noble
- ✅ Easy Maintenance: Standard apt commands for updates
📦 软件包构建仓库
Debian 软件包在此 GitHub 仓库中自动构建和维护:
- 🐯 tigerbeetle-debian - Latest release builds
🔗 相关软件包
也可从 deb.griffo.io 获取:
- Zig Programming Language - TigerBeetle is written in Zig
- ZLS Language Server - For Zig development
- lazydocker - Docker management tool