Transcription: a Twitter thread from Gary Bernhardt.
- You, the one who is reading this! You don't need Kubernetes!
- Also microservices.
- Also queues that are separate from your primary database (for most apps).
- Google cosplay is not business-critical.
Source: https://twitter.com/garybernhardt/status/1344341213575483399
Absolutes in programming tend to lead to bad designs. This is more a “I’m gonna stir up some shit on Twitter” post than real wisdom.
- No microservices usually leads to bloated, tightly coupled logic that ignores business domains
- No monoliths usually leads to sprawling microservice deployments with tightly coupled dependencies and flavor-of-the-week new ones
- No Kubernetes usually leads to VPS pets or crazy obstacle courses trying to get SSL termination without a million fucking dependencies in a cloud container orchestration system that isn’t as good as Kubernetes
- All Kubernetes usually leads to huge SRE costs for a tiny app
The same shit happened last summer when AWS came out with their “we dropped microservices for a monolith and look at our speed increase” article which ignored good design principles. Sometimes you should split things over business domains so you can deploy and code independently. Sometimes Kubernetes is the best way to handle your scale needs. The stories we normally read are about people doing it wrong (eg AWS making a bunch of microservices inside a domain sending fucking gigs of data between what should have been functions in a single service). Inexperienced folks don’t always know when to move from their minimum viable solution to something that can scale. That doesn’t mean you remove these things, it means you train on when you need them.
Should we abandon design patterns because singletons or flywheels aren’t the correct solution all of the time?
All Kubernetes usually leads to huge SRE costs for a tiny app
Hush, I'm working as an SRE and don't want anyone to figure this out.
Add Istio and no one will be able to fire you without fucking up mutual TLS
Even if what you say isn't true I'm giving my vote of confidence so I can just shrug whenever someone disagrees with my architecture.
Don't like that I chose a single API server? We're avoiding sprawling microservice deployments with tightly coupled dependencies.
Don't like all the docker containers? We're avoiding bloated, tightly coupled logic that ignores business domains.
Monoliths are the answer to bad microservices. Microservices are the answer to bad monoliths. It’s all cyclic and four different architects are going to have fifteen different opinions on how your system should be built. Do the thing that makes sense for your team and try to stay flexible.
Precisely, Gary Bernhardt has given a talk on ideology. I don't think he's precisely someone who thinks in absolutes. It's just preaching that some stuff is (probably) used more than it should. I've seen way, way, way worse projects that over engineered things and made things slow and unmanageable, than the opposite. Of course, everyone has seen different things, and our perceptions are amplified and biased by that.
Saying that some projects, at some point in their lifecycle, don't need certain things, is not saying that those things have no place. Also, if one can't design a monolith that isn't bloated and tightly coupled, one definitely has no business designing microservices. Using microservices is neither necessary, nor sufficient to achieve decoupling.
Monolithic services are the ideal way to begin a project, as using basic good practices, we can build a service that does many things with minimal coordination, and as it grows and requirements change or are discovered, we can easily refactor to keep things simple. As the software matures, we find the natural service boundaries, and find that certain pieces would perform better if they were separated out and could scale independently, or act asynchronously. Since we have followed good practices, this should usually be a simple matter of removing a class or module to a new service, and replacing it with a facade, such that the rest of the monolith doesn't have to change at all.
This is more a “I’m gonna stir up some shit on Twitter” post than real wisdom.
Ah, the irony.
xD just blocked the spammer and all his comments disappeared. Imagine working so hard to spam and it takes 2s to for someone to hide your posts.
What's even up with that guy? What's he trying to accomplish? Spammers confuse me.
Some bored kid, I would assume.
I feel like they were banned or something and decided to go scorched Earth on Lemmy
Sneed is light. Jannies are darkness.
The janny is the accursed one, fit only to consume feces.
Oop looks like he moved servers. I blocked them on one yesterday and just saw their post again. Oh well, another 2s wasted :p
Lemmy really needs pixelfed's naive bayes spam detection, it would be able to easily classify the new accounts after classifying one post as spam, then it would be 0 seconds wasted.
I know some of those words and agree that that would be better
I thought my client was chucking a wobbly with so many removed comments be the same person.
Couldn't a bot just automate that easily? Especially with how open Lemmy's API probably is
2 clicks, reload the thread and it's gone. Easy peasy!
I mean this is kind of bullshit. There's a lot of things that run in containers these days, and kubernetes is the best way to run containers. If you can do everything with static js or managed services, more power to you, but as soon as you have multiple services talking to each other, you should be using kubernetes, and you should probably consider message queues.
I never got into kubernetes but docker swarm mode services (not to be confused with old docker swarm) are pretty similar and they're absolutely amazing for small deployments, even for just a home lab. If there's anything I want to self-host, no matter if it's homeassistant, jellyfin, nextcloud, a mastodon instance, a lemmy instance, GitLab or whatever, I can usually just get a preconfigured container, adjust some lines in a docker-compose.yml to fit my environment and be done with deployment in under 5 minutes without having to worry about dependencies, isolation or most configuration. Same for the stuff I write myself. Most of my stuff has a very simple GitLab CI config of maybe 20 lines and immediately shows up live when I merge my changes into main.
I've been migrating one of my company's apps from microservices back to monolithic Java. It's wonderful. I haven't touched a line of yaml in weeks.
Currently migrating a massive monolithic Java application to microservices… The circle of life continues.
Want to just swap jobs in ~5 years to keep the cycle going? You can migrate this project back to a Java monolith and I'll migrate your monolith back to micros :D
Honestly this just sounds like periodically refactoring everything to remove cruft can be a good thing. Also, it helps you understand how the existing code works if you change it and not break everything.
There’s someone at my work who really needs to see this…
Small app developers are all just temporarily embarrassed cloud service providers
No lies were told
SNEED SNEED FANCY GERMAN CAR CLEAN IT UP JANNIES SEETHE HOT POCKETS SEED FEED FOR FREE CHUCK JANNIES SNEED'S PARK AVENUE MANICURE PARK AVENUE MANICURE ON LEMMY SEED CITY SLICKER FLOYD JANNY FEED SNEED FANCY GERMAN CAR AND HOT POCKETS HOT POCKETS DILATE GUCCI LOAFERS FLOYD PARK AVENUE MANICURE CLEAN IT UP FLOYD CLEAN IT UP AND CHUCK FLOYD CHUCK DILATE COPE CHUCK'S AND FLOYD JANNIES FUCK AND SNEED'S SUCK GUCCI LOAFERS SNEED SNEED
FOR FREE FEED SNEED AND CHUCK CLEAN IT UP SEETHE FLOYD SNEED'S AND AND FOR FREE HOT POCKETS CHUCK SNEED JANNY SNEED'S JANNY FANCY GERMAN CAR FUCK FOR FREE SEED SNEED'S FLOYD I CAN'T HOT POCKETS FLOYD FANCY GERMAN CAR CHUCK'S CHUCK'S PARK AVENUE MANICURE FUCK AND FLOYD CLEAN IT UP DILATE SUCK FUCK FEED COPE FLOYD FUCK CLEAN IT UP PARK AVENUE MANICURE DILATE FOR FREE AND GUCCI LOAFERS FOR FREE JANNY
SEED SEETHE SEED FLOYD SUCK CLEAN IT UP ON LEMMY JANNY JANNIES SNEED FOR FREE FANCY GERMAN CAR SUCK CITY SLICKER SNEED CHUCK'S SEETHE PARK AVENUE MANICURE FUCK FANCY GERMAN CAR SNEED'S CHUCK SUCK FLOYD ON LEMMY JANNY HOT POCKETS DILATE CLEAN IT UP AND COPE CITY SLICKER FOR FREE AND JANNY DILATE SEETHE FUCK SUCK PARK AVENUE MANICURE CHUCK SEETHE JANNIES CHUCK SNEED'S GUCCI LOAFERS FOR FREE CLEAN IT UP FANCY GERMAN CAR FLOYD
SEETHE SNEED'S SNEED'S FANCY GERMAN CAR CHUCK'S FLOYD HOT POCKETS PARK AVENUE MANICURE CITY SLICKER I CAN'T FLOYD ON LEMMY JANNIES FOR FREE SUCK SEED SUCK AND CLEAN IT UP COPE GUCCI LOAFERS FUCK ON LEMMY CHUCK SEED SEETHE SNEED'S I CAN'T FLOYD CITY SLICKER CHUCK AND SEED CITY SLICKER JANNY COPE CHUCK'S JANNIES SNEED ON LEMMY HOT POCKETS FEED CHUCK'S CLEAN IT UP HOT POCKETS SNEED'S JANNIES I CAN'T ON LEMMY ON LEMMY
ON LEMMY CHUCK'S JANNY SNEED SNEED'S CITY SLICKER CHUCK FEED AND HOT POCKETS SEETHE CLEAN IT UP FEED SEED SNEED'S COPE DILATE JANNY GUCCI LOAFERS I CAN'T FOR FREE CITY SLICKER SEETHE COPE SNEED JANNIES FOR FREE FEED FLOYD I CAN'T CHUCK CHUCK'S CHUCK SUCK ON LEMMY GUCCI LOAFERS SEETHE FUCK SEETHE JANNIES FEED FUCK SNEED COPE FEED FOR FREE FANCY GERMAN CAR GUCCI LOAFERS GUCCI LOAFERS SEED
SUCK FLOYD DILATE CLEAN IT UP COPE DILATE GUCCI LOAFERS PARK AVENUE MANICURE JANNIES SEED SUCK DILATE CLEAN IT UP SUCK DILATE HOT POCKETS PARK AVENUE MANICURE DILATE SEETHE JANNIES FLOYD SEED SEETHE CHUCK'S CLEAN IT UP AND FEED HOT POCKETS I CAN'T CHUCK'S I CAN'T ON LEMMY AND SEED PARK AVENUE MANICURE SUCK CHUCK SEED I CAN'T FLOYD CHUCK'S SUCK CHUCK'S PARK AVENUE MANICURE GUCCI LOAFERS FLOYD PARK AVENUE MANICURE CHUCK FOR FREE FANCY GERMAN CAR
CLEAN IT UP HOT POCKETS SNEED'S CHUCK'S CLEAN IT UP I CAN'T SEETHE SEED FOR FREE CHUCK AND CHUCK PARK AVENUE MANICURE FLOYD SNEED'S FANCY GERMAN CAR ON LEMMY CHUCK FLOYD CHUCK'S GUCCI LOAFERS I CAN'T JANNIES PARK AVENUE MANICURE JANNIES HOT POCKETS COPE AND CITY SLICKER I CAN'T FANCY GERMAN CAR CITY SLICKER FEED CHUCK FUCK I CAN'T SNEED SUCK ON LEMMY JANNIES SNEED JANNY CLEAN IT UP AND AND SNEED GUCCI LOAFERS AND CHUCK'S SEETHE
SNEED'S COPE CITY SLICKER CHUCK'S SNEED CHUCK I CAN'T FEED FUCK FEED JANNIES FLOYD I CAN'T CHUCK COPE SUCK SEETHE JANNY AND CITY SLICKER ON LEMMY CHUCK'S FOR FREE FUCK SEETHE COPE JANNY JANNY PARK AVENUE MANICURE CHUCK DILATE SEETHE FOR FREE SUCK SNEED'S CHUCK FANCY GERMAN CAR HOT POCKETS FANCY GERMAN CAR I CAN'T FLOYD FEED JANNIES PARK AVENUE MANICURE SEETHE JANNY CHUCK CITY SLICKER HOT POCKETS SEETHE