Blog
Kubernetes
Modernize applications on-prem with CockroachDB on Amazon EKS-Anywhere
Managing a single Kubernetes cluster in a single environment can be a challenge, and if you extend this to multiple clusters in disparate environments, the complexity can become too much. However, there are often requirements on our applications, such as latency, policy, regulatory or costs that require us to run on-prem, in the cloud, and elsewhere. DevOps teams want an easier way to deal with these complexities without managing entirely separate deployment stacks. Often, they want the simplicity of a cloud service on-prem.
Keith McClellan
May 23, 2022
Product
CockroachDB Admission Control? Yes, please!
Last week, while running a workload consisting of 200 different queries, we noticed right away that a CPU imbalance was causing a performance issue. Looking at the first graph, below, you can see right away that one of the three CockroachDB nodes was operating at near 100% CPU. Not ideal.
Michael Goddard
May 23, 2022
Product
Engineering
Interactive demo of CockroachDB using D3
Cockroaches first evolved more than 300M years ago, and yet the O.G. is still recognizable. "Modern" cockroaches are about 200M years old; that they're still with us, largely unchanged, is quite impressive from an evolutionary perspective.
Spencer Kimball
May 20, 2022
Product
How CockroachDB operates serverless clusters with Kubernetes
Welcome! If you find yourself here wondering What does “serverless database" even mean? you may want to start with Andy Kimball’s introduction to serverless architecture post before coming back to dive in with us here. On the flip side, if you’re already thinking How ARE you running a serverless database on Kubernetes? Sometimes, my deployments take 10 minutes to fully roll out and my eyes are fully-featured YAML parsers. Theytoldmethiswouldbebetter! — you’ve come to the right blog post.
Chris Seto
May 17, 2022
Product
The guy who wrote the book on CockroachDB
Everyone here at Cockroach Labs is thrilled about the publication of our very own O’Reilly tome, CockroachDB: The Definitive Guide. Seriously delighted — as in, just-found-out-the-rest-of-today’s-meetings-are-all-canceled level of happiness. We are beyond proud to have our own hefty tech book with an iconic animal on the cover. (Or, even better, iconic insect on the cover since the fine folks at O’Reilly Media agreed to let us have a cockroach on ours). Most of all, we are delighted to have the complete workings of CockroachDB collected in a single, thorough and hands-on resource to help make distributed SQL accessible to even more users. This is thanks in large part due to Guy Harrison, who is quite literally The Guy Who Wrote The Book On CockroachDB. Guy co-authored the Definitive Guide with Cockroach Labs co-founder and chief architect, Ben Darnell, and our head of education, Jesse Seldess. “Guy’s deep existing database knowledge paired with his diligence in learning Cockroach just as deeply contributed immeasurably to the scope and thoroughness of the book,” Ben commented.
Michelle Gienow
May 10, 2022
Product
Deploy a Netlify application with TypeScript and CockroachDB
When you’re standing up a quick prototype of a web application, you probably don’t think much about how your database will scale. But in the long run, scale matters. And while scaling and deploying a highly available relational database used to be both expensive and challenging, today it’s pretty straightforward and completely free. There’s really no reason not to start with a database that’ll scale automatically.
Charlie Custer
May 9, 2022
Engineering
What are the limits of the CAP theorem?
*Note: This blog was originally published in 2017. Everything is still true today. It is being updated to include additional capabilities in CockroachDB. Namely, bounded staleness reads. The CAP theorem is a fundamental part of the theory of distributed systems. It states that in the presence of partitions (i.e. network failures), a system cannot be both consistent and available, and must choose one of the two.
Ben Darnell
May 5, 2022
applications
How to build a complete web app with Django and CockroachDB
CockroachDB is a distributed relational database that enables users to scale their application and production software without hardware limitations. CockroachDB Serverless is the fastest way to get started using this relational database. It only takes two steps: sign up using your GitHub account, then connect your cluster using the connection information relevant to your system’s operating system. Integrating CockroachDB into a Django application is seamless thanks to its feature-rich object-relational mapping (ORM) that lets us interact with the database using a fluent object-oriented API.
Rain Leander
May 3, 2022
Engineering
3 basic rules for choosing indexes
3 basic rules for choosing indexes There are a few basic rules to keep in mind when choosing indexes for a database. A good index should have these three properties: Usefulness: Speed up the execution of some queries (or enforce a constraint) Clustering: Keep records that are likely to be accessed together near each other Scattering: Keep records that are unlikely to be accessed together far apart
Ben Darnell
May 3, 2022