[Last Week in AWS Extras]: Route 53, Amazon’s Premier Database

 

The problem with having a few running jokes in this newsletter is that if you weren't around when I came up with them (or, heaven forbid, you skipped an issue), they may not make much sense. Today we explore my Route 53 as a Database schtick.

 

As always, should you wish to link someone else to this post, you can forward it, or else view it on the web.

 

 

Sponsorships are fun sometimes.

 

ParkMyCloud: "Can we have one of our execs do a video chat with you?"

 

Me: "Better idea, how about I talk to one of your customers instead so we can make fun of you on your dime?"

 

It turns out I'm SUUUPER convincing, so that's what's happening! Join me and ParkMyCloud's customer Workfront TOMORROW for a no-holds-barred discussion about how they're optimizing AWS costs, and whatever other fights I can pick before ParkMyCloud realizes what's going on and kills the feed!

 

Register here to catch the fun. Sponsored

 

 

Route 53, Amazon's Premier Database

I've periodically made reference in a bunch of places to Route 53 being my preferred database.

 

But I've only really told the story in podcast and tweet thread form. I've never gone in depth as to how this terrible, terrible antipattern came to be in a blog post—which is far easier to cite.

 

Today is your lucky day!

 

Before I begin, I want to emphasize that this is tongue-in-cheek. Please do not do this.

 

There are, in 2020, far better ways to solve this problem.

DNS isn't really a database

Many years ago, I worked at a company that looked a lot like a traditional on-premises build-out, because it was. Cloud was nascent in those days, and the 2008 financial collapse was yet to come. We had a bunch of virtual machines (VMs) that were themselves running on physical hosts in racks.

 

Everything you might expect of such an environment was true. We had cabling problems, we bled on the rack nuts, we drove at unsafe speeds in the middle of the night to frantically restore service when things broke.

 

As I said, it was a different time.

 

We had some limited ability to migrate VMs between physical hosts. Live migration didn't work in our configuration, so these VMs tended to stay pretty much where we put them. This led to a series of problems that in hindsight were entirely avoidable.

 

Note to future self: You have two DNS resolvers for redundancy; perhaps do not put them both on the same physical host.

 

Which of course brings us to DNS.

 

We wanted to know in a hurry upon which host any given VM lived, so we struck upon a somewhat novel solution. DNS TXT records are a type of resource record in DNS that support arbitrary strings. They're used for a variety of "validate you own the domain," DMARC / SPF spam reduction systems, DNS-based service discovery, and other various use cases. Being the geniuses we were, we struck upon the idea of using these records to set each VM's host VM.

 

From there, it didn't take us too long to hit upon the idea that this worked super well with our sysadmin scripting language of choice: crappy shell scripts. dig TXT vm1.web.prod.ord.twitterforpets.com returned a neat defiant.prod.ord.twitterforpets.com answer. (We'll save my "Federation Starships" server naming convention for another day.) Thus, it became super easy for us to work this into our crappy management scripts.

 

"Validate that the physical host has no more VMs on it BEFORE you yank the power cable out" stopped being a sticky note that got ignored. Instead, it became a script that was generally ignored instead until right after it really needed to have worked. "This VM seems slow, which host is it on?" was now a quick DNS query away. And times were good.

 

Of course, this is horrifying today.

 

Most environments have a control plane that can give you these answers in the form of metadata. It's also close-to-but-not-the-most horrifying abuse of tagging possible in a cloud environment.

 

Functionally, what you're really looking for is something like a configuration management database or something fairly robust like Device 42. Instead of twisting low-level primitives (not to mention yourself) in knots, use something that's purpose-built for the task at hand.

And yet...

Route 53 (Amazon's managed DNS service) is the only AWS service with a public 100% SLA on the data plane. It incurs no charges for data transfer anywhere inside of AWS or out to the internet. As long as you move a hosted zone to either a new zone or a different AWS account within 12 hours, the 50¢ per month charge per zone doesn't apply.

 

The world has been rife with misuses of DNS: serving as a tunnel, a filesystem, and a DDoS cannon, for example. As such, viewing it as a database isn't the strangest idea in the world.

 

And so...

Route 53 is a database

I do declare that Route 53 is in fact a database.

 

There are libraries to make it more user-friendly to query. Every system, every language, and every SDK knows how to speak to it. It loses considerably less data than MongoDB. The pricing is reasonable even without weasel-tricks to get around it. And its underlying technology has been proven out over decades.

 

It provides "CA" on the CAP theorem conjoined triangle of success. It is, for the moment, non-relational. And it's super hard to raise $2 billion in venture money from Softbank around a technology this unexciting.

 

All of that goes to show that DNS—and, by extension, Route 53—is not only a perfectly suitable database option, it’s the best database money can buy.

 

I dare you to prove me wrong.

 

 

When using Amazon’s Elastic Kubernetes Service (EKS), you must understand which pieces of the security management role fall on you. Use this 42-page eBook from StackRox to learn about EKS cluster security, including the standard controls and best practices for minimizing the risk around cluster workloads, as well as specific requirements for securing an EKS cluster and its associated infrastructure. Sponsored

 
 
 
Corey

I’m Corey Quinn

I help companies address their horrifying AWS bills by both reducing the dollars spent and helping them understanding what they’re paying for.

 
 
The Cloud

Screaming in the Cloud & AWS Morning Brief

In addition to this newsletter, I host two podcasts: Screaming in the Cloud, about the business of cloud computing, featuring me talking to folks who are good at things; and AWS Morning Brief, a show about exclusively AWS with my snark at full-tilt.

 
 
The Cloud

Sponsor an Issue

Reach over 19,000 discerning engineers, managers, and enthusiasts who actually care about the state of Amazon's cloud ecosystems.

 



Want to skip these Last Week in AWS Extras? Click here and you won't receive these Wednesday dispatches anymore.

To make sure you keep getting these emails, please add corey@lastweekinaws.com to your address book or otherwise mark me as a permitted sender.

Want out of the loop completely? Click here to tell me to leave you alone.

 

Duckbill Group

1728 Ocean Ave #307, San Francisco, CA 94112

 
                                                           

Older messages

[Last Week in AWS] Issue #171: AI/ML Marketing Algorithm Continues to Malfunction

Monday, July 20, 2020

Good morning! For those relatively new to the list, it's time once again for my periodic "here's what I do for a living" story. At the Duckbill Group we fix the horrifying AWS bills,

[Last Week in AWS Extras]: The Lock-In You Don’t See

Thursday, July 16, 2020

Today's email departs from the past few weeks' "hilarious" vein and drifts back towards a general analysis tone. Today's topic: lock-in! As always, should you wish to link someone

[Last Week in AWS] Issue #170: AWS Machine Learning Your Business From Inside

Monday, July 13, 2020

Good Morning! Last week saw a bunch of things, from my ridiculous Jeff Barr birthday video to my suggestion for a new AWS service to a bunch of sad things in the news. I'll be keynoting Cloud

[Last Week in AWS Extras]: Introducing AWS Elastic Beanstalker

Wednesday, July 8, 2020

Today's email is half whimsy, half a viable-if-outlandish solution to solve the AWS billing system's problems in one go. Honestly, at this point I can't tell if it's a completely

[Last Week in AWS] Happy 60th Birthday Jeff Barr!

Tuesday, July 7, 2020

Happy birthday to one of our favorite people, AWS Chief Evangelist and VP Jeff Barr. As is our tradition here at the Duckbill Group, we've created a music video to celebrate the equation. Without

You Might Also Like

Daily Coding Problem: Problem #1647 [Medium]

Tuesday, December 24, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Square. In front of you is a row of N coins, with values v 1 , v 1 , ..., v n . You are

Sentiment Analysis, Topological Sort, Web Security, and More

Tuesday, December 24, 2024

Exploring Modern Sentiment Analysis Approaches in Python #661 – DECEMBER 24, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Exploring Modern Sentiment Analysis Approaches in Python What are the

🤫 Do Not Disturb Mode Is My Secret to Sanity — 8 Gadgets I Want To See Nintendo Make

Tuesday, December 24, 2024

Also: The Best Christmas Movies to Watch on Netflix, and More! How-To Geek Logo December 24, 2024 Did You Know Their association with the Christmas season might make you think poinsettias hail from a

😱 AzureEdge.net DNS Retiring Jan. 2025, 🚀 Microsoft Phi-4 AI Outperforms, 🔒 Microsoft Secure Future Initiative

Tuesday, December 24, 2024

Blog | Advertise | View Online Your trusted source for Cloud, AI and DevOps guidance with industry expert Chris Pietschmann! Phi-4: Microsoft's New Small Language Model Outperforms Giants in AI

Mapped | The Top Health Insurance Companies by State 🏥

Tuesday, December 24, 2024

In 13 US states, a single company dominates the health insurance market, holding at least half of the total market share. View Online | Subscribe | Download Our App Presented by: Global X ETFs Power

The Stanford Grad Who Forgot How To Think

Tuesday, December 24, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 24, 2024? The

The next big HDMI leap is coming

Tuesday, December 24, 2024

Sora side hustles; Casio's tiny watch comes to the US -- ZDNET ZDNET Tech Today - US December 24, 2024 Ecovacs Deebot T30S Combo robot vacuum and mop The next big HDMI leap is coming next month -

⚙️ Robo-suits

Tuesday, December 24, 2024

Plus: The data center energy surge ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Apache Tomcat Vulnerability CVE-2024-56337 Exposes Servers to RCE Attacks

Tuesday, December 24, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Edge 459: Quantization Plus Distillation

Tuesday, December 24, 2024

Some insights into quantized distillation ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏