Squeeze the hell out of the system you have
blog.danslimmon.com
Squeeze the hell out of the system you have
1–10 of 383 posts
Re: Squeeze the hell out of the system you have
#2Reminds me of the mantra that I’ve read here to easily go for reversible things and very careful when going for irreversible things.
Re: Squeeze the hell out of the system you have
#3Re: Squeeze the hell out of the system you have
#4Re: Squeeze the hell out of the system you have
#5...or just mental load. I'm tired of working on micro-service systems that still have downtime, but no one knows how it all works. Most are actually just distributed monoliths so changes often touch multiple services and have to be rolled out in order. Data has to be duplicated, tasks have to be synchronized, state has to be shared, etc...
Re: Squeeze the hell out of the system you have
#6- Design your application's hot path to never use joins. Storage is cheap, denormalize everything and update it all in a transaction. It's truly amazing how much faster everything is when you eliminate joins. For your ad-hoc queries you can replicate to another database for analytical purposes.
On this note, I have mixed feelings about Amazon's DynamoDB, but one things about it is to use it properly you need to plan your use first, and schema second. I think there's something you can take from this even with a RDBMS.
In fact, I'd go as far to say as joins are unnecessary for nonanalytical purposes these days. Storage is so mind booglingly cheap and the major DBs have ACID properties. Just denormalize, forreal.
- Use something more akin to UUIDs to prevent hot partitions. They're not a silver bullet and have their own downsides, but you'll already be used to the consistently "OK" performance that can be horizontally scaled rather than the great performance of say integers that will fall apart eventually.
/hottakes
my sun level take would be also to just index all columns. but that'll have to wait for another day.
Re: Squeeze the hell out of the system you have
#7Re: Squeeze the hell out of the system you have
#8Re: Squeeze the hell out of the system you have
#9I admit in the face of finding Prod/market fit, you do the expedient thing, but damned if I'm not often at the receiving end of these sorts of decisions.