News for hackers. Stuff that matters.
Re:Why TigerBeetle is the most interesting database in the w... by justinclift on Wednesday October 01, 2025 @08:23AM (#45436837)
> In less than a decade, the world has become at least three orders of magnitude more transactional. And yet the SQL databases we still use to power this are 20-30 years old. Can they hold up?

Errr yes. Without much sweat really.

Just because something started ~30 years ago doesn't mean it hasn't updated with the times, and doesn't mean it was built on bad foundations.

Re:Why TigerBeetle is the most interesting database in the w... by jorangreef on Wednesday October 01, 2025 @08:46AM (#45437046)
Joran from TigerBeetle!

Without much sweat for general purpose workloads.

But transaction processing tends to have power law contention that kills SQL row locks (cf. Amdahl’s Law).

We put a contention calculator on our homepage to show the theoretical best case limits and they’re lower than one might think: https://tigerbeetle.com/#general-purpose-databases-have-an-o...

Re:Why TigerBeetle is the most interesting database in the w... by tux3 on Wednesday October 01, 2025 @09:07AM (#45437246)
>Traditional SQL databases hold locks across the network; under Amdahl's Law, even modest contention caps write throughput at ≈100–1,000 TPS

In fact large real world systems are not limited to 100-1000 TPS, or even 10 kTPS as the calculator tries to suggest. That's not because Amdahl's law is wrong, the numbers you're plugging in are just wildly off, so the conclusions are equally nonsensical.

There might be some specific workloads where you saw those numbers, and your DB might be a good fit for this particular niche, but you shouldn't misrepresent general purpose workloads to try to prop up your DB. Claiming that SQL databases are limited to "100-1000 TPS" is unserious, it is not conductive to your cause.

Re:Why TigerBeetle is the most interesting database in the w... by oefrha on Wednesday October 01, 2025 @09:53AM (#45437773)
They’re talking about 100-1000 TPS for transactions all locking a single row, which is not wrong, just not reflective of most workloads. They’re not talking about TPS of the entire database with simultaneous operations on many independent rows. This should be reasonably clear in context, but of course when you publish grandiose claims (when viewed in isolation) and very vague graphs backing said claims people won’t be happy.

TFA contextualizes this better:

> This gets even worse when you consider the problem of hot rows, where many transactions often need to touch the same set of “house accounts”.

Re:Why TigerBeetle is the most interesting database in the w... by tomck on Wednesday October 01, 2025 @10:02AM (#45437861)
This whole page, and their response in this thread, is about tigerbeetle as a transaction processing database - e.g. financial transaction processing

I think this is very clear, I don't know why you're saying that tigerbeetle is trying to make a generic claim about general workloads

The comment you're replying to explicitly states that this isn't true for general workloads

Re:Why TigerBeetle is the most interesting database in the w... by cma256 on Wednesday October 01, 2025 @09:17AM (#45437356)
Its a financial database built for use cases where this invariant holds and built for enabling new use cases where this invariant prevented businesses from expanding into new industries. The creator says as much:

> Without much sweat for general purpose workloads.

Re:Why TigerBeetle is the most interesting database in the w... by tux3 on Wednesday October 01, 2025 @09:25AM (#45437441)
Having a niche and expanding into new industries are all fine, there is no problem with having a DB filling a particular sub-segment of the market.

But writing that traditional SQL databases cannot go above these "100-1000 TPS" numbers due to Amdahl's law is going to raise some eyebrows.

Re:Why TigerBeetle is the most interesting database in the w... by milesskorpen on Wednesday October 01, 2025 @10:04AM (#45437884)
He clearly says this is in the context of "transaction processing" in the comment you're responding to.
Re:Why TigerBeetle is the most interesting database in the w... by cma256 on Wednesday October 01, 2025 @09:40AM (#45437622)
> But writing that traditional SQL databases cannot go above these "100-1000 TPS" numbers due to Amdahl's law is going to raise some eyebrows.

I don't think that's controversial. Amdahl's law applies to all software. Its not a peculiar feature of SQL databases. The comment is well-contextualized, in my view, but reasonable minds may disagree.

Re:Why TigerBeetle is the most interesting database in the w... by WhitneyLand on Wednesday October 01, 2025 @09:35AM (#45437553)
You’re changing the subject to the company’s mission when the concern was about a specific claim made.
Re:Why TigerBeetle is the most interesting database in the w... by mbrock on Wednesday October 01, 2025 @11:46AM (#45439150)
A specific claim about OLTP processing under contention. Or how would you characterize the specific claim, specifically?
Re:Why TigerBeetle is the most interesting database in the w... by pluto_modadic on Wednesday October 01, 2025 @11:08AM (#45438608)
So, the pitch for TigerBeetle is... "you can do database schemas wrong and we're performant enough"? (and also we don't have auth)
Re:Why TigerBeetle is the most interesting database in the w... by Xelbair on Wednesday October 01, 2025 @09:01AM (#45437193)
DNS still runs strong and it was ~~designed~~ released* in the November 1983.

It still holds up basically whole of internet.

in most cases SQL is good enough for 90% of workloads.

Re:Why TigerBeetle is the most interesting database in the w... by slightwinder on Wednesday October 01, 2025 @10:08AM (#45437922)
Isn't DNS a catastrophic clusterfuck which also had to be patched up multiple times to not allow people burning down the whole world? I mean, yes, it's doing its job, but mainly because of people doing their job.
Re:Why TigerBeetle is the most interesting database in the w... by drakythe on Wednesday October 01, 2025 @10:28AM (#45438136)
People who are malicious or see an opportunity for gain will always abuse a system. Just because the DNS system has had to be patched to handle the abuse doesn't mean its badly designed. If it were as badly designed as your comment seems to imply it wouldn't be able to operate even half as well as it does.

The combustion engine's fundamental design is pretty damn good and that it had to be updated to handle unleaded gasoline isn't a knock (pun... intended?) against that design.

Re:Why TigerBeetle is the most interesting database in the w... by Xelbair on Wednesday October 01, 2025 @10:48AM (#45438349)
Quite the opposite: as it designed in a way that it could be patched and extended, while also being performant.
Re:Why TigerBeetle is the most interesting database in the w... by seemaze on Wednesday October 01, 2025 @09:08AM (#45437258)
What would DNS look like if it were released in 2025?
Re:Why TigerBeetle is the most interesting database in the w... by Something1234 on Wednesday October 01, 2025 @09:12AM (#45437299)
It would be completely centralized with a micropayment rent seeking solution to update records.
Re:Why TigerBeetle is the most interesting database in the w... by ochronus on Wednesday October 01, 2025 @09:23AM (#45437420)
I laughed at first, then I cried, because sadly, it's true.
Re:Why TigerBeetle is the most interesting database in the w... by oblio on Wednesday October 01, 2025 @09:27AM (#45437460)
I think it would actually be (pseudo-)decentralized and you'd have to mine a blockchain node containing each domain, where its creators will have reserved at least 10% of its node pool to make sure they became billionaires if it took off.

Plus micropayments, of course :-)

Re:Why TigerBeetle is the most interesting database in the w... by TZubiri on Wednesday October 01, 2025 @09:29AM (#45437488)
Nono, it would run decentralized in blockchain with a mircropayment rent seeking solution to update records.
Re:Why TigerBeetle is the most interesting database in the w... by vvern on Wednesday October 01, 2025 @10:06AM (#45437897)
You’re right that it would run on a block chain, but that fact would primarily exist to power some marketing. Everybody would end up interacting with it through a single centralized web site and API because it’s the only usable way to get it to work.
Re:Why TigerBeetle is the most interesting database in the w... by TZubiri on Wednesday October 01, 2025 @04:16PM (#45442865)
{txid:"7abde7838e8db8ba98bf8b74be77a9e787be7b8bfb7b893", gas: 0.00015, query: "A", domain: "blabla.com", actual-dns-that-will-resolve-the-query: "8.8.8.8"}
Re:Why TigerBeetle is the most interesting database in the w... by Xelbair on Wednesday October 01, 2025 @10:07AM (#45437907)
Owned by GoogleFlare with public spec, but most of it would be run as closed source application that uses extended spec akin to EEE - making it impossible to use without relying on GoogleFlare.

config defined in YAML.

Re:Why TigerBeetle is the most interesting database in the w... by Groxx on Wednesday October 01, 2025 @10:16AM (#45438013)
>config defined in YAML.

when I woke up today, I didn't really expect to be convinced that we live in a relatively good timeline, but...

Re:Why TigerBeetle is the most interesting database in the w... by Bolwin on Wednesday October 01, 2025 @05:59PM (#45444041)
Is there a standard config format for dns currently?
Re:Why TigerBeetle is the most interesting database in the w... by looperhacks on Wednesday October 01, 2025 @09:29AM (#45437481)
Certainly a JSON-based REST API that is not really RESTful just so that people can complain about it
Re:Why TigerBeetle is the most interesting database in the w... by slightwinder on Wednesday October 01, 2025 @10:10AM (#45437937)
JSON-Messages over WebSockets. And proper path-format.
Re:Why TigerBeetle is the most interesting database in the w... by wpm on Wednesday October 01, 2025 @09:20AM (#45437395)
Obfuscated behind QUIC.
Re:Why TigerBeetle is the most interesting database in the w... by kopadudl on Wednesday October 01, 2025 @09:19AM (#45437382)
Certainly some AI features
Re:Why TigerBeetle is the most interesting database in the w... by eitland on Wednesday October 01, 2025 @09:22AM (#45437411)
And it would make it really painful.

But we couldn't get rid of it because it papered over something important.

Re:Why TigerBeetle is the most interesting database in the w... by 6510 on Wednesday October 01, 2025 @01:05PM (#45440181)
...and what should it look like?
Re:Why TigerBeetle is the most interesting database in the w... by 6510 on Wednesday October 01, 2025 @05:49PM (#45443951)
Ill try answer it myself with more questions. If ranking search results is such a hard problem perhaps dividing domain names should be a tad more complex than giving all the words to the first person to ask as long as they have the money. Perhaps A web directory of some kind but that still doesn't answer the riddle of ordering.
Re:Why TigerBeetle is the most interesting database in the w... by yomismoaqui on Wednesday October 01, 2025 @09:37AM (#45437582)
Are you telling me that new shiny things are not always better that established, time tested and boring tech?

Sometimes I feel like we software engineers have the worst memory of any engineers.

Re:Why TigerBeetle is the most interesting database in the w... by sgarland on Wednesday October 01, 2025 @09:46AM (#45437680)
I don’t even think it’s memory, it’s lack of experience. A lot of the battle-tested infrastructure is now abstracted away to the point that a lot of devs are hard-pressed to explain the difference between AWS’ ALB and NLB, much less name OSS versions of them.

Actually, load balancers are a great example. The number of times I’ve seen a team re-implementing HAProxy, but poorly, is entirely too high. The reasoning is always something along the lines of “we need this extremely specific feature.” OK, and have you even read the manual for HAProxy? Or if that feature truly doesn’t exist, did you consider implementing that separately?

Re:Why TigerBeetle is the most interesting database in the w... by yomismoaqui on Wednesday October 01, 2025 @10:55AM (#45438439)
True, the only right answer for a question like "Should we use X here?" is "It depends". Maybe NIH is the right answer in some specific case but not on another that seems quite similar to the first.

Some months ago I was re-enlightened when Anders Hejlsberg (creator of C# and TypeScript) explained why they chose Go for reimplementing the TypeScript compiler, instead of using any of those languages or something like Rust.

The way they defined the problem, the tests they did and how they justify their pick is how these kind of decisions should be made if we want to call ourselves engineers.

Re:Why TigerBeetle is the most interesting database in the w... by causenad on Thursday October 02, 2025 @03:43PM (#45454511)
Kelsey Hightower gave an interesting talk on this - why understanding fundamentals will always matter more than the recent shiny new trend:

https://youtu.be/Jlqzy02k6B8

Re:Why TigerBeetle is the most interesting database in the w... by dakiol on Wednesday October 01, 2025 @08:37AM (#45436974)
I disagree. If we are talking about distributed systems in which we have N different databases, then distributed transactions are left as an exercise to the reader (that’s why we have things like Sagas).

Within a single machine, yeah, relational dbs still work like a charm.

Re:Why TigerBeetle is the most interesting database in the w... by Normal_gaussian on Wednesday October 01, 2025 @08:47AM (#45437056)
The other interesting thing to consider is that machines are a lot more powerful in all dimensions than they were 30 years ago - so many tasks that would have required distributed systems no longer do.
Re:Why TigerBeetle is the most interesting database in the w... by jandrewrogers on Wednesday October 01, 2025 @11:39AM (#45439057)
The caveat is that the hardware constraints have fundamentally changed, so database architectures from 30 years ago are effectively incapable of properly using modern hardware environments.

Databases have not been bottlenecked on storage bandwidth in a long time but most databases are designed as if this was still the case. Optimizing for memory bandwidth, the current bottleneck, leads to substantially different architectures than are commonly deployed.

Re:Why TigerBeetle is the most interesting database in the w... by jorangreef on Wednesday October 01, 2025 @08:58AM (#45437154)
DBMS design has also changed. The bottleneck for a DBMS has moved from spinning disk to CPU and per core memory bandwidth. That's also key to TigerBeetle's design. For example, with static allocation and zero-copy techniques such as zero-deserialization.

If you were to design an OLGP DBMS like Postgres today, it would look radically different. Same is true for OLTP.

Re:Why TigerBeetle is the most interesting database in the w... by pjmlp on Wednesday October 01, 2025 @09:12AM (#45437303)
I was part of a project that successfully deployed them into production using Oracle, sometimes those license costs are actually worth it.
Re:Why TigerBeetle is the most interesting database in the w... by eitland on Wednesday October 01, 2025 @09:39AM (#45437608)
Agree.

But for anyone tempted by Oracle, do remember that the upfront, agreed licence costs are only a fraction of the true price:

You’ll need someone who actually knows Oracle - either already in place or willing to invest a serious amount of time learning it. Without that, you’re almost certainly better off choosing a simpler database that people are comfortable with.

There’s always a non-zero risk of an Oracle rep trying to “upsell” you. And by upsell, I mean threatening legal action unless you cough up for additional bits a new salesperson has suddenly decided you’re using. (A company I worked with sold Oracle licences and had a long, happy relationship with them - until one day they went after us over some development databases. Someone higher up at Oracle smoothed it over, but the whole experience was unnerving enough.)

Incidental and accidental complexity: I’ve worked with Windows from 3.1 through to Server 2008, with Linux from early Red Hat in 2001 through to the latest production distros, plus a fair share of weird and wonderful applications, everything from 1980s/90s radar acquisition running on 2010 operating systems through a wide range of in house, commercial and open source software and up to modern microservices — and none of it comes close to Oracle’s level of pain.

Edit: Installating Delphi 6 with 14 packages came close, I used 3 days when I had to find every package scattered on disks in shelves and drawers and across ancient web paces + posted as abandonware on source forge but I guess I could learn to do that in a day if I had to do it twice a month. Oracle consistently took me 3 days - if I did everything correct on first try and didn't have to start from scratch.

Re:Why TigerBeetle is the most interesting database in the w... by MobiusHorizons on Wednesday October 01, 2025 @04:56PM (#45443407)
Wait, are you saying that oracle lets you use features you don’t have a license for, but then threatens to sue you for using them? I guess I shouldn’t be surprised given oracle’s business model, but I am surprised they let you use the feature in the first place.
Re:Why TigerBeetle is the most interesting database in the w... by eitland on Thursday October 02, 2025 @03:10AM (#45447039)
That was not what I was thinking of when I wrote it, but that absolutely also was a thing:

I especially remember one particular feature that was really useful and really easy to enable in Enterprise Manager, but that would cost you at least $10000 at next license review (probably more if you had licensed it for more cores etc).

What I wrote about above wasn't us changing something or using a new feature but some sales guy at their side re-interpreting what our existing agreement meant. (I was not in the discussions, I just happened to work with the guys who dealt with it and it is a long time ago so I cannot be more specific.)

Re:Why TigerBeetle is the most interesting database in the w... by MobiusHorizons on Thursday October 02, 2025 @10:20AM (#45449956)
Got it, that is much more in line with my expectations of oracle. I am constantly amazed they have any business left given these kinds of stunts.
Re:Why TigerBeetle is the most interesting database in the w... by big_hacker on Wednesday October 01, 2025 @09:07AM (#45437238)
If it's gonna fit on one machine I'm picking Postgres, Mongo or Redis before TigerBeetle and let's be honest it's not the difference between the 4 that will make it not fit on one machine.
Re:Why TigerBeetle is the most interesting database in the w... by jorangreef on Wednesday October 01, 2025 @09:53AM (#45437770)
And to be fair, those are all great general purpose solutions. For example, you could also use Postgres or Redis as queue, instead of say Redpanda or Kafka.

But our customers need separation of concerns in their architecture. While they could put the cash in the general purpose filing cabinet, they actually want the separation of concerns between OLGP system of reference (string database, i.e. PG) in the control plane, and OLTP system of record (integer/counting database, i.e. TB) in the data plane.

Re:Why TigerBeetle is the most interesting database in the w... by sgarland on Wednesday October 01, 2025 @03:31PM (#45442196)
Tbf, this is a natural consequence of companies doing premature optimization / cargo culting. There are many, many reasons to NOT go into microservices. Kelsey Hightower had some thoughts on this [0] back in 2020.

You can run a hell of a lot off of a small fleet of beefy servers fronted with a load balancer, all pointing to one DB cluster.

[0]: https://changelog.com/posts/monoliths-are-the-future

Re:Why TigerBeetle is the most interesting database in the w... by pkphilip on Wednesday October 01, 2025 @08:38AM (#45436975)
True. The older databases run very well even on hardware which was far less powerful than what is available now.
Re:Why TigerBeetle is the most interesting database in the w... by cmrdporcupine on Wednesday October 01, 2025 @09:52AM (#45437758)
Yeah, SQL is not the issue. At least not mostly.

The relational model has shown itself to be exactly the flexible and powerful model that Codd said it was, even in its relatively-debased from in SQL.

In fact the potential of it as a universal and flexible data model that abstracts away storage still remains to be fully unlocked.

Now as for existing SQL databases, yes, many of them were built on foundational assumptions about the nature of memory and secondary storage that no longer hold true.

Many of us in this industry still have our heads stuck in the past world of spinny spinny magnetic disks on platters with heads and cylinders and grinding noises. Real world hardware has moved on. We have a couple orders of magnitude higher IOPS generally available than we did just 10-15 years ago.

So I'm excited about products like CedarDB and others (Umbra before it, etc) that are being built on a foundation from day one of managing with hybrid in-memory/disk.

Throwing out SQL is not really the recipe for "performance" and the lessons of separating the storage system from the data model is still key, since the 1960s.

I am willing to grant that a specialized transaction/ledger system like TigerBeetle might have its place as an optimization strategy in a specific industry/domain, but we should not make the mistake of characterizing this as a general problem with the relational model and data storage broadly.

Re:Why TigerBeetle is the most interesting database in the w... by 9rx on Wednesday October 01, 2025 @10:05AM (#45437890)
> Throwing out SQL is not really the recipe for "performance"

We've discovered hacks to work around the limitations of SQL, so you can maintain performance with sufficient hackiness, but you have to give up "purity" to get there. Worse is better applies, I suppose, but if we were starting over today the design would be very different.

Throwing out SQL isn't strictly required, but like Rust isn't strictly required when you already have C, sometimes it is nice to take a step back and look at how you can improve upon things. Unfortunately, NoSQL turning into a story about "document databases" instead of "A better SQL" killed any momentum on that front.

Re:Why TigerBeetle is the most interesting database in the w... by cmrdporcupine on Wednesday October 01, 2025 @10:12AM (#45437967)
No, I'm arguing in fact the opposite and you'll have to prove the point wrong instead of drive-by insisting on this. The point of Codd's original paper was to separate concerns about data storage from its representation and to propose an elegant representational & transformation & query model based on first order logic and I believe he succeeded.

SQL was the first serious attempt to translate this into a working system, and it's full of warts, but the underlying model it is reaching towards retains its elegance.

But most importantly the principle of not tying the structure of data to its storage model is absolutely key. Not least because we can iteratively and flexibly improve the storage model over time, and not be stuck with decisions that tie us to one particular structure which is the problem that 1960s "network" and "hierarchical" databases (and modern day "key value" or "NoSQL" databases) cause.

Re:Why TigerBeetle is the most interesting database in the w... by 9rx on Wednesday October 01, 2025 @10:21AM (#45438068)
The opposite of what? There is no contention with Codd's original paper. I'd suggest that Codd's Alpha paper was lacking in the same way SQL struggles, but that's a bit orthogonal to what you seem to be trying to say. I know its a bit confusing as SQL tries to name many different, independent things with the same name, but when confused it is best to become unconfused, not go off to la-la land.
Re:Why TigerBeetle is the most interesting database in the w... by cmrdporcupine on Wednesday October 01, 2025 @10:33AM (#45438185)
Notably, you edited your comment after my reply :-)
Re:Why TigerBeetle is the most interesting database in the w... by 9rx on Wednesday October 01, 2025 @10:35AM (#45438216)
Strangly off-topic, but if that's where you want to go, what's notable about that? Given the confusion, there should have been no rush to reply before some minor adjustments were made. That is how you ended up here in the first place. Understand first, the consider replying.