56 points · by rckrd · 4y ago · 55 comments
Somewhere along the way, it became fashionable to build out your devops on day one as though you’ll be Google tomorrow, but to write your code without any architectural foresight as though the only thing that matters is tomorrow’s deployment.
It’s always nice to see people advocating towards a thoughtful balance.
To build the servers I was running on I wrote an Ansible job to install everything and copy the code down. All I had to do was add a couple flags to that to allow it to just deploy new changes. Instead of getting into the CICD pipeline I just took a few minute to make a little web front end for myself to kick off the job and watch the job status (we have Tower, but it's painfully slow). I can now deploy in 18 seconds with 1 click. Seems good enough. I'm sure I could set up a web hook to eliminate the click, but it's not a big deal.
I try to align when possible. I think your solution is hacky and costs the company much more in the long run.
I used to try to align when possible, but lately it hasn't made a lot of sense. Keeping up with the tooling ends up being the whole job, as they change it every 6 months. This site is a side project to help out the team, not my primary job. I can't be dropping everything each time they decide to switch vendors, change up their variables names, or whatever else they decide to do.
At my company, it would involve going to weekly meetings to get all the updates and changes happening as they keep developing it, one-off meetings to get onboarded and setup... I'm pretty sure they also designed the system for Kubernetes, so I figured it would also mean containerizing the site, as it has been running on VMs for almost 10 years. Those weekly meetings also mean constant changes so things keep working (which I'm not dealing with on a different site that is going though CICD). All of this in the midst of a lot of bureaucracy. It's also a custom home grown solution, so it's not like AWS knowledge I can take with me or google.
It likely would have taken several months for little to no tangible benefit. No one on my team knows how CICD works. I'm the only one who has actually used it, and even my use has been pretty limited. It took 8 months for someone to bother to tell me where I could see build status/errors, at first they just told me to "wait about 10 minutes". There is no documentation anywhere. It's all tribal knowledge and no one seems to have the time to share it.
The only way to maintain my sanity is to not get too involved in it all. It will likely all change and go away within the next 2 years. Nothing lasts lone enough to get too invested in.
Sounds like your system is way more efficient than the CICD... in the short term, provided you're the only person that ever needs to use it (and/or nothing ever changes)
But the calculus changes if instead of EC2 nodes you can have a helm chart that deploys directly to a managed kubernetes services like EKS or GKE?
If you have a lot of experience with any interface, you can do it really efficiently, but if you don't, kubernetes can make your experience worse than anything you'd come up with on a cloud provider.
Then you'll need non trivial amount of knowledge of how it works to avoid many pitfalls (the helm chart will probably only go so far, it will still need small tweaks for your specific use case)
So it's a combination of upfront time investment, ongoing tuning, and recurring maintenance events.
That's a big part of many k8s pitches I've seen but in my experience it hasn't been representative of reality (or at least for every part of infrastructure you no longer need to run there's a new part of k8s architecture/config to learn & manage).
For me the selling points are:
1. For the time-cost of upfront complexity and setup, you get extremely easy and quick subsequent addition of infra/tooling & scaling thereof. 2. There are certain patterns of tooling that k8s enables (relatively easily), that would have been difficult/impossible with more traditional setups.
I don't think it makes infra management overhead less, it just reorganises it so it's more upfront and then less later while scaling.
Even with ECS which is way simpler than K8 for small teams using Fargate has been incredibly beneficial in terms of debt/time.
Then next step would be to move the entire application onto Lambda so we're not paying for downtime, but that's a whole headache and a half.
Personally, I would run k8s from the day I expect to run the code as separate deployment to running it from my IDE. I have the skills to do so, and I found I lose way less time doing so than trying to do "classic" server setup, even if it's just one server.
Everything else would only mean less golden path support, less synergies etc.
As someone who works in a small team within a large corp where we use k8s for everything large and small, I did not read that statement as applying to me.
If you have a subsystem conform to a good API and is well behaved it can be rewritten. It is allowed to have some tech debt.
If the subsystem is sprawled through other subsystems that tech debt doesn't get paid down because now you need an expert in all those areas to fix it.
I swear I have worked places where there is code no one currently at the company can understand. At best you micro-fix for bugs and back the hell away!
It's funny and gross enough to stick most of the time.
That said sometimes abstractions leak. I was using Firebase and getting the public Url for a blob given it’s path is an async call! God knows why.
What I see is that the term makes technology look bad, doesn't work as a lever and demotivates developers.
Be a craftman, don't do technical debt. For time to market create a zerocode/crappy MVP that you throw away. Schedule real technical debt like DB migrations and do them as needed.
> For time to market create a zerocode/crappy MVP that you throw away.
Unfortunately what tends to happen is that as the business sees early success and starts to grow, there is never a stopping point where people are happy to start again and build from scratch 'properly'. That crappy MVP will be extended, adjusted and corrected, until it's something no longer throwaway but also not well built/tested/hosted/monitored/etc.
Maybe slow down to go faster is a better approach.
Yes and from talking to my coachees, this is one of their main problems. I urge them to throw away the MVP when they got funded.
If business requirements change, that isn’t tech debt.
If you don’t implement new high-level (business) insights or postpone this work, you are accruing technical debt. At least, that’s what Ward Cunningham stated.
That's the opposite of what I wrote. My scenario was you knew that it didn't make sense for that project but you still did it because of time/budget/resource reasons. You start paying off the day you can't scale it anymore.
Nobody built the pyramids in a day.
Here is a different attempt on definition: An occurrence on debt is when a higher up decides that a product/construction must be ready when it clearly is not, and thus convinces/bullies the engineers and put their signature on it.
Analogies can be a great tool to communicate or for prose but don't take them literally.
Unfortunately your description is what has become the common usage of TD, and now the term is meaningless.
Frankly speaking, today, TD is just a neutral term to externalize blame/responsibility.
Or clean code because no one will ever touch it again.
Or a feature you only need once and just write it somehow.
And then all this shit stays in your product and starts dragging you down.
This is totally different than when you start with a monolith and know that you might want to rework it later but accept potential future work.
And you should start with a modular monolith anyway.
I don't think it's reasonable to try to redefine the term technical debt.