r/java • u/nathanmarz • Mar 19 '26
Rama matches CockroachDB’s TPC-C performance at 40% less AWS cost
https://blog.redplanetlabs.com/2026/03/17/rama-matches-cockroachdbs-tpc-c-performance-at-40-less-aws-cost/
23
Upvotes
3
u/farnoy Mar 22 '26
Isn't that just cheating though? What's stopping me from batching "TPC-C" transactions under a single SQL transaction in CockroachDB? It would similarly amortize the replication & commit overhead per unit of work I care about (inserts, updates, whatever). If I'm particularly sneaky, I could batch them in alignment with how Cockroach is sharding the data, so they're confined to a single partition.
Rama's latency profile is impressive but you can probably overload it at a higher tpm/s and it will show its latency tail.
Microbatching isn't free either - if they're atomic, a failure in one will abort the whole batch. That can probably sacrifice goodput if you're doing DB-side validations. And your median latency is really suffering. Is it just universally higher than Cockroach until the clusters get fully loaded?
14
u/_predator_ Mar 19 '26
I swear, once this concept clicks for you, you can't unsee how horribly inefficient "un-batched" access patterns are. Of course that applies to your usual RDBMS and REST API calls as well.
1
u/agentoutlier Mar 19 '26
I get what Rama is trying to do because I have basically spent my career building software that does a lot of what it does usually with some queue like RabbitMQ or Kafka and a transactional database (and specialized indexed columnar database). In fact when I started my career it was called SEDA or "staged event driven architecture" and then became CQRS and then "event sourcing". Yes technically those are all subtly different but it ends more or less implementing your own WAL and creating various aggregates.
So Rama looks all great and dandy but one of the major reasons this approach of event sourcing / message bus is picked is not WE ARE BUILDING INTERNET SCALE.... but rather old school enterprise integration. That is some ancient fucking system you need everything to interact with and a REST API shim is not enough.
Because of this there is a reluctance to use new technology particularly new technology that is one man and doesn't really have a super OSS license. While COBOL is bad a project that picks some extinct technology can be equally bad and the irony is we pick these kinds of solutions to slowly replace the old stuff.
And the people probably willing to spend money are the above.