This is a free preview of a paid episode. To hear more, visit refactoring.fm
Today's guest is Charity Majors, CTO at Honeycomb and one of my favorite writers. I believe I have recommended more articles from her blog than any other author.
ποΈ Episode
You can watch the full episode on Youtube:
Or listen to it on Spotify, Apple, Overcast, or your podcast app of choice.
π₯ Interview Summary
If you are a π paid subscriber π you will find my own summary of the interview below.
Itβs the 10-minute, handcrafted takeaways of what we talked about, with timestamps to the relevant video moments, for those who donβt have time to sit through the 1-hour chat.
Here is the agenda for today:
* βοΈ Observability vs monitoring - whatβs the difference, and what good observability enables you to do.
* π¬ Intercom migration story - how observability saved Intercom from a painful, year-long migration.
* π Continuous delivery - what does a good pipeline look like. Optimizing the flow and minimizing environments.
* πͺ Testing in production - why this is part of every engineerβs job.
* π€ AI Engineering - how AI is changing how we write code, and a couple of concerns.
Letβs dive in π
βοΈ Observability vs Monitoring (video)
In the first part of our chat, Charity and I talked about the difference between Observability and other related concepts like monitoring, APM, and more.
Charity, who also wrote a book about it - explained how observability is a property of complex systems, just like scalability, or performance. Even more so, it is about socio-technical systems:
* π If you add more metrics, you are improving observability.
* π If you educate your team on how to ask questions about the system, you are improving observability as well.
Observability is like the business intelligence of tooling: itβs the single source of truth where you can break down, zoom in, zoom out information about your systems, together with information about your customers.
More specifically, good observability is based on three pillars:
* π Metrics - offer insight into the health and performance of a system
* π Traces - map the journey of a request or action as it moves through all the nodes of a system.
* βοΈ Logs - provide detailed records of events and activities within the system.
Together, these form the backbone of any observable system, enabling teams to monitor and address system issues in real-time.
π¬ Intercom migration story (video)
Charity makes a real-world example of how good observability enables teams to make the right technical decisions, taking the business context into account.
A few years ago, Intercom had to do a giant database migration because they had outgrown the largest EC2 instance size.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00But like, it's a physiological fact that when we get scared, we freeze, right? We want to slow down, get more control over things. And so I feel like when things feel flaky, when they feel out of control, when they feel, we add more process, we add more tests, we add more stuff, we add more layers, and we don't realize that we're killing ourselves. Yeah.
SPEAKER_03Today's guest is Charity Majors. Charity is CTO at Honeycomb and one of my absolute favorite writers. I believe I have recommended more articles from her blog than any other author on the newsletter. Today we talked about observability, testing in production, continuous delivery, developer experience, and much more. So let's dive right into it. Hi Charity, welcome and thank you so much for being here with us today.
SPEAKER_00Good morning. I'm very happy to be here.
SPEAKER_03Thank you. So Charity, you are a CTO of Honeycomb, which is an observability platform, and I will let you define this and explain what it means, but let's say it helps engineers solve problems with their applications, right? Yes. So I would love to start our chat by talking exactly about observability, because it's one of those things that can be kind of confusing for some managers, for some engineers, because we have been talking about different things with different names for many years.
SPEAKER_03You know, we have monitoring, you have APM, you have lower level, you have logging, all these kind of things. And now we are talking more and more about observability. And so you are one of the top experts about this. You run a company about this. You have written a book. So what's your definition? What is observability as opposed to, for example, monitoring?
SPEAKER_00I love this question. And my answer to this has changed over the years. When we started, I mean, we reached for the language of observability to really try and differentiate from monitoring. And we came up with this laundry list of things like you need high cardinality and high dimensionality and you need explorability and it's about unknown unknowns instead of known unknowns. And then, you know, as as as the conversation grew, you know, everybody else kind of started jumping in. It's like, well, we don't want or we don't everybody to. And nowadays,
SPEAKER_00honestly, I've come around to think that observability is a property of complex systems, just like scalability, just like performance, just like, you know, it's a property of complex socio technical systems. And that means that if you add some metrics, you improve your observability. If you educate your team on how to ask questions, you improve your observability. But I do think that there's a bit of a, like if we flatten everything into being a property of complex systems, which I like,
SPEAKER_00I think we also need to kind of account for the fact that there's been sort of a generational step function almost. One of the definitions of observability is that there's three pillars, metrics, logs, and traces, three pillars of observability. Most of the existing APM tools are built on metrics. Most of the existing RUM tools are built on metrics. And most engineers are now capturing their data many different times. For every request that enters their system, they're capturing it for dashboards,
SPEAKER_00for logs, for traces, for profiling. And nothing actually connects these tools except the engineer who sits in the middle. going, well, that spike looks like that spike. That shape, that timestamp is like that timestamp. Or maybe I'm going to copy paste ID from this tool to that tool. But it's not connected. I feel like you now have a new generation of observability. So we call this observability 1.0 tools, right? And then I think there's observability 2.0 tools, which don't have many sources of truth.
SPEAKER_00They don't have three pillars. There's just one source of truth, which is arbitrarily wide structured data blobs. Sometimes we'll call these canonical logs. You can also call them traces because that's all the spans are if you add some IDs. Because if you have these wide events, you can derive your SLOs from them. You can derive your metrics from them. You can derive your dashboards from them. You can derive your logs from them. You can derive your traces from them. You can visualize them over time. You can zoom in. You can zoom out. You can treat it like any other data.
SPEAKER_00Yeah. And it's so much more powerful because it's like being able to bring a scalpel to your tooling instead of only being able to sort of like group. And then like you're just like you're guessing you're taking a shot in the dark. And so when I think of observability 2.0 tooling, you know, I think people are don't quite understand just how much. data format matters. I mean, this is like the most cliche thing and all of it.
SPEAKER_00So if your data model is broken, you're going to pay so much money and you're going to have so much overhead and the model metrics are very powerful tool, but they're a niche tool. They're very good for summarizing vast quantities of data. They're not a tool to help you explore the inner workings of complex systems. So my hope is, I feel like in every other corner of the business, we've gone through this change over the past few decades where we realized that what makes data powerful is its relationship to other data.
SPEAKER_00And the only place that we haven't really accepted that is when it comes to the most important data of all, which is our systems and application data.
SPEAKER_03Yeah, that's a great answer. And I remember you writing that observability is like the business intelligence of tooling, right? So, and it really resonated with my experience. I remember introducing BI first time in my startup and it was like a moment of revelation, right? You don't even know that you can, what opportunities open up when you can correlate all the data in a single place and run queries about, you know, a wide scope of of things that were not possible before and you have said at the
SPEAKER_03beginning that observability is first and foremost the property of the systems right and so i pick up a question from the chat immediately because i think it ties it very nicely because clements asks do Do you need observability even when, for example, you're not dealing with microservices? And you think you can enlarge the scope of this question by saying, are there systems that lend themselves better or worse to observability? And so you should design things accordingly to enable the systems to be so.
SPEAKER_00Oh, gosh, that is such a great question. Yes. I mean, yes, obviously the answer is. So first of all, I kind of want to touch on what you just, I'm all over the place here. I'm really excited by this question. What you just said about BI. So like something that I feel like You know, we all talk about silos, but what builds silos? I feel like the borders of tools are what builds silos. Any team that uses a tool to interrogate its systems,
SPEAKER_00when you're trying to talk to another team that uses a different tool, you spend more time arguing about the nature of reality than the problem that you're trying to solve together. and so like i feel like it's so it's so strange that we keep our application and systems data over here and our business data over there when we're building businesses with technology and like shouldn't they be the same thing shouldn't we be so like one of the first things that one of our earliest customers did with honeycomb was i think it was intercom uh and they they were they instrumented their
SPEAKER_00um you know they built this nice little embedded in websites. They built this thing that they were on the verge of having to do this giant database migration because they had outgrown the largest EC2 instance size. They're like, wow, we're going to have to start it, it's going to take us a year, it's going to be a big deal. They got honeycomb, they instrumented their code with app IDs, famously high cardinality, you can't put that in the metrics. And then one of the engineers was just kind of poking around and started breaking
SPEAKER_00down and grouping by and went, oh shit. something like 75 to 80% of the execution time for this database is being taken up by one user ID who's paying us $20 a month. So we can either do the sharding migration or we can rattle this dude or we can like, you know, which is like to me such a great example of how our business decisions and our technical decisions are not separable. They're intertwined and our tooling should be too. So,
SPEAKER_00As to the question of microservices and so forth, I don't think, I actually think it's kind of a perversion if you have to architect for observability. I think that observability, like it's one of the things that bothers me the most about 1.0 tooling is how often you have to do that. You know, think about when you're using metrics and tags and you use the host name. And so you're super incentivized to have the fewer, larger host names because you can't pay for lots of small host tags without like 10x-ing the amount of money that you're spending.
SPEAKER_00I think that's terrible. I think you should be able to architect your systems in a way that makes sense for your application, your users, your developers, without having to think about what's my bill going to be like, my observability, and how am I going to be able... That said, I do think that there are some technical decisions that serve kind of as cliffs, almost, where what you were doing was working just fine, and all of a sudden it's not anymore. And I think for a lot of companies, microservices was one of those cliffs because microservices are a high cardinality dimension.
SPEAKER_00You know, if you're used to having five or six services, you can apply a tag for each service. Now, if you have 500, you can't. I think that microservices is one that has been a tipping point for a lot of companies. I think being a platform provider is a huge one for a lot of companies. A lot of this stuff comes down over and over to, can you support high cardinality or not?
SPEAKER_03Yeah, great answer. So what I'm hearing is that microservices particularly benefit because there is like a tipping point because without this kind of tools, you risk not understanding everything that is going on. But in reality, since the point is breaking down silos between product, between engineering, I mean, without considering your systems, your architecture, you're benefiting from this because you're enabling even conversations that you cannot have otherwise.
SPEAKER_03Is that right?
SPEAKER_00Exactly. I mean, if you think about it in the days of the monolith, do we need to understand our code and our users? Yes. But most of the complexity is bound up in your lines of code. What happened with microservices was we blew up the monolith, and all of a sudden, so much of the complexity exists. It's hopping the network. It's all over the place. So much of the problems are not how do I debug my code? It's where in the system is the line of code that I need to debug? And so, yeah, when you're using microservices,
SPEAKER_00you know, you really, you, you need to bring a lot of, you know, at the end of the day with a monolith, you could always attach it to a debugger, right? If all else failed, but you can't do that with microservices. So yeah, you need some way of like ordering over time, but, but I would argue that it is just a forcing function and you do need it just as much with monoliths. It's just that you kind of hack along for a lot longer. Yeah.
SPEAKER_03Yeah, yeah, I agree. So let's say you put yourself in the shoes of, I mean, I'm thinking of the audience, people who are listening to these conversations, right? Maybe it's CTOs of smaller startups or people who are engineering managers in companies that still haven't adopted the observability solution or I should say an observability approach, right? To the way they're handling these problems. So how do you, graduate, let's say, from monitoring to observing your systems,
SPEAKER_03is it just a matter of integrating a tool? Is it a matter of approach to how you do things or what you should do?
SPEAKER_00You know as well as I do that the answer is always it depends.
SPEAKER_03Of course.
SPEAKER_00But I think that This whole observability 1.0 versus 2.0 concept is something that's very... I've only been thinking about it in these terms for the past couple of months. To me, it helps frame the debate in a very helpful way because... According to semantic versioning, you are supposed to do a major version upgrade whenever you have backwards incompatible breaking changes. Going from multiple sources of truth to one source of truth is a backwards incompatible breaking change.
SPEAKER_00But to achieve observability 2.0, it's not just as simple as you go from a monitoring tool to an observability tool. There's a lot of sociotechnical things that are associated with observability 2.0. I think a lot of them, you can use observability 1.0 tools to try and get very close to them, like using SLOs instead of paging people about symptoms all the time, right? I think to really achieve observability 2.0 outcomes where you have the kind of tooling that allows you to really move very fast with a lot of confidence because
SPEAKER_00your feedback loops, both in the individual level and the team level and the company level, are so fast and so sure-footed. You need both observability 2.0 tools and you need the sort of practices and policies and habits and training. So I think most teams are... stuck in or still trying to get to a place where they've really kind of mastered observability 1.0 and 2.0, but 2.0 is like, it's a state where you're able to delete 90 to 95% of your paging alerts because
SPEAKER_00you're aligning engineering pain with customer pain and where your teams don't need to debug based off of page bombs because they can, rapidly find the answer to any unknown unknown problem that crops up just by you know using the tools because the connective tissue is there and a shared source so I think that the path that I see a lot of people take is they adopt an observability 2.0 tool like Honeycomb as a force and function to help people start
SPEAKER_00to get into a closer conversation with their code. It goes hand in hand with deploying really fast. And often having smaller services so that teams can have more ownership over a small, like a greater degree of ownership over a smaller sort of surface area. But like the end goal is to be able to ship code many times a day, to be able to Tell them at a glance whether or not something is working.
SPEAKER_00To be able to flip feature flags on and off to control whether or not your users are seeing it. To be able to decouple deploys from releases. There's a lot that goes into it. So I think the tool really matters, but it's far from all that you need.
SPEAKER_03Yeah. And do you think this is an investment that pays off? Since we have said that it's not only the tool, it's about the process, the building, the model, you made the analogy with the business intelligence. So do you think this is an investment that pays off once you get to a certain scale in terms of, I don't know, team size or traffic, or is it one of those things that the earlier you do it, the better? It's an investment that you can do even if you're a smaller team.
SPEAKER_00The earlier you do it, the better. The thing is that every brain that I hear very often is, we haven't even mastered 1.0 yet. I don't think we're ready for 2.0. And I just want to shake people because the way people are doing it now is the hard way. It is so hard trying to fit the questions you need to ask into these very compacted, dense questions. difficult non-relational data types like metrics and tags. I hear from so many observability engineering teams that are spending more time,
SPEAKER_00an outright majority of their time trying to manage costs in an ongoing basis. Not writing libraries, not enabling their teammates, not creating value for the org, but just trying to manage the seething complexity of the metrics-based tools. It is so much easier and simpler to just treat your telemetry data like data, to just be like, here's a data blob. I know how to do, you know, I know how to sort. I know how to query. I know how to connect things. I know how, you know, and having the data with a connector tissue in that way opens up the window just
SPEAKER_00like things that feel almost magical. So this thing that everybody's always like, well, what about? ai and i'm like we don't need ai we just need normal computation like honeycomb does this thing that's called a bubble up where um if you're if you're gathering your data in these white events um then if you've got your slo or any heat map any depth any graph where you're like that's weird i want to understand that you draw a little bubble around it and we compute for all the dimensions inside the bubble versus the baseline outside the bubble and sort and diff them so whatever you drew
SPEAKER_00a thing around instantly you're like all the things that are different about the data that i care about so like so many of the problems we have to debug are like okay this thing gets tripped when it's android devices running this build id using this language pack from this region using this application yeah just like 10 different things right and it's just a blip on the thing but it's a it's a really big deal for a small number of people and when you have all that context you can just identify instantly what's wrong with it so much in debugging boils down to here's the thing i care about how is it
SPEAKER_00different from all the things that i don't care about
SPEAKER_03Yeah, I love the answer and I love that you said we don't need AI for many things. We think that we need AI for everything, like instead sometimes just good computation and good traditional technology is more than enough. So I was wondering why you were talking, right? You were talking about all these use cases by teams using observability strategies and platforms. So when you think about teams that have implemented,
SPEAKER_03that have gone this route successfully, how do they, I mean, what's their daily life? How they use these powers, let's say, do you have processes they use them of course you know for uh maybe in a react reactive fashion for incidents but maybe they're also proactive in discovering things should you create processes to level to take advantage the most of the all of these yeah
SPEAKER_00absolutely that's such a great question I think this is kind of the second coming of TDD. Like, you know, when it used to be that QA ran all the tests, right? Engineers just wrote code. And then we were like, wait, we actually build way better systems when the same person writes the tests and the code. And yeah, there's still a need for QA folks to be like experts to like help us level up. But software engineers should understand the code that they're writing. Well, the thing about tests is, they're not going to tell you if your code works or not.
SPEAKER_00They're going to tell you that it's probably logically correct at best. They stop at the border of your laptop. They're not going to tell you whether or not it's actually working for people. I feel like this is just really the next wave of that, where instead of writing tests as you write your code, you learn to instrument your code as you write your code, and you learn to get it into production while you still have all that context in your head, your job is not done until you've looked at your code in production through the
SPEAKER_00lens of the instrumentation you just wrote and you're asking yourself is it doing what i expected it to do it's doing what i want it to do and does anything else look weird because that moment You know what you built, you know why you built it, you know how you built it, you know what you tried that worked, you know what you tried that didn't work, you know what the functions are named, what your variables are named, you know everything. And if we just merge our code and walk away and start working on something else, we starve ourselves of the best hope we will ever have of finding that stuff before
SPEAKER_00our users do. And so I feel like a lot of this is about learning to just close that loop and feel ownership over your code until you watch users using it. And you're like, until you have some confidence that, yeah, this is what I wanted to do and it's working. Every company that I've seen go through this process also comes up with other processes and tools and habits and stuff because every engineering team is unique. Every use case is unique. There's a lot of historical precedents that goes into this.
SPEAKER_00But at its basis, I don't know if you've seen the data that shows that the cost of finding and fixing bugs goes up exponentially from the moment that you write them.
SPEAKER_02Yeah.
SPEAKER_00So like,
SPEAKER_02of course,
SPEAKER_00I feel like there's all this, there's all this dark matter in software engineering that makes us frustrated. Why can't we move faster? Why can't we, why does it seem to go so slow? Why can't we ship more product? Why can't we do more with what we have? And I feel like all of this dark matter, it's so hard to see the things that we can't see. And so much of the stuff that we can't see is that connective tissue that we're throwing away when we write our data out into metrics and we can never get it back again.
SPEAKER_00We spend the rest of the code's life cycle trying to guess what held it together, trying to reconstruct our mental model of what was happening. And if we just preserve that data, then we can go to the source and ask about it and we can observe it and we can see what's happening. And it makes everything so much faster and easier.
SPEAKER_03Yeah, I love the focus on ownership. And I want to segue this into talking about testing in production because you have mentioned it. But before we do, I want to pick up this question by Matteo who asks, Are there tools that are actually replaced by Observability 2.0 or is this just adding things on top of the things that you already do? So you implement such a solution and maybe you don't do this and that anymore, or you just keep all the other things as they are?
SPEAKER_00It's a great question. And it's a very fair question because right now, I think the biggest sort of lever that we've seen is the unsustainable cost crisis. And so like, what, are we going to people add one more sense of tool? Yeah, no, the answer is, of course, of course. I think that observability 2.0 tools should replace most of logging other than the security use cases, which you should be able to just kind of archive something very cheap. It should replace 90% of what we're using metrics for today.
SPEAKER_00Metrics still have a use case for infrastructure and for, you know, archive and summaries of a large amount of data. And tracing, absolutely. should be replaced. So it's kind of hard to talk about this. I try really hard to speak in vendor neutral terms. And it's sometimes challenging because I think Honeycomb is kind of the only 2.0 vendor out there right now. I think that LightStep kind of gets close. I think that Baseline is really interesting. I guarantee you that there are more on the horizon.
SPEAKER_00So it's challenging to me to speak from a, you know, a vendor perspective versus like, but like from a vendor perspective, like today, Honeycomb often replaces like all of New Relic, most of Datadog. It's really easy to replace like logging use cases, especially if people have done structured logging. But I will also fully own that like, The tools like Datadog out there are, what, 30 years old? Like, they're complete in a way that tools that are only, you know, five or six or eight years old can't be yet.
SPEAKER_00And so, in some ways, I feel like this is the question that teens... This is why we don't talk to many people who are deep in firefighting mode right now. We talk to a lot of platform engineering teams. We talk to teams that are out of that state a lot and they're planning for the next year or two or five years. They're looking at the cost growth and they're going, well, that's not going to work. They're looking at how much time their engineers are spending firefighting and stuff. They're like, well, that's not going to work.
SPEAKER_00Even though something like Honeycomb can't today replace all of the use cases, they're like, well, five years from now, three years from now, two years from now, this is the trajectory that we're on. I think I can say that in a very vendor-neutral way. I think that Observability 2.0 will eventually be the only tool you need to understand the intersection of your software and your users. I think there are still going to be niche use cases for, you know, infrastructure teams, for archival and stuff. But I think the core use case of understanding your code, that's an observability 2.0 shaped problem.
SPEAKER_03Yeah. And speaking of costs, how you should think about them? Should you think about the observability cost like as a function of your infrastructure cost? And do you have like benchmarks about how much teams should spend on this
SPEAKER_00So all I have are opinions. I have opinions. I will say somewhat defensively, I had these opinions before I started an observability company, and they haven't changed much. I remember saying 10 years ago when I was at Facebook, I was like, Pretty much across the board, what I see is really good teams spend about 20% of their infra costs and observability. I think that can be lower these days. I think 15% is usually about... what I see teams that are really on top of it and have really good instrumentation.
SPEAKER_00Obviously there is some variance there. I think that there are some kinds of technology like spray and pray, you know, like ads where you can get away with like 10% because you don't actually care about every, but if it's like delivery companies or banks or anything where you have dollar values attached to every single outcome, I think you're looking at 15 to 20% of your, of your infrastructure bill and observability costs.
SPEAKER_03Yeah, that's a very practical answer. Thank you. Thank you for that. I think, yeah, it pretty much depends. But even having a ballpark, I think it's very useful for people to understand, you know, where am I in this spectrum, you know?
SPEAKER_00For sure. And I will also say that I have had many people come up to me very indignantly and go, well, that's a vendor question. We only spend 5%. And every single time when I dig into it, Yeah, that's how much they're sending to another vendor, but they are spending way more than that on engineering salaries to do that stuff in-house.
SPEAKER_03Yeah. Yeah. It's always the case. So before you said, you said something about testing production, right? Because with good, one of the things that come easier with good observability is good testing in production. And this is always a controversial topic because I think that People conflate this with thinking that they should only test in production while instead, of course, you also test in production. So what do you mean by testing in production? And I mean, back from the basics, why should people do this at all?
SPEAKER_03Like why isn't staging enough, for example?
SPEAKER_00Well, first of all, I don't think this is optional. I think every engineer who has a production environment is testing in production. It's only some of us that admit it. And it's like, okay, sure. I believe you. I think that the first step to doing it well is admitting that it has to be done sometimes. And that lets you have a better conversation about when it's appropriate and what the trade-offs are and what you can hope to find in staging. And then, you know, there are really interesting conversations to have about how to do it non-destructively,
SPEAKER_00how to do it safely, how to do it securely, how to do it using things like, you know, feature flags or progressive deployments or, you Or, you know, or synthetics, or, you know, they're all it's testing and production doesn't just mean YOLO. Just push it to progress. You know, it's like, to some extent, if you aren't incorporating production into your, your testing, that's really scary to me, because And no matter how good your staging development environment is,
SPEAKER_00it is never going to be exactly like production. It is not possible. It is not possible to have the same concurrency, the same chaos, the same variability, the same, you know, because every moment in production is unique. That's kind of what makes it production, you know? And so I think that like finding ways to smear the development process, smear the operational process, to the to the one side and spear the testing process to the other side like this is why i think that it was i i think it's like dev versus ops of being like the
SPEAKER_00original sin of engineering like like once upon a time we thought it made sense for half of our engineers to write code and half of our engineers to understand their code and that was just not smart right and so i feel like we've gone through this whole like sort of like reconciliation process of like, okay, dev and ops can work together. And now it's like, okay, actually, you know, ops doesn't exist anymore, except operations is more important than ever. But like the world that we should live in is one where every engineer writes code and every engineer owns the code that they write.
SPEAKER_00And there's lots of room for specialists. to help us all do better because you can't expect your average software engineer to know everything. They're completely right. That's not a reasonable request. But you do need to know enough to do a good job of writing software and then rely on experts to help you operate it and test it and scale it and so forth.
SPEAKER_03Yeah, yeah, I totally agree. And do you think that with good observability, with good testing in production, teams can even go without an intermediate environment, go without a staging environment and have a continuous delivery process that doesn't require like middlemen like that? I know it depends, of course.
SPEAKER_00I know, I know, you know. I mean, so at Honeycomb for a long time, we just had production. And then we were like, okay, well, we need to be able to monitor production. So then we have a dog food cluster. Now we have a kibble cluster. So production data goes to dog food and dog food data goes to kibble. And we use all three. And we also have staging environments that our designers use because designers have different needs than engineers. They need to be able to spin something up and see it.
SPEAKER_00So I think it's a really good practice to minimize the number of environments you have to maintain because every environment comes with an overhead, sometimes a pretty substantial one. I think that there are companies that might surprise you that have no staging environment at all, but they're not slap-happy about this. It means that they have spent years, sometimes decades, in investing in their production tooling. So... It really depends.
SPEAKER_00The reason that I started branding about testing and production, to rewind the clock a little bit, was because I felt like every company has a limited number of engineering cycles to spend. And I felt like I was seeing so many companies get so wound around the axle and the idea that they could prevent problems from happening. And they're devoting such a large percentage of their precious cycles to trying to find things before they got to production that they were starving their production systems of the tools that they needed to find the problems there.
SPEAKER_00And so that's why I started talking about testing and production to just be like, look, It's impossible to find everything. We need to invest in our production toolkit so that we can find them swiftly and easily and safely. So I'm not actually like preaching against staging environments so much as just like arguing for a balance.
SPEAKER_03Yeah. Yeah, I think it's a sensible question because there are, you know, this is one of the divisive topics where there are people who said, you should do this, you should do that. And this is like the absolute truth, while instead, of course, things are more nuanced. But I agree that you should minimize the blocking part of the process of the delivery process as much as possible and have a swift release and delivery process. So I know you have talked a lot about this in other talks and articles.
SPEAKER_03So what does a good continuous delivery process and pipeline looks like to you in terms of steps, times, what should the life of a developer be ideally for that? I know it depends on systems, it depends on use cases, but what's your take on this?
SPEAKER_00I think the most important thing is to be able to get code out in real environments in a small amount of time that you still have all that context in your head, that you don't have to page everything in and out, just swap to another project or whatever, that you should be able to be shipping and testing your code. I've said some very big things about 15 minutes or bust. I think 15 minutes is a great goal. I think an hour is fine.
SPEAKER_00I think that longer than that starts to become less and less fine. I think you obviously want to do code review or pairing. You obviously want to have a pipeline. You obviously want to run your battery tests. I think it's really nice to have some sort of progressive delivery component. At Honeycomb, what that looks like is it automatically gets deployed to Kibble, and then an hour later, if nothing catastrophic happens, it gets promoted to dog food. An hour later, it gets promoted to production. I think that if there's a golden rule that engineers should strive for,
SPEAKER_00it's that once you merge your code, without doing anything, it goes live. I actually think it's more important that that happens predictably than that happens in a very short time interval. I think both are fine, short time interval or that it happens predictably. But I think that having it happen predictably means that psychologically, you just know that It needs to be ready to go when you hit merge, right? And you know that it's going to go live. And that should be the assumption. It should feel like an atomic operation in some sense, right? And then you should know that your job isn't done until you've looked at it in
SPEAKER_00production and you've checked yourself against your instrumentation. And I feel like Observability-driven development is a term that I like. I feel like two or three years from now, maybe five years from now, I think there's going to be a richer tool set around this. It's not just manually checking your instrumentation and production. I think we're going to see some really interesting stuff there. I just think we're not quite there yet. But the most important things are you know getting it out fast because when you don't get it out fast and when you don't get it automatically you enter what i think of as like this software engineering death spiral where everything starts taking a longer time but you know
SPEAKER_00it takes a longer time to code reviews take longer so your discs get larger so people back up more so they end up switching projects more so they waiting on each other more yeah then you need a release engineering team and sre team and you back releases yeah Yeah, you start batching out a lot of people's changes at once. And then it's just and then this is this is where the dark matter comes in, where it's just like, why is everything so slow? Because we're going as fast as we can. You know, and I feel like, you know, our teams, these are systems. Right. And they're comprised of feedback loops.
SPEAKER_00There are two kinds of feedback loops. Actually, there there are there are reinforcing ones. And there are leveling ones. There are ones that sort of like balance each other out and then there are ones that amplify each other, right? And the process of writing and shipping code is such an amplifying feedback. If it's short, everything downstream of it becomes shorter and faster and easier and quicker and funner. And if it's long, Everything downstream is so painful. So I really do think that these systems are incredibly complex.
SPEAKER_00It can be very hard to know where to start. You know, a lot of really good, smart people have gotten kind of bogged down and trying to change culture and change practices. I think that that interval between when you write the code, when you can look at it in production, I think that that's like as close as you're going to find to like the golden key to unlocking high performance.
SPEAKER_03Yeah, so what we're saying is that taking from the answer from before is that you should test your own code in production and to be able to do so effectively, you have to retain that context in your head when you do so. And to have that context in your head, it needs to have passed just a little time from not too much time, let's say, from when you push the code to when it's up there for you to figure out if everything works well. It's what we're saying. Yes, exactly.
SPEAKER_03And what are in your experience the most common offenders to this? I mean, the most problematic areas that are always the same that people should maybe start from to work to improve the delivery.
SPEAKER_00Good intentions. I say that jokingly, but it's a physiological fact that when we get scared, we freeze. We want to slow down and get more control over things. and so i feel like when when things feel flaky when they feel out of control when they still we add more process we add more tests we add more stuff we add more layers and we don't realize that we're killing ourselves you know and it's all done
SPEAKER_00with the best of intention and it's often incentivized by you know outside forces that are like pressing in and adding pressure and we're just sort of reacting to them and it really it really is hard This is why I think this is the job of engineering leadership. It doesn't matter if you're a manager, director, IC, or whatever. The job of engineering leadership is to show, not tell. I don't remember who said this quote, but I love it. When it comes to software, you would either have better software faster or worse software slower.
And so,
SPEAKER_00like, I think that we really have to, like, enter into these fights remembering that everyone is trying to do their best and everyone is fighting their own battles. And it's just human nature that all of this stuff slows us down. And the only way to start hacking away at it is to start, you know, showing instead of telling. Start peeling off a little bit. Start showing progress. start getting people excited, start building champions, start showing what can be done. And then, you know, I feel like the superpower of engineers is doing right.
SPEAKER_00Every other role in the company can talk about our work. Only we can do our work. And so, so often I feel like I've seen these log jams get burst by a senior engineer who is just willing to take a couple of days or a week, build something and just show everyone, look, it can be done.
SPEAKER_03Yeah, I love this positive take. My feeling is that we start losing the thread when we spend too much energy on trying to preventing things rather than being able to recover fast. Embracing mistakes because they happen anyway, but being able to recover faster from them. I mean, you start getting afraid that something bad happens. And because in the back of your mind, you know that when bad things happen, you are slow at recovering from them.
SPEAKER_03That's my feeling.
SPEAKER_00No, I think you're 100% right about that. And this is what I feel like. So the first few years of this bit of a diversion, but like working at Honeycomb the first few years, it was so miserable. Like building a startup, like it's just not, it's so unhappy. But like, I feel like it's good training to be working in distributed systems because what I've always said about you working on systems, they're complicated. They're constantly degraded. They're getting worse all the time. Your systems are constantly failing. The fact of the matter is that most people don't have good enough observability to
SPEAKER_00tell just how bad they are. Like when people start ruling out honeycomb, one of the most common reactions of people like, oh, that's broken. Oh my God, that's airy. Oh, and we're just like, yeah. You know how long it's been this way? forever let's just like get through it and like be done with it forever don't have the ability to see what's happening this should make everyone feel so much better because our systems are already resilient to so much stuff right and and this is great this is and honestly i feel like the appropriate attitude towards failure is humor just like
SPEAKER_00It's really kind of funny. We're naked, hairless monkeys up here on this spinning ball, just like poking at shit we don't really understand. And we make like we made this world that's like so complex and crazy and weird and fun and awesome. And I feel like an attitude of humility when it comes to software and just like curiosity is the cure to so much of this sort of fear and calcification like you were talking about.
SPEAKER_03It's true. So do you use Honeycomb to build Honeycomb? Absolutely. Fair question.
SPEAKER_00Absolutely. Don't know how we do it.
SPEAKER_03Otherwise, yeah. I mean, I'm always envious of teams who work on products that can literally 100% dog food and can be 100% their own customers. It's like a superpower. I don't know if you agree. I mean, in your experience, because it improves the feedback loop in a way that is like incomparable to, I don't know, other things that you might do. And I think it's a great experience. But you tell me.
SPEAKER_00Yeah, you're absolutely right. And this is, you know, one of the fun things about being at Honeycomb over the past few years, I feel like we've been sort of on the vanguard of so many sort of dovetailing trends in technology. And one of the ones that makes me happiest is When I was a kid, as a baby engineer, it wasn't cool to care about the business. All of the cranky old engineers were like, we're all about the technology. We don't care about the product. And that's not the way things are anymore. It's really expected that the best engineers are ones that care about the business and the product and the users.
SPEAKER_00And I think that that's so healthy and so positive. Dan Pink wrote that book about what we all want out of our work. It is autonomy, mastery, and meaning. And the meaning of our work is not bound up in what kind of data formats we're using. It's bound up in the impact it has on the users that we're serving. And I feel like there's this virtuous feedback loop of the more closely you can align and care and be curious about your users. Yeah, it's great when your users are also yourself. That's like a cheat code.
SPEAKER_03Yeah. Yeah. I love you mentioning that how the engineering role is broadening, like to take care of more and more things. And you have said before that in the early days, dev and ops would be totally different things. And now it's not only that we have devops, but we have engineering that are rewarded for taking care of the business, for thinking about the business. We have product engineers, like we call them like that. Right. And do you think like this is a trend that will keep I mean, even maybe with more productivity, AI helping engineers,
SPEAKER_03we will have more and more empowered engineers who are full stack, not just in the sense of technology, but in owning like vertical slices of the product and so the business.
SPEAKER_00I do. I mean, I think you can make a, it's just a cure to me, but I think you can draw a pretty decent metaphor between software development and computers writ large. 30, 40 years ago, computers were a tool that only computer people used to do computer things. And now it's a tool that everybody uses for their daily lives, you know? And so I think that like the question of, is anyone going to still need to write lines of code? I think the question is yes and. Right. I think that no code, low code is going to get more powerful and more prevalent.
SPEAKER_00But at the end of it, at the day, there's always going to be the need for people to deeply understand our systems. We are legally and ethically held accountable for the code that we put out into the world. We have to be able to understand it. Right. And so, well, you know, 20 years ago, every software engineer had to understand how disk drives worked and memory worked. And, you know, you had to when you're writing Hello World, you had to allocate memory and reap the memory. Very few engineers need to understand that. Now, some do, very few do.
SPEAKER_00Most of us have kind of moved up the stack. There's like this level of abstraction that has sort of changed. And I think that's going to continue to happen. There's nothing that we aren't eventually going to need to understand.
SPEAKER_03Yeah, it's true. It's true. The level of abstraction keeps getting higher and higher, even though it feels like with the most recent AI developments, it's kind of a different thing because, I mean, I've been thinking about AI as, you know, the most recent development in engineering, how it changes how people work. And it feels slightly different from, you know, creating a higher level language, for example, right? Because in a way you're still dealing with the same level of code that you were doing before, but you're being more productive because this code gets generated somehow.
SPEAKER_03Unless, you know, we will start, I don't know, version controlling prompts, but I don't feel it will happen anytime soon. But yeah, just me rambling, I don't have a position on this. I don't know if you've ever been thinking about this.
SPEAKER_00I have. And, you know, in some ways, I think it's kind of unfortunate that all of this early generative AI stuff is focused on generating lots of lines of code really fast because that's not the hard part. Like everybody thinks of like writing code is the heart. It is not. And it's never been the hard part of software systems. The hard part is understanding them, maintaining them, extending them, making them tractable, you know? And, and like, and I think that there are practical applications for AI when it comes to the other side too. Like one of the engineers I work with is like, I use generative AI every day, he says.
SPEAKER_00And it's like having a really energetic, enthusiastic junior engineer that I have to keep like, just like, saying settle down because they generate all this code but you still have to go through and like understand it make sure it's formatted make sure it's like modularized all this stuff like the understanding of code is the hard part and so like yeah of course 10 20 years now who knows what it's going to look like but a lot of the um thought leadership and futuristic thinking about ai right now
SPEAKER_00I just don't see it changing in the ways that they're claiming it's going to change because we still have to understand our software. And that's still the hard part. You know, there are two types of tools. There are tools that obscure complexity and tools that help us manage complexity. Honeycomb is very much a tool that tries to help you manage complexity. And I feel like so far, the general AI tools are just like, we complexity. Like, It's not really as helpful as you think it is.
SPEAKER_03Yeah, I think it's particularly important that you mentioned that maintaining, understanding and evolving code is like probably the biggest chunk of the work eventually, you know, for any part of the system or the code base, because And I feel with generative AI, what happens is that you're like maybe 10 times, I exaggerate, you know, 10 times faster writing code. But the risk is that you're then 10 times slower at maintaining it because it's not code that you have written. I mean, when you have to debug that code, you're incredibly slower than you are when it's your code.
SPEAKER_03So it's not, you know, it's not clear cut what is the net positive. Yeah, of course, it's a net positive overall, but it's probably less than what people think eventually, you know. of the long run.
SPEAKER_00There are use cases for write-only code, you know, agencies, like disposable apps, like there are use cases for that, but that's not most of the code that runs the world. I will say that I'm worried for junior engineers. The state was already not good before generative AI came along. So many companies out there are so short-sighted. They're like, no, we only want to hire engineers who are senior who can jump right in and get started. Nobody jumps right in and gets started. It takes a while. Have you ever been in a team of all staff and principal engineers?
SPEAKER_00It's fucking miserable. It is not a good team. you need range of levels to have people who are asking questions, people who are answering questions, people, the most productive engineers in terms of like generating features are rarely your most senior engineers. They're usually the intermediate engineers, the ones who aren't yet being dragged into all the meetings and planning and everything. They're just able to sit down and write software. And I feel like the best, Like the most senior engineers are rarely the best coaches because you really want
SPEAKER_00someone to mentor you who's only two to five years ahead of you. So I feel like, yeah, there is an upfront cost to hiring junior engineers, but it's not as big as people think it is. And there aren't just long term arguments for doing it. There are really good short term arguments for doing it, too. Junior engineers are so grateful. They're so thankful. And they're so loyal, typically. And they ask great questions. They bring energy. They bring new ideas. I feel like there's this tendency now to just go, well, AI can do it.
SPEAKER_00And that's really stupid. Because at the end of the day, nobody is arguing that we're going to need fewer senior engineers. Nobody. And how are we going to do that? I don't know.
SPEAKER_03I agree 100%. I mean, I've long argued that junior engineers actually make your teams better because otherwise, as you said, if it's all staff plus engineers, super senior engineers, things kind of degrade over time. The fact that there are junior engineers keep your team from... taking too many things for granted. I don't know how to say, you know, you see that people write less and less docs. Maybe they just know how they do things. I mean, they don't care. Instead, the fact that there is somebody who's learning, somebody who has to understand how you're doing things,
SPEAKER_03it's like it keeps them at a higher standard, you know? 100%.
SPEAKER_00And it's more fun. I mean, I think that fun is undervalued as a work value because, you know, A really happy, healthy team is one where every single member is being challenged, is pushing their boundaries, is growing, is doing new things. If you have a team full of people who are all super jaded, who have all built a login form like a thousand times and everyone's bored by it, nobody's going to do a good job. You want someone there who's like, I get to build a web form? Oh, my God.
SPEAKER_00I mean, it's so much more fun to be working with people who are all being simulated.
SPEAKER_02It's my first time.
SPEAKER_00It's my first time. I know. It's so energizing for everyone.
SPEAKER_03Thank you. Thank you, Shay. I think this was a perfect parting topic for this chat. So we're going to wrap this up. Thank you so much for this. And I love this conversation. I mean, my only regret is that I would have loved to have like five hours to talk with you about pretty much everything. So thank you. Thank you again.
SPEAKER_00Thank you so much. This was really fun.
SPEAKER_03Thank you so much for listening. If you found this chat valuable, you can subscribe to the show on YouTube, Apple podcasts, Spotify, or your favorite podcast app. Also, please consider giving us a rating or leaving a review as that really helps other listeners find the show. You can find all past episodes and learn more about the show at refactoring.fm. See you in the next episode.
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now: YouTube | Apple | Spotify Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify - Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: Notion Learn more about Notionβs Developer Platform today at...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Todayβs episode is brought to you by: Notion Learn more about Notionβs Developer Platform today at...