Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Elixir Mentor

Elixir Mentor artwork

Elixir Mentor x BEAM There, Done That

Nov 20, 20261 hr 26 minAudioSeason 1, Episode 98
ShareXLinkedInFacebookWhatsAppEmail

Francesco Cesarini, founder of Erlang Solutions, and Allen Wyma, hosts of BEAM There, Done That, join Jacob for a live crossover of both podcasts. They trade origin stories, compare what the Erlang and Elixir communities learned from each other, and dig into LLMs writing Elixir, security and vulnerability disclosure on the BEAM, and why stress testing and back pressure matter. Francesco also tells the story of a telecom switch that failed after three years of uptime, and the episode closes in the BEAM There, Done That style with a takeaway, a back catalog tour, and closing thoughts. 00:00 - Introduction 01:37 - Francesco's Erlang origin story 04:29 - Allen's path to the BEAM 06:42 - Why functional programming gives cleaner code 09:07 - What Erlang learned from Elixir 13:36 - Tooling, dependencies, and enterprise constraints 17:34 - Stress testing and the database bottleneck 20:40 - Can LLMs write good Elixir? 22:59 - Usage rules, Credo, and Ash 25:40 - Mnesia and the story behind its name 28:41 - Security on the BEAM 32:37 - Vulnerable vs actually a problem 36:34 - Coordinating disclosure on the OTP side 40:50 - People using software in unexpected ways 45:56 - The telecom switch that died after three years 52:59 - Planning for failure and firefighting 56:39 - Cascading failures: Microsoft, Skype, WhatsApp 1:01:13 - Load regulation, back pressure, and the fail whale 1:06:11 - How we use LLMs day to day 1:08:42 - Will AI spin up distributed systems? 1:11:28 - From cooks to tasters 1:13:13 - One takeaway and the BEAM There, Done That wrap-up 1:16:12 - Back catalog and The BEAM Book 1:19:00 - Two shows, two audiences 1:23:25 - Sign-off Resources Mentioned: BEAM There, Done That: https://podcasts.apple.com/mx/podcast/beam-there-done-that/id1880642413 Erlang Solutions: https://www.erlang-solutions.com Ash Framework: https://ash-hq.org The BEAM Book: https://github.com/happi/theBeamBook KinSwitch: https://kinswitch.app?utm_source=elixir-mentor Connect with Francesco and Allen: Francesco on LinkedIn: https://it.linkedin.com/in/francescocesarini Francesco on X: https://twitter.com/FrancescoC Allen on LinkedIn: https://hk.linkedin.com/in/allenwyma Allen on X: https://x.com/allenwyma SUPPORT ELIXIR MENTOR https://elixirmentor.com/?utm_source=elixir-mentor #ElixirLang #MyElixirStatus #ElixirMentor

Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.

Transcript

From the show.

Jacob Luetzow: What's up? I'm Jacob Luetzow your Elixir Mentor. And welcome to another exciting episode of the Elixir Mentor Podcast. This is where we discuss everything related to Elixir from interviews with enthusiasts and pioneers in the community to innovative projects and libraries shaping Elixir's future. today we're doing a little something different. This is a little crossover between Elixir Mentor and Beam There Done That. And welcome, Francisco and Alan. I'm excited that we're doing this.

Francesco Cesarini: It's great to be here.

Jacob Luetzow: Yeah.

Allen: Yep.

Jacob Luetzow: So yeah, I guess what I like to do is for people that don't know you, Francesco, can you kind of tell us how you like where you started? I feel like you have a really cool like origin story with Erlang and all of that. Like how did Erlang solutions become?

Francesco Cesarini: So I started off well at Uppsala University when I was studying my computer science degree. the teacher one day comes in, goes in and actually pulls copy of this book right here, which is the first edition of concurrent programming in Erlang. Sorry, it's upside down here. Concurrent programming in Erlang, and says, you know, this is the book, read it. Goes in, these are exercises, do them. And Yeah, we went in and yeah, we had to write the simulation. Took me about 40 hours to do. a few months later we got the same exact exercise, but we had to do it using pair programming and in a language programming language called AFEL. And it ended up st it ended me yeah, it ended up you know taking me forty hours to do to solve that problem in Neuralang. and 60 hours two of us so 180 in total doing it in so 120 in total doing it in AFEL. And so you know that's when it kind of clicked, there's the right tool for the job, you know, rather than the tool at hand. And that's when I picked up the phone, cold called Joe Armstrong at the computer science laboratory and asked for an internship. I was down two weeks later, got it, and so you know, got into Ericsson at a very early stage in you know in in airlines history and you know was on the team we worked on the first release of OTP and yeah basically saw a programming language you know become an ecosystem of languages. You know, there are almost sixty languages on the beam today. I think we had an episode on the fifty-eighth language not that long ago. on on Bondi. And yeah, after ten years in Sweden I moved to the UK and you know by accident founded Erlang Solutions. you know people said we need commercial conferences so we started conferences. we need books so I wrote books. we need more universities to teach Erlang and you know later Elixir so started teaching at first Chalmers and then which is the IT university. Became a part of Chalmers and then Oxford University. And in parallel, yeah, we also, you know, founded the Erling Ecosystem Foundation, on which you know I'm on the board today. So yeah, it's been a privilege seeing a language, you know, turn into an ecosystem of languages, you know, similar evolution we've seen with.NET and the JVM.

Jacob Luetzow: Yeah, it's gotta be really cool though to witness and see real time. I didn't realize that there were sixty languages off based off the beam. That's cool. It's very cool. Alan, how about yourself? How did you get into the beam? And how'd you get into podcasting? Where what's your origin story?

Allen: Wow. That's that's a really great question. all that kind of stuff. I don't even know where to even start with all this, but I I maybe we should stick it to the to the beam for right now, right? So for the beam, I was always kind of fascinated with multi-core programming. we didn't learn that in school in terms of how to necessarily do it per per in in a more interesting way. But I remember hearing about Elixir, not so much Erlang. I I I heard of Erlang and I remember using CouchDB for a project, and I was like, why would you ever want to use this weird language? the syntax and everything. And just the name Erlang at the time, and it didn't I didn't even know what it anything about it, right? I just said Erlang, I'm like, why is it not Java? Why is it not C, why is it not, Ruby? 'Cause at the time I was a big Rubyist. And because I was in the Ruby community, of course you could be doing Rails most of the time. So I knew Jose and I heard he was working on some language and I like, Okay, let's check this thing out. I loved his packages. And playing with it, I was like, Wow, this is pretty powerful. I could do all this cool stuff, you know, I could spin up all these processes and everything like that. So That was basically where I got started for a project. I I I for a project I wanted to do was I wanted to to kick off a bunch of processes to to do something. I can't remember what it was at the time. but yeah, I got into it at that time. I didn't actually start using it until maybe a couple months after that full time, but just like I like I said, with Rails, that was the th language, that was the framework you'd be using. So then I started using Phoenix. And yeah. W you with Phoenix, the great part about Phoenix is that you don't have to really know a lot about Elixir, a lot about OTP. It gives you a lot of stuff out of the

Jacob Luetzow: Mm-hmm.

Allen: box. It just hides it. Same with Rails and Ruby, right? You get a lot of stuff out of the box. So it's it's it's pretty cool.

Jacob Luetzow: Yeah. Phoenix, Phoenix is a good framework. You can and spell and then the introduction of live view, you start just using like gen servers and all the things and everything just magically works for you and you don't really know why when you first start. I would say I accidentally, I knew on paper Elixir and you know, the beam were like a good fit for my first project that I started using it for. And I but I didn't actually understand why. Like I was just, you know, learning the syntax, understanding like transforming values versus, you know, singletons and object-oriented programming. Failures, in my opinion. I think if you need to have a whole book about architectural patterns and how you need to write code properly, so you, have hopefully clear bug free state in code, I think you have a problem, right? And I think that's what functional programming fixes. At least in my opinion. I think it forces a lot cleaner code, smaller functions, and you don't create these just huge function blocks that are just, you know, input comes in, magic comes out, and you like you know, like it's more just like you're doing one transformation essentially.

Francesco Cesarini: Declarative programming at its best. it's

Jacob Luetzow: Yes. Yep.

Francesco Cesarini: and I was actually lecturing last week a computer science student at the University of Innsbruck in Austria, you know, showing them actual university research where they had taken some C code and re-implemented it in Erlang. It was actually a live solution, a live system. based on the C if you assume that OTP was part of the language itself and you didn't go in and count it, they'd achieved a twenty X reduction in the size of the code. And and this twenty X reduction, you know, you know basically relied on libraries which are there solid and well tested. And you know, pointing fingers going, you know, you know, if got AI slop, you want twenty x that amount of code you know to go in and review. Or do you you know do you want a subset of it, you know, building on on well known approaches and reliable libraries?

Jacob Luetzow: Yeah. I'm curious, Francisco, from your like viewpoint, being like so involved in Erlang, what did the Erlang community end up learning when like Elixir, you know, entered the the room?

Francesco Cesarini: a a lot. José and I, you know, were there together, you know, on many occasions, especially in the early days, you know, there was bit of friction because of you know the completely different problems and approaches the two communities you know went in to solve. And so you know the the the we went in and basically, you know, you know f from a from an airline perspective understanding the empathy, understanding the fact that not everyone is out there with a computer science degree. Not everyone will hack together their own gen server, in their lunch break and and and you know be able to visualize the problem in the same way. understanding the importance of tooling and how tooling can actually save you a lot of time. And and you know, I think and on top of that, I think also the the the importance of usability and user interfaces. I mean an Erlang developer, you know, we did back end systems, we did telecom systems, you know, how sexy is that? you know, financial switches. You know, we wouldn't be able to design

Jacob Luetzow: I don't know. I think it's pretty sexy.

Francesco Cesarini: well i i i it's i it it yeah, they transfer a lot of money, but but yeah, it's not something you can really look at. And and on the other hand, you know, the whole user interface usability was something we never even entertained. So yeah. Yeah. Exac exactly.

Jacob Luetzow: I think that's the easy moat that back end engineers can fall into, right? Like you

Francesco Cesarini: So f from the adoption, I've been teaching Erlang for since the late nineties. And, you know, when we go in and teach, we we get let's get rid of the hard stuff first. So, you know, the first two, three days, you basically force everyone to get over this hurdle. of understanding recursion, understanding concurrency, understanding pattern matching, all of the magic Erlang and the Beam bring to you, and then the next few days you consolidate, which is a very, very different approach to what Alexia takes, where, you know, instead of starting with a steep learning curve, you start with a very flat learning curve and then, you know, for those who need them, that's a subset, the steep learning curve co comes towards the end. And very happy to argue

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: that it's actually steeper. than Erlang because Elixir is a more complex language than Erlang. But it's it's where you place it and you know and the fact that you know and and where you lose the people. And so we lost a lot of people at the beginning of of of this you know steep curve before it leveled out. Elixir doesn't lose as many because you don't need to know as much, you know, to become a brilliant

Jacob Luetzow: Yeah.

Francesco Cesarini: Phoenix developer you need to know how to connect an endpoint to an ecto query and you're productive within a day and then you start

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: learning as you go along. you know you didn't have that luxury. Yeah. Yeah.

Jacob Luetzow: Well, and that's the angle that that I always took with my channel with my tutorials. It was always look, don't worry about gen servers or OTP. you don't have to really concern yourself about that until you need to. And you'll like and then you'll be ready. Like when you run into those problems that need to be solved that way, you're probably ready to learn, you know?

Francesco Cesarini: Correct, correct. And And I think so, we had the most I mean, we had literally the fastest and most scalable web servers in the mid two thousands where we would serve dynamic web pages. We generate the web page and serve them faster than what it would take to look them up in Redis. you know, Bleacher Report had very similar you know, had very similar numbers when they migrated from Ruby over to to Elixir. They never went down the Phoenix route, but you know, they they had very similar the numbers but that didn't really matter if it took you a day, to to to put something together end to end to start serving these web pages.

Jacob Luetzow: Mm-hmm.

Allen: Well that's something I also wanted to mention. I'm glad you started bringing it up. I think that was a big shift, right? Because Erlang and even maybe not as much, but Elixir developers are more concerned about, you know, the technology, right? What can this do? How fast is it? But if you take a look at, you know, Erlang and all the goodness that it brings, and you look at Elixir, a big difference is about the what do you call that? Like you said, the tooling, the the the quality of life when using it. I I think you told me before that Erlang people, it's nothing crazy to make your own make file, to write your own bash script, to write your own JSON parser.

Francesco Cesarini: It

Allen: I wouldn't be surprised. But in Elixir, we're like, you we're used to just pulling libraries off the shelf to get things done. Now we're not JavaScript TypeScript people, where we're just, what's the flavor of the week? it's more like this has been battle tested, we're pulling this one in.

Francesco Cesarini: This is also historical though. You need to go back to the days when you go going back to the days, you know, we couldn't pick our own tools. I mean we had our own package manager, you know, we had our own equivalent of Hex, we had our own equivalent of Mix. You know, back in the early two thousands, the problem is, you know, half of the community had their own tools, didn't use it. the other half couldn't use it because you know we worked with an enterprise and so there they told you what to do. You know, you threw a hundred people at a project, you know, spending two weeks integrating in the tool chain, you know, some pointy haired boss had come up with, was perfectly acceptable. And you know to the point where you know we couldn't use GCC because it wasn't supported. We had to use C C on our Solaris platform. So what did we do? we we we downloaded GCC, we installed it, and then we had a link you know, calling it CC, linking to GCC instead. And obviously, yeah, management never noticed. You know, that that that that those were the types of workarounds you know we were using w when we were doing that.

Jacob Luetzow: Yeah, I feel like their Elixir is like a balance, right? You pull in dependencies to make quality of life or just have a more resilient package that you don't have to hand write, but you also will write your own things for simple integrations and lifts versus if you come from like the JavaScript side of things and web development. I feel like people are pulling in like you you have thousands of dependencies, like just starting a React project, which is wild.

Francesco Cesarini: And and that's another cultural thing where we try to avoid dependencies as much as possible and you have to

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: when you've got so A either you have software which transacts with billions of you know transacts with billions of dollars per day, or you know, take a radio base station, you know, which handles five and six G connectivity, you start you're pushing it out in tens of thousands of of versions. You can't just pull out your the latest the latest dependency of hex and then build and and and ship to production. That won't work. You know a mistake there will will will cost tens of millions of dollars. So you need to make sure that whatever you need to know every single line of code of what you ship.

Jacob Luetzow: Mm-hmm. I also feel like, Francesco, you're more like you're you're in the OG days, and I mean this like with like I think it's awesome. Like you you saw the days where like memory and like hardware resources limited too, so efficient code mattered more. And now we're in the days where it matters less. And I don't know if that creates sloppy or lazier developers, or if it just kinda like we just run into those problems down the line in a project.

Francesco Cesarini: No, so something I've noticed every airline project we ran, we always wrapped it up with stress testing. Because when you're stress

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: testing, you get race conditions and you find bugs and you prove how fast, you know, your your your you know, how fast you can run.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: I rarely see you know Elixir Dev stress tests, and when they do, it's always bottlenecks

Jacob Luetzow: Right.

Francesco Cesarini: in Ecto because everything else is so highly optimized. And you don't need to stress test in ninety nine percent of the cases. Because

Jacob Luetzow: Right.

Francesco Cesarini: yeah, especially those moving from Ruby over to Phoenix, you hit two million o simultaneous open web sockets in in twenty fourteen. Yeah, that's over a decade ago. You know.

Jacob Luetzow: Yeah. And I do think the bottleneck everyone runs into, and a l most people don't in like their whole careers, right? It just depends on traffic hitting your website, but it is always the database. It's always that bottleneck. And like I never experienced it until my

Allen: I do want to I was just gonna say I sorry to interrupt but because this is like on my mind. I actually ran into quite a few performance issues with a recent application of mine. And I have to say LLMs are great because I could actually point it and say, I'm having problems, take a look, and it could actually figure out where the problem is in the running system pretty nicely.

Jacob Luetzow: Yes. Yeah.

Allen: but no, actually you do get issues and I try my best to actually put more things into the database because queries are usually faster rather than pulling in all the data, filtering in memory and all this kind of stuff too. Because I was working

Jacob Luetzow: Right.

Allen: with another guy. He was basically doing that, pulling all the data in, only selecting one field out of 50, doing a bunch of processing on it.

Jacob Luetzow: That's like the That's very much like the restful API mindset, right? Just pull all the data that you don't need.

Allen: Well it's it's it's it's just it it's I I'm kinda talking about him in a bad way. I shouldn't make it sound like that. It's an education problem, right? if yeah, it's really what it is. Well,

Jacob Luetzow: Of course most problems are, right? Yeah.

Allen: usually it's a people problem, but it depends on the situation. But but in this case, yeah, it's it's an education issue.

Jacob Luetzow: I mean, yeah. I mean, I never thought about query performance because I never ran into issues until I currently work at Collects and we have, you know, thousands of queries a second now. And like we just hit, I think, five million users. And that's what like so many people don't experience that. So I'm like so grateful I get to run into these problems. Because you also see the the power of the beam and Elixir and like concurrency and distribution of nodes. You get to see all this like work so easily, but then you still have that that database bottleneck and that's that's the hardest problem to solve. And so speaking of, we have a question from the chat. Any take on how bad LLMs are in writing Elixir code and its concepts? I don't know if I th think LLMs are bad at writing Elixir code, but I'd love to hear your take.

Francesco Cesarini: Everything I read No points to the opposite. That you

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: know the quality of what LMs reduce is much better than the slop in the other programming languages. I think the big

Jacob Luetzow: Yes.

Francesco Cesarini: problem is, you know, when you're dealing with L LMs is that you're speaking to a junior developer. And it's

Jacob Luetzow: Yeah.

Francesco Cesarini: like speaking to a very junior developer or graduate, and you need to give them very, very clear instructions. And that means, you know, having a certain level of understanding over how to abstract and you know break up your system into smaller, smaller units, you know, which is processes, which is the supervision trees, applications, you know, need to tell the supervision tree, you know, what restart strategy you want your supervisor to take. And you need to be able to understand how to wrap it up into a a functional API. You know, so you know that that that's really what you need to that's really what you know the the approach you need to take. And and once you have your application it's solidly tested, you start grouping applications, OTP applications together into your release. But

Jacob Luetzow: Yeah.

Francesco Cesarini: you know you need to take that approach

Jacob Luetzow: I think it's very important to understand that if you vibe code anything and you don't understand what you're like how the language, how the stack even works, you're gonna end garbage in, garbage out. Like you're kind of the director, right? So you have to push it in the right direction. I like like I run my own project, Kin Switch, and I don't write code anymore, but I read it all. I look go through all my PRs and I review everything. And one thing I will say is I use the Ash framework and that it makes LLMs even so much better because you know it's one way to do everything. And I think that simple structure is what LLMs love. And I also think that's why like the functional paradigm is working so well with LLM generated code. I don't know if it's like specifically Elixir. But I also can't speak on other languages because I'm only I'm in Elixir every day and that's pretty much my only only language these days.

Allen: There's something that's actually helped me a lot with my because I used to always have the same issues. I actually had my LLM create a I don't know, I guess it's a package or something, which is basically two things. One is a custom set of usage rules. I think because you're using Ash, right? You probably also use the usage rules wrong, right? So custom usage rules. It definitely is.

Jacob Luetzow: Hmm. Yep. Usage what a the best library ever. And it's like one of the simplest concepts ever.

Allen: So basically usage rules and also Credo plugin of some custom like some custom links. Those two have solved. So

Jacob Luetzow: Yeah. Credo's so important.

Allen: I'm basically 99 to 100% every time I run my like a couple of prompts. I'm basically there. But at least none

Jacob Luetzow: Mm-hmm.

Allen: of the stuff I complained about every single time is is is gone. Like I to usually include Ash paper trail. I like to also include Ash Archive because you know people will delete things and want to bring them back. So

Jacob Luetzow: Mm-hmm.

Allen: I just added a couple links for that using credo and it automatically says, okay, it just generates those things from from me automatically, exactly the way I want. So I think those two are two powerful

Jacob Luetzow: Yeah.

Allen: things that people should use, especially if you're using Ash.

Jacob Luetzow: Yep. No, I agree. And I really I love paper trail. especially just like having the audit history, especially I don't know, like for something like Kin Switch, like you're putting up the important documents, you have, you know, notebooks that you want to pass on to people with important information in it. You like the audit trail, like just is so important to me because everyone can go through their own activity history. So if they don't recognize something that they've done on my platform, they can see it all. And yeah, I don't know. Ash is just it's a great framework and little ecosystem and I highly suggest adopting it if you haven't.

Francesco Cesarini: It adds another layer of abstraction,

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: reducing reducing you know what needs to actually be implemented.

Jacob Luetzow: Yeah. Well, I like, and maybe this is because I'm a lazy programmer, but I just build I like building you build you essentially build your schema and that's it. And you rarely have to worry about your database migration files and everything like that. when you're hand building and just like, now I'm blanking because it's been so long since I haven't used Ash. But if you just have your your schema, your like your ectos schemas and things like that, you're always in your migration files making tweaks on what you want your indexes on and things like that. And I feel like you don't have to think about that when you are leveraging ash.

Francesco Cesarini: in in the Erlang world. Databases were never the bottleneck. so we always use Mnesia. So yeah there was

Jacob Luetzow: I don't even know what that is. You wanna

Francesco Cesarini: i i it's a an in mem well it it's a database it's a probably the first open source distributed key value store

Jacob Luetzow: Okay.

Francesco Cesarini: out there. It was it released yeah it was developed in nineteen ninety five originally called Amnesia until a Ericsson manager in the suit and tie went in and walked into your Klaus Riksmann office and told him that, you cannot call a database amnesia. And

Jacob Luetzow: Yeah.

Francesco Cesarini: Klaus goes, Why not? Yeah, and manager, because I tell you, so you they they dropped the A and called it amnesia instead. And it's it an in-memory database. So what what you're in fact doing and it's you know, you can run transactions, but it wasn't really recommended. So, it it's you've got tables, and it's it's in effect the key value store. And

Jacob Luetzow: Okay.

Francesco Cesarini: where you've got a copy on on disk, which is and you have an in-memory copy as well, which meant that your reads were incredibly fast. You know, you know, we're talking you know, back then was milliseconds, now it's microseconds. And Because you it's in the same memory space as all of your business logic. It was actually based on ETS tables initially and now

Jacob Luetzow: Okay.

Francesco Cesarini: there are there are other backends. And so you use it as a cache to whatever it was

Jacob Luetzow: Mm.

Francesco Cesarini: you were doing. so you retrieve everything from your your your your your your your actual database, you know, be it Oracle or your Postgres, MySQL or whatever it was. And you'd store it in Mnesia for as long as the session was ongoing. So you didn't have to

Jacob Luetzow: Okay.

Francesco Cesarini: hit that database. It was a really great pattern. yeah, if you go in and look at the Wikipedia page, there's something called Lyme L Y E, it has its own Wikipedia page, which is a Linux yours Mnesia Erlang stack, which we use to build web you know web web solutions.

Jacob Luetzow: That's awesome. I feel like like Yeah.

Francesco Cesarini: But yeah, we we're we're digressing from the L L topic, but yeah, i i it it's

Jacob Luetzow: Well, caching is a difficult problem to solve, I think. you either are over caching or under caching. So where's the balance? Let's see, we have Nero. What do you guys think about cybersec with Elixir? I think this has been a big topic as of lately, especially with Peter Ulrich and the EEF and all the C V E's, yeah. I don't know. I feel like Elixir and the Erlang stack are like pretty secure, right? And we're still finding like a ton of vulnerabilities, but not really nearly as many as other stacks and languages.

Francesco Cesarini: It used to be security by obscurity back in the days, you know, but that's now over. you can just

Jacob Luetzow: Yeah.

Francesco Cesarini: yeah, unfortunately. yeah, I mean if we're looking at that, I mean that's interesting, you know, it it's a good question. historically I think the beam was built to run behind the firewall. And

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: Yeah, that's because your server side systems, telecom systems ran behind the firewall and and the the whole mantra was, leave security to the pros. you should never run distributed airlines on an open network.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: you know, i i it it's you know, can easily go in and find, you know, search E PMDs and and and figure out, you know, if you're running distributed Erlang or not. And if you are, you then start hitting the nodes, and yeah, it it can't end well.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: back in you know the 2000s, you know, cookies were sent on the network unencrypted. You know, it came you know, encryption came yeah, it it came in the early 2000s. So you know it was not built, you know, to to for security.

Jacob Luetzow: Right.

Francesco Cesarini: And now Yeah, w now that we've got facing, nodes facing you know externally facing nodes, you know, which are connected to the database, I think it's a it's a it's a complete new beast.

Jacob Luetzow: Mm-hmm. What I always like, what I think is fascinating too, watching Erling, you know, come from telecommunications and the problems that they had to solve. And now we are seeing the same problems come up with like agents and processes and all this. And it's solving a new problem the same way it was already solved. And I think that's really cool to see.

Francesco Cesarini: Absolutely, absolutely. I I I think looking at security, I I yeah, I I want to go back to some of the old recordings we've done and and more specifically the one with yeah, Peter Ulrich, which you had, you know, talking about C V E's. Yeah, and and then you know, go in and discuss you the different approaches we've taken to it. I think, you know, that

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: that's a good link, you know, from security. And you know I went back and you know listened to you to to to your recording and my my question is what were you trying to get out of that episode you know when had you know Peter on the show?

Jacob Luetzow: it's always just education for me, right? It's like normally my guests always know way more than I do. So it's like a chance for me to get caught up on all the news in the Elixir ecosystem, you know? And so I th I had P I've had Peter on quite a bit, but if it's like specifically the CVE one, I think I was very interested in his approach, how he was leveraging LLMs. To actually find vulnerabilities because I feel like that's a very difficult thing to do and to do well. Especially I don't have much of a security background. Like I wouldn't, like I wouldn't say, hey, you should hire me to pen test. It just wouldn't be smart. I would recommend like Michael or someone that's actually, you know, fit for the job. so yeah, it was mostly just curiosity. Like, how are you? Punching holes in all these libraries that haven't had any issues or vulnerabilities found for years. And so it was mostly the process that I was curious with. And obviously, like anyone with an open project right now, you know, I always like to just blame Peter just every time I have to update my dependencies.

Allen: What I think is also interesting, interesting too, is we had Angela on, and I think this is an important thing that that she brought up with a lot of people are talking about it is because something is vulnerable, doesn't mean that they're gonna fix it because doesn't mean that there's actually necessarily a problem, right? So for instance,

Jacob Luetzow: Mm-hmm.

Allen: there's some methods, okay, so such as was it binary to term, I think it is, or something like that, right? Yeah, or binary to atom,

Francesco Cesarini: Yeah. In term to binary, yeah.

Allen: right? We know that you shouldn't do it. we have it there for a reason, but we the problem is that they're not gonna fix it because it's useful. But at the same time, you

Jacob Luetzow: Mm-hmm.

Allen: have to actually train people, don't use it for something that's public facing. there's

Jacob Luetzow: Yeah.

Allen: a reason that, when you do JSON to to a a map, you're not getting Adam Keys. Right. Where

Jacob Luetzow: Mm-hmm.

Allen: so I I I it I think it's more fascinating to see is it actually a problem versus, you know. It is a problem. Do you know what I'm saying? is something like is it more so that you need to fix how you write, or is it that we actually have a problem to fix? so.

Jacob Luetzow: Yeah. I think if it can be exploited, unlike not using something improperly, right? So this I feel like this is a a hard conversation because like a lot of people will create a library and be like, well, you shouldn't use it that way. Everyone knows that the it's like vulnerable to write code that way. I think like having the education around it, for instance, like just using a library like Paraxial, where they'll flag things in your code and be like, hey, you're using binary to term here. You shouldn't, and here's why. I think that that education is so important to know. And or just like I don't know, like string to atom, just where you can have like memory overflows and things like that. Like just like stuff that is just kind of common knowledge, but you don't really learn that without a little bit a few scars, right? So or talking to the right people. So I think like leveraging security libraries, and actually reading the outputs, like actually having some sort of like CI check that flags your code. It's just I think that's just an important step to take, especially if you have public facing product.

Allen: Well the EEF actually already has I was gonna say the EEF actually already has some kind of standard or or guideline, I think, or something. I remember I asked Jonathan about this and he said there already is something. I need to have to go find it. Have you seen this, Francesco, for what he was talking about before?

Francesco Cesarini: if he was referring to SAFE, which is basically static is it's basically s looking at static analysis tools, you know, for

Jacob Luetzow: Mm.

Francesco Cesarini: the code. yeah, the big problem there, yeah, with with any of these tools is that they flag quite a few false positives. So

Jacob Luetzow: Right.

Francesco Cesarini: you need to go through them, but they do catch a lot of vulnerabilities as well. And and are able to then go back up to the source of those vulnerabilities and come up with recommendations.

Jacob Luetzow: Yeah.

Francesco Cesarini: so you know I think a lot of these are also you know however found with AI these days in a much more efficient way than running static analysis during your you know CI C D pipelines.

Jacob Luetzow: Mm-hmm. Yeah. I will never claim to be a security expert. I it actually so many of that's of those things like scare me and probably keep me awake at night sometimes. But I feel like try to educate yourself as much as you can. And that's like that's why I like to talk to the Peters of the World and you know, Michael Lubis and all these guys that they're the experts. I bring them on my show and that's like My selfish reasoning to learn live, directly from the source.

Francesco Cesarini: Back to the whole Peter Uldrick episode, I think Alan and I had a very different approach to what you took. you know, same guest, same story, you know, but different conversations. And

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: we actually went in and asked Jonathan Matchin, you know, to join us from the Ecosystem Foundation. You know, so he was the one, you know, in the middle acting as an interface and and receiving and and and and together with Peter looking at at the C Vs and and this is something we tend to do on the Beam that done that we try to get the creator of something

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: and you know sometimes we were even able to find a user and this this episode actually yeah this episode actually helped us, you know, inspired us to go in and then find the person on the receiving end. And that's why we went in and recorded the episode with Engelandine of the OTP team. And I think she'd

Jacob Luetzow: Yeah.

Francesco Cesarini: just been on the receiving end of a lot of vulnerabilities, you know, they found you know w when aiming when aiming agents on you know some of the code she was responsible for. And She was basically slowly going through, a lot was AI slop, a lot were

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: vulnerabilities which were raised or or or issues which were raised, but which hadn't really yeah, been they had they hadn't really gone in and looked at them. Others were really serious ones. So, i i it's yeah, and first thing she did was she doesn't use L L Ms to solve the problems. But she a uses LLM's, she said, to ask for opinions on what has

Jacob Luetzow: Mm.

Francesco Cesarini: been submitted. Is this really an issue? You know, what do you think? And has a conversation with them, you know, to to to to understand

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: and and prioritize, you know, the reports she's given it. So yeah, i i it's reminds us, you know, finding is is half the story, disclosure and coordination, you know, other half. And yeah, yeah.

Jacob Luetzow: Yeah. And just verifying too. I feel like that would be I it would be hard to be in Jonathan's position and any of those positions because going through all the noise has to be almost overwhelming.

Francesco Cesarini: It it is and going back to our episode, there's some some listeners I think called our episode alarmist, you know, that that we were, you know, shouting fire. I mean from your side, you know, from the hiring in the building side, you know, I don't know if you've listened to it, you know, but think it would be a wake up call or you know, or perceived as background noise?

Jacob Luetzow: I think it's a wake-up call because well, and I I I think you have to take everything with a grain of salt, right? Like a lot of these things have existed for a long time. So yes, they're important and they should, you know, be attended to and patched and fixed however you need to do it. And then like you have to you have to kind of sit on it's a balancing act, right? Like, do we have to worry about Hackers leveraging LLMs to hit these vulnerabilities faster than they ever have before? Probably yes. But also, like you guys were saying, is it actually an exposed vulnerability or is it hidden inside your code base and it's not accessible? So like in most cases, when you're using a library, I feel like it's not exposed to an external API or anything that, you know. The nasty actor can actually extort.

Francesco Cesarini: That is correct, but yeah, I've learned never never make assumptions on you know never go in and make assumptions on you know how people are gonna use your libraries because and tools. You know, i i

Jacob Luetzow: That's true too. Yeah.

Francesco Cesarini: it's you know you know you're successful when they start using in very, very unexpected ways. And often saying,

Jacob Luetzow: Yes.

Francesco Cesarini: but you shouldn't use it that way, well people will. And so you know don't take that for granted.

Jacob Luetzow: I before I got into software, I did a lot of manufacturing automation and I did that for about 10 years. And what I I used to, I would tear apart old like hydraulic mechanical systems, like mechanical timing and all this, and replace it with servos and encoders and timing and touch screens, all the fancy things, right? The second you took an equipment back online and you had like the operator use it. They like my first couple of times doing this, you never think about when you fix a solution, you only use it the way you fix it, And I would watch them do things out of order and break my equipment. I'm like, my gosh, I have to put so many safeguards and guardrails in now. And so that was like I feel like that experience helped me prepare for software and how people can use use your product or library differently than you. expected 'cause you'll get curveballs.

Allen: I want to piggyback on what you're saying to talk about another product I worked on recently. so this company, they they contracted us for working on the system where people can so that it's a it's a company. Sorry, it's a it's an NGO they have people with Down syndrome and and and they prepare basically activities like a lot every single day, nearly 365 days of the year. And one thing that's quite interesting is that they one of the requirements that they wanted was that they Okay, within the last 48 hours, we want to be able to let anybody register. Before that, we want to stop them from registering too many times in a week. So, five times in a week, they could register. But within the last 48 hours before the the class starts, we want them to be able to register and join. Otherwise, they would register before that and they'd be on a waiting list. And something

Jacob Luetzow: Mm-hmm.

Allen: I wanted to say was that they actually figured this out finally. this, this is this, what you were just talking about, people using the software another way they never thought about. So they would register, see that they were on the waiting list. 48 hours before they noticed that if they dropped themselves from the waiting list, rejoin, they actually get to join the activity. So they actually get to skip the waiting list compared to other people. So, I never even thought about this.

Jacob Luetzow: yeah.

Allen: but it's so so what I wanted to say is that in this case, people were gamifying the system. And actually, I again I take this as a compliment. Like, they really want to join the activities. And so much that they actually figured out how to go around the restrictions to stop them from taking too much of it. It's it's it's really quite interesting

Jacob Luetzow: Mm-hmm.

Allen: what people would do. if they love it so much they'll definitely find a way to to get what they want.

Jacob Luetzow: scammers are very creative. I'll tell you that. Like with Collects, we're a gaming card or you know, a trading card marketplace, and you know, you can sell and buy trading cards, and you you'll have your like onboarding credits and ways to get people to join the platform and the different solutions that people have used to try to like get more credits or rip rip rip us off somehow. It's it's wild. It's like you guys could put this effort towards just being an awesome engineer and like creating something so cool, but you're choosing just to scam startups.

Allen: Yeah, it's it so I'm I've been living in China for the last ten plus years, fifteen years. The stories I've seen about how creative people can be over here to to to like you said, to scam the system. It's like if you actually put that to a product, to an idea, wow, you would be probably in a much better position than than where you are right now. You know, you're

Jacob Luetzow: Mm-hmm.

Allen: scamming for such a small gain. When you could scan well, not scam, but when you can put that towards something so much better, you'd be it'd be insane.

Jacob Luetzow: Yeah. Yeah. You could just yeah, honest days work, build a really cool product or solution to to to stop what you're doing currently and you you'd probably be super

Francesco Cesarini: The first

Jacob Luetzow: successful.

Francesco Cesarini: Airline users, one of the first airline users was set up as a telecom company and he had no customers, but realized that it would cost him half a cent to set up an outbound voIP call, but the connection charge he would receive from the other operator was one one cent.

Jacob Luetzow: Mm.

Francesco Cesarini: So he would just be setting up calls, hanging up, setting up calls, hanging up, you know, and every time he'd he'd be making half a cent. And you know that was the first one of the first Erlang users in North America. You know, I won't say if it was the US or Canada, and and

Jacob Luetzow: A scammer. That's funny.

Francesco Cesarini: their use of Erlang, you know, and and and concurrency at scale. you know, every call half a cent, half a cent, half a cent. Yeah.

Jacob Luetzow: Sounds like a very profitable product.

Francesco Cesarini: Well, put it to use, exactly, put it to use.

Allen: this is a tangent, right? 'Cause Francesco, I know you love your tangent. So do I, but I would like for you to tell the my favorite story from you about the the the telecom company that needed to do a major upgrade. Do you know what I'm talking about? I don't wanna say too much, but I think you know what mean. Do you mind to tell this one? Sorry, it's his tangent, but it's a really great story. I I I always love to hear the story.

Francesco Cesarini: Yes, I do, yes. Yeah, yeah. It's it's i i

Jacob Luetzow: N I'm all h I'm all for

Francesco Cesarini: it's it's

Jacob Luetzow: it.

Francesco Cesarini: it's a huge tangent and this is what happens when we go off script. yeah, when we go off script and yeah and and don't stick to our outline but yeah, I think this is what this is what Alex Your Mentor is all about,

Allen: But this is like a Jason Bourne story with how you guys solved it if I remember correctly.

Francesco Cesarini: I guess. Okay, yeah. So exactly. Yeah, yeah.

Jacob Luetzow: Exactly. Tangents. Bring it on.

Francesco Cesarini: Y you're you're forgiven, Alan, yeah. So no, there was a switch, an XD three one switch. So it was an ATM switch and it connected it to the XD three to the AXE switches. So it was a sw ATM switch which was switching all of the international trunks for a big, big city in a country far, far away. you know, that's all we were allowed to say about it. And This switch had been running nonstop for three years. And it had never had to be it was never rebooted, it was never there was never an outage, you know, it was one hundred percent availability for three years. And with the XC for one switch there was a new release coming out about once a year. And you know, you know, get about to get into the fourth year. they called the company said, sorry, we won't be supporting the version of the software which is running. And so we need to do an upgrade. And so we'll upgrade you to the latest version of the software, you know. it's and you know, but as you know, they used to do live upgrades with the XD301 switch, but this was free versions. So, it really didn't make sense to do do whenever something goes wrong it's because you do an upgrade. And so doing three live upgrades versus doing one upgrade to the latest version with a little downtime, there'd been no downtime in years, everyone thought it was acceptable. And and it wasn't even downtime because they would have just re reduced Yeah, th th there was a a a a an active standby pair. So they went in and you know wrote some scripts, upgraded the latest version of you know upgrade to the latest version of the software. And which required a reboot of that node. And usually when you reboot, the standby becomes the active node and starts taking care of all the phone calls. And that's exactly what happened. You know, the standby became active, kept on switching the calls. But the the the the backup, the the the primary wouldn't restart. They tried to connect to it, they couldn't even connect to it on a screen. It was just the the computer had the switch had just died. in panic the upgrade the the the backup the standby which had become active and exactly the same problem there it wouldn't restart everything had literally ground to a halt and th they they you know kept on working you know they you know after five six days of trying to figure out you know what the issues were one of my colleagues flew into this country far, far away, hiding two boards, you know, two to t two of these b you know, switches in his raincoat because, you know, they couldn't FedEx it because it would get stuck in customs. So he basically smuggled them in, you know into the country. Yeah, he smuggled,

Jacob Luetzow: Smuggled switches.

Francesco Cesarini: you know, X D three one, yeah, boards and then went in, you know, unscrewed everything, you know, put in the new boards, press go, and everything worked. everything booted and yeah. And ever you know, this outage had lasted one week. You know, this is a multimillion. This was about

Jacob Luetzow: And what kind of coverage are we talking about? how many people were affected?

Francesco Cesarini: About six, seven million inhabitants, with a particular telco operator who couldn't make international calls. you know, it it was pretty embarrassing. The CEO of this big big telco in this big big country far far away was calling Ericsson CTO, CEO. You know, that that was the level of communication, and how embarrassing this outage was. And when they went in and started doing the post-mortem and they realized these were old mechanical discs on you know running Solaris and the boot sector yeah at the time was on the external si edges of of these mechanical disks. You know these were hermetically sealed disks. But in three years, the head would be moving back and forth, back and forth. It had never touched the edges. So despite them being hermetically sealed, this very, very thin layer of dust had collected on the edges. And so when they went in to reboot it, you know, that yeah, that that that you know that fatal day the the the head had basically gone in and hit this thin layer of dust and got stuck.

Jacob Luetzow: Dang.

Francesco Cesarini: So, immediately, from that day on, you know, when when it still had mechanical discs, you know, the heads, you know, at at midnight all the switches started doing you know you know hard drive gymnastics with the head sweeping, you know, the all all of the dust evenly across the whole hard disk. So this problem would never occur ever again. But but it i it i it comes as a reminder

Jacob Luetzow: That's wild. I'm actually surprised that could be an issue.

Francesco Cesarini: that, you know, it it's yeah, you have software which never fails. It you know, run your system for three years managing, yeah, a lot of traffic. And yeah, you know you you need to make sure that you you're always prepared for the you don't know what those issues are gonna be until you actually until they actually happen. And

Jacob Luetzow: And then some dust takes you out.

Francesco Cesarini: it's not exactly dust in a hermetically sealed, hard drive, takes you off and where there shouldn't be any dust. And yeah, it comes as a reminder, you know, always plan for the you know, plan for no single points of failure.

Jacob Luetzow: Yeah.

Francesco Cesarini: and

Jacob Luetzow: Mm-hmm.

Allen: So basically what you're saying is that you need to have 99s because if you have a hundred percent uptime, you're gonna have basically have to pay the toll later on.

Francesco Cesarini: Well, i if y if your support engineers don't have any firefighting or any troubleshooting to do, you know, to learn how the system behaves, go in, reconfigure, tune, fine tune, optimize. I mean when shit hits the fan, they've got no idea where to go look. And because they've not been trained. You know, they're just expecting the system to work. So, I think firefighting is part of is is is is part of the game. That's a huge problem we had. you know, I worked for the support team, you know, was there, you know, when I started Erlang Solutions at T Mobile in the UK, and what happened most of the time is first line called directly third line support because you know, when things went wrong, they were were seriously wrong, you know, just completely skipping second line.

Allen: that it'd be, if if the primary fails, don't do the same thing with the secondary, right? You'd figure that this would happen, but I think I've done that before, to be honest. I think I've done but

Jacob Luetzow: Yeah, you shouldn't have done the update on both, huh? Solve the problem first. At least they had the backup. They just did the same thing to their backup. It's actually crazy. The same failure happened to the backup. It was the like a dust issue for both. Or no. Was it like this was it the same issue on the backup?

Francesco Cesarini: Sorry, I d I I I didn't understand that. Yep. The the the back yeah ex it was the the backup hadn't been rebooted for three years either. And

Jacob Luetzow: I see.

Francesco Cesarini: and so again the dust had settled on on the boot sectors because the head

Jacob Luetzow: That's wild. Yeah.

Francesco Cesarini: hadn't physically, you know, been over the external

Jacob Luetzow: Yeah.

Francesco Cesarini: sectors of this hard drive. yeah.

Jacob Luetzow: That's a good story. I like that. That You never think about those things, do you? Especially n

Francesco Cesarini: Yeah, yeah. Yeah. But I

Jacob Luetzow: I don't think about things like that 'cause, I use digital ocean. I use their boxes and it's their problem, hopefully, right?

Francesco Cesarini: Exactly, but how often do you use a digital ho you know, I mean we used to have

Allen: Until until they perform the same bad update on your machine and then on your backup machine, then you'll be like, What the heck?

Jacob Luetzow: Right. damn it.

Francesco Cesarini: that with Azure where you they'd you know kill your instances off without warning you and the back in the early days, and and even with AWS you'd lose you know, you'd lose instances every now and then, you know, it's not wasn't guaranteed or certain. And and so yeah, always design ensuring that even if you do lose an instance or two, you can still serve. Yeah. the way I design systems is you know, if you lose a whole you know a whole data center, you can still yeah, you can still still manage.

Jacob Luetzow: Yeah, that's been in the back of my mind because like right now Kin switch is just you know one one box and I don't need another one for like traffic reasons or performance, but I was thinking just to have the the nine nines that you're talking about, Alan, just like so it's easier to do updates and things on my Ubuntu boxes and keep things secure. You don't wanna have to take the downtime. And if a data center goes down, at least you still have one hope well, hopefully in another data center.

Allen: Just just don't choose Azure, I think, with what happened recently. we were just talking about that one. I'm not so sure if you looked

Jacob Luetzow: Yeah.

Allen: at that, but I guess it was a bad update several months ago that creeped up is what I've been hearing.

Jacob Luetzow: interesting. No, do you guys want to talk about a little bit? I don't know if I I know the details.

Allen: it's not really a big I think you heard already that basically all Microsoft services, nearly all of them went offline.

Jacob Luetzow: Yeah. Yep.

Allen: it was what what I saw recently is maybe Francesca probably knows more than me, but my understanding is that there was a bad update a long time ago. suddenly there was a switch that was changed or something, which caused a lot of nodes to be unreachable. And those are being rebooted. And somehow those nodes were being marked as like unreachable or something or or unavailable, sorry. And it just it was just a cascading of of machines being marked as un as unavailable, meaning like they couldn't handle the traffic.

Jacob Luetzow: Hmm.

Allen: yeah, because you know you know when when you turn on a server and a lot and you let the traffic hit it right away and it's not ready yet. Like it like when you start your beam app. Yeah. You need to give it time to to to actually

Francesco Cesarini: It's a cascading failure problem, yeah.

Jacob Luetzow: Yeah.

Allen: catch up, right? To load up all the modules.

Francesco Cesarini: Skype had exactly the same problem, when they had an outage. You know, you had, you know, tens of millions of users and they were restarting the machines, but they couldn't restart them fast enough because you know, you know, tens of thousands. Yeah, I was I was gonna say millions, but Skype never rewrote everything in Erlang. I think they went down the C route just so you know, that they had, you know, thousands of users hitting a machine and you know and so the machine went down and so they go in and start hitting other machines which were coming up. And so They had to first block all of the traffic and then slowly get all the machines up and then slowly start letting it in again. I mean Skype had, you know, sorry, WhatsApp had has had similar issues where they had up to you know they could have up to three million users on single machine. They lost that machine, did have three million users hitting the other machines. And so you know that's after one point at one point decided to go in and reduce you know you know the number of users on a particular machine you know to about half a million and not have as powerful machines and instead you know ex expand you know horizontally to avoid exactly this type of problem. It's yeah no prob

Jacob Luetzow: So it wasn't vibe coding. Or maybe.

Francesco Cesarini: probably not probably not but

Jacob Luetzow: Yeah.

Francesco Cesarini: it's probably a lack of of of of stress testing and

Jacob Luetzow: Yeah. Yeah. Which I think is easy to do, especially at that scale. when that hap I would be terrified. I don't want to be the one in charge. When I'm curious, How when you start having cascading failures like that, wha what can you even what do you do? Do you have to shut ever how do you stop it from happening as you're like rebooting? Yeah.

Francesco Cesarini: You you you need to stop the traffic basically hitting your servers so it becomes a networking, you know, firewall problem and then you bring up your servers and then you start letting your traffic in slowly. You know, so so you

Jacob Luetzow: Okay, I see.

Francesco Cesarini: start allowing connectivity a at a much, much slower rate. But you need to have the infrastructure in place to do that.

Jacob Luetzow: Yeah. Yeah, crazy.

Francesco Cesarini: that's probably what they didn't and that's why it took so long, you know, to so I'm sure they figured out what was going on fairly quickly, but mitigating

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: that and having you know and and addressing it. I mean it took Skype Skype a week, you know, back in the days. you know the you know there've been no ma I mean there've been WhatsApp outages but they've not been that major. So you know they probably had that infrastructure in place and they knew about it because I mean they're all about stress testing. back in the early days

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: and and proving that a single s you know a single server could handle millions of users. So and I suspect yeah i it's you know Microsoft had the same issues and they didn't they had contingency plans in place I'm sure but you know

Jacob Luetzow: Yeah.

Francesco Cesarini: they all went out the window when yeah when when this happened.

Jacob Luetzow: Well and these are things you

Allen: I'm a bit confused. Sorry, I was just gonna say, I'm I you like that was my thought too. It's like just shut down the gateway. you can't, I'd rather have everything off rather than just a tiny fraction of stuff working and nothing else working when if you shut off the gateway so nothing can hit your servers, and then like that's why I didn't under quite understand why they didn't do that, but I guess it was probably more than that, rather than if that was the only issue. You know, like you said, give them time to breathe and catch up. Francesco.

Jacob Luetzow: Yeah. And these are just problems that happen at scale that are hard to learn too.

Francesco Cesarini: It's i it's it's load regulation and back pressure.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: th those are the things. But you do those on inside within the nodes themselves. And and this goes back to you know, we used to always stress test our systems in the airline space. You don't do that really in the Elixir space. but where do you start?

Jacob Luetzow: Maybe we need to start. We need a we need to

Francesco Cesarini: Well i it's Yeah, start directing yeah, the the way to do it is start directing A load tools.

Jacob Luetzow: Yeah.

Francesco Cesarini: The only way to to load test by the way the beam is using the beam, by the way. Else, yeah, you end up with yeah. Yeah, if you look at yeah, you end up if you're using you know Python or Java or something else, you know, you you need you know five instances on AWS to to to stress test a single instance of of of the beam. And you do that, you then see you know you start increasing the loan and see and figure out what you know where it breaks and what causes the break. And you try to

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: optimize and when you can't optimize it anymore, you need to start rejecting requests coming in on you know on on on in the endpoints themselves, saying sorry, you know, it it's basically the the Twitter fail whale for those who r who remember it. You know from twenty years ago when you know it was all written in Ruby and there were too many users, you'd get a whale back. And and that's what a reliable system does. It will respond even in the presence of failure. And in this particular case,

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: you know, you got a picture of a whale, the fail whale, telling you, hey, you know, sorry, there's too many people trying to access Twitter right now. you know, try again in a second and versus not responding at all, you know, or crashing.

Jacob Luetzow: Right. Better than a five hundred, right?

Francesco Cesarini: Exactly, exactly, exactly. And that's what a r yeah.

Allen: Francesco, I we you mentioned the fail whale. I I feel like one of those older people now that you mention it's because nobody past born past two thousand ha will ever know what is a fail whale.

Francesco Cesarini: Yes. Thank you. Thank you. I appreciate that. Yeah, for you youngsters out there you can

Jacob Luetzow: I didn't use Twitter back then.

Francesco Cesarini: you you can ask chat GPT, yeah.

Allen: Yeah. I

Jacob Luetzow: Yeah.

Allen: I do enjoy those YouTube videos where they give them a a cassette tape and play this and they're like, Well how does this what do I do? Yeah. there we go.

Jacob Luetzow: Or a rotary phone, ask to dial. That one's hilarious.

Francesco Cesarini: we've got a rotary phone from the nineteen twenties at home. And

Jacob Luetzow: That's awesome. Very cool.

Allen: Those are torture. To be honest.

Francesco Cesarini: you know w we don't have a phone line anymore, but when we did, you know, the kids learned to use it. So it's just like

Jacob Luetzow: Yeah. I remember w my grandma had had one of those and I would play on it all the time.

Francesco Cesarini: Yeah. Ours is actually wood, a wood phone, still made of wood, yeah yeah, yeah. With you know with you know separate kind of head and yeah

Jacob Luetzow: That's cool. Yeah, that's very cool.

Francesco Cesarini: so

Jacob Luetzow: Man,

Francesco Cesarini: yeah.

Jacob Luetzow: just imagine even being tethered still to your phone. Could you imagine? Just like the long accordion cable.

Francesco Cesarini: So I live in a very old building in Rome which you usually get cut up, sliced and diced, and we have you know the the person on the last floor, you know, came in for Christmas once, you know, for drinks and looked at our closet. this is where, you know, the family who lived here in in the late forties and early fifties, in the fifties, had their phone, you know, and it was all velvet red inside and they had a phone. They actually had a phone in Rome, you know, we were so amazed by it. And yeah, not today it's a cupboard, you know, but back then it was the phone room.

Jacob Luetzow: Yeah, that's awesome. That's funny. And even payphones, those aren't a thing anymore. I I remember just a couple of days ago, I saw an old payphone box but no phone in it anymore. And I was like, wild. I bet kids don't know what payphones are anymore. Sometimes I wanna I wish we could go back, step away, go in reverse a little bit with technology. It'd be nice to not have a smartphone. But then it's also nice to have a smartphone because I can get so much work done from my pocket, but it's that balancing act. I'm curious, either Alan or Francesco, what does your day in day like how are do you are you leveraging LLMs completely in writing code these days? Or are you still handwriting things and like where where do you guys sit on your adoption?

Allen: I for me I'm mostly just directing it, right? So I treat it as a tool.

Jacob Luetzow: Yeah.

Allen: I still will like you, I still read it because I do sometimes find some interesting things in there. But like even

Jacob Luetzow: I'm not I don't trust it enough to not read it.

Allen: Yeah, but but like now it's like moving a button, I'm like I'm too lazy to to to do that nowadays. You know, I just click on like I'm using tide wave, I just click on highlight the button, tell it I want to move it to over here, highlight that part. I mean it's I feel like it's better this way because, I as an engineer, right, I should be focusing on solving the problems, right? Writing the code is kinda my my dad does a upholstery, right? So we have all these tools, right? Now should he be using a staple gun, which is what he usually uses, or should he actually be hammering in the staple himself? I look at it as like the staple gun. Do I really need to actually

Jacob Luetzow: I agree.

Allen: do that kind of stuff anymore? Not really. It it's better if the L L can Do that minute stuff for me while I'm focusing on

Jacob Luetzow: Mm-hmm.

Allen: the bigger picture, making sure that we're actually doing what we need to do. but at the same time, I

Jacob Luetzow: Yeah.

Allen: mean, I had it make a product for me recently. It skipped a lot of stuff, right? Like it as if I built it by by scratch, I would have picked up all these things. But there's a lot of small details that it didn't pick up. So I had to be the tester.

Jacob Luetzow: Mm-hmm.

Allen: So I'm actually back to being now the test, the QA role, walking through

Jacob Luetzow: Yeah.

Allen: the site, clicking, saying, This is not right, this is not right, this is wrong. Move this button over here, like it it's it's quite annoying. but yeah, it to me again, so going back to it, it's it's a tool that I think is something that you have to have in your belt nowadays. But that doesn't mean that you're done being an engineer.

Jacob Luetzow: I agree. I'm I'm right there.

Francesco Cesarini: one hundred percent yeah behind Alan, you know, I I always go in and design architect the systems and tell it where, you know, to put in an ETS table. You know, I design the whole process structure. So, you know, I don't trust it to to go in and do that. So I'll architect the system. And then, I'll let it build the small components one by one, testing them,

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: having proper APIs in place and proper abstraction layers in place. Then I start putting together pieces. So, it's very much the same bottom-up approach. I've always taken in the airline space, but you know, I don't write the code.

Jacob Luetzow: Yeah.

Francesco Cesarini: I'll often review it, but you know, I wouldn't go in and write it.

Jacob Luetzow: Yeah, I think we're we're all on the same page there with how we leverage it. I'm curious, like we've talked a lot about like infrastructure and scaling issues, at least like with Francisco, with your experience. How close are we to not needing that skill, do you think? Like spin like using LLMs to spin up, you know, a distributed system.

Francesco Cesarini: think we've got the frameworks in place and infrastructure in place

Jacob Luetzow: Yeah.

Francesco Cesarini: for that. We have it for a single node. I

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: tried for a long time at Erlang Solutions to start putting distribution into OTP so that you abstract away from where you you actually go in and execute from where your gen server runs. So behind

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: the scenes replicating data, replicating your gen server state with with various consistency models. And when we have that infrastructure in place, I think then we'll be ready

Jacob Luetzow: Okay.

Francesco Cesarini: you know to to to to to automatically have the scale and and and managing it. I think there's there's this really good talk I gave with Veronica Lopez called The Future of Programming. It was the keynote at the Reactive Summit. You know, we gave it remotely during the pandemic. So you know go

Jacob Luetzow: Okay.

Francesco Cesarini: look it up. You know, there I think we describe the infrastructure we're looking for. We we had a similar episode we had an episode along those lines as well. with Maxime Karashenko who worked on running airline in the Zen hypervisor with the Ling VM and you know with Stu Bailey you know the CTO the former CTO and founder of Infoblox he We we we we actually went in and had you we could spin off Erlang nodes in milliseconds and all of the network connectivity between these nodes were handled automatically, as was all of the orchestration. So, you know, we could spin off instances you know close to the data so as you know, we'd bring the compute to the data instead of moving the data to the compute. And it's a programming model I think we'll be seeing, coming up very, very soon. But we basically had our own Kubernetes and we had our own Dockers and we had all of our networking, but it was all invisible from the programmer and it was all automated. When we've got that level of infrastructure, you know, similar to what we built with Maxime, this was ten years ago, then we'll be ready. Right now, I don't think we're there yet.

Jacob Luetzow: Yeah, that'll be I feel like that'll be that's crazy. if that can all be almost automated and just discussed over an agent and just being able to spawn your infrastructure and do it well. I don't know. Times will I don't know. I'm always like I think we're in a really cool era, right? I feel like we have a lot of power and a lot of leverage to take our skill set and build really cool things. And then it's like, well, how much longer am I gonna have just a software job?

Francesco Cesarini: It's

Jacob Luetzow: Yeah.

Francesco Cesarini: not a software job, it's an architect job, you know, and I think I

Jacob Luetzow: Now it is, yeah.

Francesco Cesarini: I think the analogy Eric Mayer gave not that long ago was that from now, we we used to be cooks cooking the meal.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: Now we've become tasters and we go in and we taste, you know, what is being cooked and, you know, send it back if it's not good enough. You know, and well he he said the big problem is now that you know we've got a lot of you're really hungry kids in front of an all you can eat buffet and that needs to be controlled in some shape or form. but I yeah, I think that was a pretty good analogy. So and know if what's being produced is good or not, what's being cooked is good or good or not. And it's very, very hard if you've not, you know, a eaten, you know, and and Eric Mayer, you know, loves his Michelin start restaurant. So it it's very, very hard, you know, to to to judge, you know, what what you're being served if you don't have that level of experience.

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: That that's that that's my you know that that's my you know challenge and my fear. Yeah.

Jacob Luetzow: Yeah, no, I think that's a good perspective. And I think like this is a good time to start to wrap things up. And I'd be curious how do you guys usually wrap up beam there done that? And why don't we why don't we do it that way?

Allen: Well, how I usually wrap it up is I just point to Francesco and say, take it away. That's how I usually wrap it up with. Francesco has his spiel, he's got his I well, I'll let you explain your formula.

Francesco Cesarini: yeah but that that's a conclusion, but b be before we do that, you know, we we ask every listener, you know, one thing they should remember, you know, from the show. And that's usually Alan's job. so you know, Jacob, what's the one thing you know our audience should remember, you know, from today?

Jacob Luetzow: review your code. And don't don't forget, like you're still an engineer, even if you're not writing code. I think it's an important takeaway. And always be prepared for failures because like Francesco, like your little story about some dust on a disc. Now I mean, now we have mostly solid state drives, but We still have disks spinning in data centers, I'm sure, because they're they're faster. Or maybe not faster, but they have a longer lifespan still, I think. Or I don't know. Maybe I'm just talking out of my ass, but I feel like they're still like more resilient, hardware spinning disks, or am I wrong?

Allen: Yeah, I was also gonna say that's what

Jacob Luetzow: But

Francesco Cesarini: Yeah.

Allen: I picked up from this episode is remember to reboot your computer every once in a while.

Jacob Luetzow: Reboot.

Allen: To be honest, it still helps.

Francesco Cesarini: Yes, shut it down.

Allen: I think Joe's was it Armstrong that said, I I now I lost my train of thought because it's kinda late over here, but yeah I I th I think I think what he was saying is something like, you know, there's your computer's got so many different bits, right? So the possibilities of what could go wrong is just enormous. so really like once in a while I find rebooting my machine. Even though I'm running a Mac, you I'm running a Unix machine, it helps. that there's just some random stuff that happens. Yeah.

Jacob Luetzow: I reboot every time before a live stream, otherwise little things just like break and don't work.

Allen: Yeah. Yeah, for sure.

Francesco Cesarini: Shut off everything I've got running before live stream. But you what Joe also said, Alan, is you always need two computers because one might get struck by lightning. And and yeah, and that was Joe's. And then yeah, we came up with well, you know, you need at least three computers if you start asking Leslie Lamport, you because you need three, you know, to be able to run Paxos on it. So yeah, it it it's so depending on who you ask, it's either two or three.

Jacob Luetzow: Isn't it like the NASA solution always three?

Francesco Cesarini: Yes, exactly. So and

Jacob Luetzow: Yeah. All right.

Francesco Cesarini: then what when we continue then Alan takes you know talks a little bit about the back catalog. You know, so Alan, you know, what episodes are connected to this episode, which you know listeners should go in back and listen to.

Allen: Be honest, wow, we we actually talked about quite a few, right? So I think the episode angle, the episode with Peter, the episode the same that's the same one with Jonathan. Those are all great episodes in terms of talking about LLMs and you know, security and vulnerabilities and things like that. you've also mentioned the episode with Happy, the guy who wrote the beam book, right? That's also pretty good episode. Yeah. W Everybody has the book, but nobody's read it.

Jacob Luetzow: I have that book. I'm a horrible I have not read it. It's

Allen: I think everybody has a cop copy of that book, but nobody's read it yet that I'm aware of.

Francesco Cesarini: I've got two actually. I I've got

Jacob Luetzow: Here, let me grab it off my bookshelf.

Francesco Cesarini: two copies of it, Jacob, do you have the first edition or the second edition? Because I wrote the foreword in the second edition.

Jacob Luetzow: I have the first edition, I believe.

Francesco Cesarini: Okay. And and that was cut short because of conference driven development. yeah,

Jacob Luetzow: Okay.

Francesco Cesarini: we we yeah we we says I'm gonna release it you know in time for the you know Code Beam Stockholm and and then we moved Code Beam Stockholm from September to June. I think I was the one who did it, who to who made you know called made made that call. Stockholm's much nicer in June than September. And all of a sudden it's just okay, well a day deadline's a deadline, I'm releasing. And so he released

Jacob Luetzow: Yeah.

Francesco Cesarini: and that's why the second edition came up later. and yeah. So so that's that. No,

Jacob Luetzow: So what you're saying is I have to buy the second edition and then hopefully I'll read that one.

Francesco Cesarini: no no no no read the first one first. But the second one you got my forward, but yeah, i in it. Yeah, that's the

Jacob Luetzow: Nice.

Francesco Cesarini: big yeah, and and a few more chapters, you know, the JIT compile and other stuff, odds and ends, but yeah, yeah. So yeah, and then yeah.

Jacob Luetzow: Where sorry, go ahead. I was gonna say for my listeners, where can they find you guys? If they don't already follow you. Beam there done that. is that what what's your website?

Allen: Yeah, beamtherdone that dot com. we also have the was it I don't remember what is the name of Twitter, but BeamThere DT or something. I have

Francesco Cesarini: Yeah.

Allen: to look it up.

Francesco Cesarini: yeah you can find us on yeah X or Twitter or or the platform formerly called what we could call this Twitter, Francesco C. I think I post on LinkedIn as well. So follow me on LinkedIn, Francesco. And yeah, we post all the new episodes there as as well as our thoughts on them. And yeah and and then the the the podcast is good for you good for you

Jacob Luetzow: Pauly has read the book and I'm proud of him for saying that. Yes.

Allen: I I have my doubts. There can't just be one person out of the out of the tens of the tens of people

Francesco Cesarini: it's

Allen: I've asked that's read this book. I I don't know. It's possible.

Francesco Cesarini: E Eric's an academic. It's it's like my book. It's four hundred plus pages, almost five hundred pages. So yeah, kudos to you. maybe when w when you

Allen: Cover to cover, that's a lot.

Francesco Cesarini: can't fall asleep at night, yeah. So

Jacob Luetzow: Ha ha ha.

Francesco Cesarini: yeah, and then yeah, so once we've talked about the back catalogue, you know, the way we wrap up is I say a few words about you know what we've discussed today and Yeah, and and first and foremost, it's basically, look at two audiences. You know, you've got Jacob, you've got your developers, you know, job seekers, you know, you've got founders, and you know, from our end, you know and I I would almost you know, what I love about your episode, Jacob, is basically the the fact that it's you know, the type of conversations you have are you know the conversation juniors really benefit from listening to when you're they're in the office. next to two seniors discussing, arguing, debating over different approaches and solutions. And the junior

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: is just there and listens in, and that's helps them grow and understand, you know, the the problem you know beyond the the the the the the the area that they're they're actually involved in. And and and so yeah I'd almost argue, you know, I think your your your podcast is brilliant for juniors and people getting into Elixir. to understand what's out there in in the in the brightest broader spectrum, From our side, our audiences are you know aiming for you know more senior engineers, decision makers, you know, and those looking at adopting the beam. You know,

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: and I'm I try to fill in a gap, which I believe you know was there. You know, I'm passionate about distributed systems, I'm passionate about solving hard problems and complex problems and solutions. So, that's a lot of what you know the questions I'd ask were come from. and you know the second thing I think we looked at is, you know, apart from high level things when it comes to the two shows are the differences in our approaches to the show. you when you had Peter Ulrich on with the assisted C V E Hunt you you went in and looked at his approach and you know what he found. we took in the person on on on the other side, you know, who who, you know, on the same show, you know, in the coordination with Jonathan and his his role, you know, which he plays with Erling Ecosystem Foundations. we raised the urgent need for funding from the EEF and and the funding

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: side of things. so even the business side and I think that's probably my background, having, run a company and scaled it to to to to to to to the size, at we were at at at at our peak. And You know, and then you know, what we did not discuss, but I would which what I would love to discuss and maybe that's for next is where both shows are heading, you know. But you know, and I think that's maybe one, you know, to do in six months time. you know, where where

Jacob Luetzow: That'll be fun. Yeah.

Francesco Cesarini: yeah, where are we heading? How do we help developers get hired? And how are we working together, you know, to connect the airline Elixir Gleam and Atom VM and Beam communities helping Mold grow and and I think you know very much this has to be a team effort and it's nothing yeah, it's not one of you know something you know we can do alone. So this is where,

Jacob Luetzow: Mm-hmm.

Francesco Cesarini: you know, when we reached out, I was really, really glad you Yeah, let's do an episode together because I think it it's something yeah, it's something

Jacob Luetzow: I I'm all about it. I rarely like people people doing cool things in our space, I they're always welcome on my show and

Francesco Cesarini: Exactly. And it and it's teamwork. It's something we need to do together. It's not something you know we can do in our own little siluses. So yeah.

Jacob Luetzow: I don't think because you guys have a podcast and I have a podcast that we're competitors, even if because we like you just pointed out, we had the same guests on and we had we covered very different topics. So I think that's just like it's so cool to see the different approaches and the information you can get out of people in just different formats.

Francesco Cesarini: absolutely, and a listener, know, i different approaches, different formats, but different levels. And you know, someone who listens to your podcast would get just as much listening to ours, someone who listened to ours would get just as much listening to yours. Completely agree with you. So yeah. And you know, if you enjoy this crossover, you recommend you subscribe to both the Bean that done that and the Lexors, you know, wherever listen to your podcast. And please review us both, review both podcasts. as it helps others find us.

Jacob Luetzow: With five stars.

Francesco Cesarini: Yeah, five stars, yes. And if you don't like the five stars, reach out to us and tell us why not and you know so we can fix it. And yeah, and the way I always wrap up is and I picked this up for another podcast I listen to, which has nothing to do with tech, is, you know, this episode was recorded on November twentieth, twenty twenty six. And this is just there for the history, because we try to create podcasts. Which are not timed, you know, which someone can go back and listen to a year or two from now and still get a lot from it. Yeah. It was. I loved it. I loved it. I loved it. Yeah. Yeah.

Jacob Luetzow: Mm-hmm. Awesome. This was a lot of fun, guys. I didn't really know how this would go, but I think it went great. And it was it was awesome to meet you both. And hopefully we'll run into each other in real life at a conference. And if not, you guys reach out anytime if you want to do this again. It was a lot of fun. And for everyone listening, thank you for joining and staying active in the chat. And I hope you guys have a good weekend and I'll see you. I I'm not doing one next week because it's Thanksgiving here, but I'm doing one the following week with Parker and Shannon from Oban. So they're always fun guests.

Francesco Cesarini: Jacob, thank you for getting up early for us and Alan, thank you for staying up late. it's we've got

Jacob Luetzow: Yes, I appreciate it.

Francesco Cesarini: I I'm the lucky one in the middle, you know, so it's yeah, it's only five PM here, but it's yeah, late for Alan in Hong Kong. It's

Jacob Luetzow: I will say you guys you guys threw a good curveball at me with your dramatically different time zones, but I'm glad it it worked out.

Francesco Cesarini: it's logistics the listener never sees.

Allen: Yeah, this has been the trickiest one, I think, actually, to be honest, because you're all the mountain time is a little bit trickier.

Jacob Luetzow: Yeah, it is. It worked out. I was a little concerned with the the live stream and people tuning in, but we we have a we had a decent crowd. I think we hit like twelve or fifteen at one point. So that's pretty good. Yeah. All right, guys. Thank you so much.

Francesco Cesarini: All right. Listen, have a great weekend. Thanks both.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Jason Cohen on Hidden Multipliers

    Nov 13, 20261 hr 53 minAudio

    Jason Cohen, founder of WP Engine and Smart Bear, joins Jacob to talk about his new book Hidden Multipliers. They dig into why engineers avoid marketing, the onboarding math behind SaaS trials, finding your ideal...

    Credit the people on this episode

  2. Filipe Cabaço on Vitro

    Nov 6, 20261 hr 46 minAudio

    Filipe Cabaço, team lead on Realtime at Supabase, returns after two years to talk about his side projects: Vitro, a browser for every AI agent with a replayable timeline of what each one did, and Ampoule, which packs an...

    Credit the people on this episode

  3. Peter Ullrich on Pushin

    Oct 31, 20261 hr 56 minAudio

    Peter Ullrich returns to talk about Pushin.eu, the European GitHub alternative he's building in Elixir. Five months in, it has about 700 confirmed registrations after going viral on Hacker News, and Peter walks through...

    Credit the people on this episode

  4. Nathan Hessler on ExMex and Conferences

    Oct 16, 20261 hr 31 minAudio

    Nathan Hessler, organizer of ExMex and RBQ Conf, is back four weeks out from ExMex 2026 in Austin. We cover MCing Rails World, how he picks speakers and keynotes for a single track, what running a Ruby conference taught...

    Credit the people on this episode

  5. Alex Koutmos on Nerves and Finance

    Oct 10, 20261 hr 38 minAudio

    Alex Koutmos, CTO of EagleMMS and author of Elixir Patterns, is back with two books in beta: Programming Nerves, which gets web developers building hardware from Livebook, and Elixir For Finance, written with his...

    Credit the people on this episode