In this episode of the Elixir Mentor Podcast, we welcome back Peter Ullrich and Alex Koutmos to discuss their new venture, EZSuite. With over 20 years of combined software engineering experience, they're tackling the challenge of automating away essential but time-consuming aspects of Elixir development. We explore their first product, Phx2Ban, a sophisticated Fail2Ban alternative for Phoenix applications that helps developers implement robust bot protection with minimal setup. Peter, known for his contributions to the Elixir community through his blog and conference talks, and Alex, creator of numerous Elixir libraries and host of the BeamRadio podcast, share their vision for making Elixir development more efficient. The conversation covers technical decisions behind EZSuite's products, the challenges of transitioning from open-source to commercial development, and their commitment to maintaining high-quality developer tools. Whether you're running production Phoenix applications or interested in Elixir's ecosystem growth, this episode offers valuable insights into practical solutions for common development challenges. #ElixirLang #Phoenix #WebSecurity #DevTools #EZSuite EZSuite: https://ezsuite.dev/ Connect with Peter: X: https://x.com/PJUllrich BSky: https://bsky.app/profile/peterullrich.com Website: https://peterullrich.com/ Connect with Alex: X: https://x.com/akoutmos BSky: https://bsky.app/profile/akoutmos.bsky.social Website: https://akoutmos.com/ SUPPORT ELIXIR MENTOR Elixir Mentor: https://elixirmentor.com/ siteBrains: https://sitebrains.io
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.
Testing Secure your Elixir apps with paraxial IO. From code analysis and bot defense to dependency checks, they've got you covered. Elixir first design with GitHub integration. Elevate your security at paraxial dot IO. Hey, what's up? I'm Jacob Blitzo, 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, pioneers in the community, to innovative projects and libraries shaping Elixir's future. Today, I'm excited to welcome back Peter Ulrich and Alex Kotmos to discuss their new venture. And I'm sure a lot of other cool things, but they just built Easy Suite and it looks like it's going to be a collection of some really cool tools for us developers to use. So guys, welcome back and thank you so much for joining me. And for everyone that doesn't
know who you are, could you just maybe give brief introductions of yourselves? Thanks, Jacob. I don't know who Alex Koopmaz is. Alex, who are you? Who has entered the chair? I I don't know you got the the TLDR or the the long 1? I don't know. Whatever you want. So where were you born? Where was I born? I was born in Astoria, NY a long time ago but. Then where did you go to kindergarten?
And then 25 years later I found this language called Elixir after I was born in Astoria, NY. You're pressing over the details to you, Yeah. Yeah, there's some good stories from from child's death. We'll we'll see that for a different podcast. Are you, are you very active in the Elixir community, Alex? I haven't really. I just started. I've been, I've been doing a lot of Next JS recently and I discovered this thing called Elixir and it's kind of, it's kind of blown my mind,
especially this live view thing. So yeah, Alex is really new and he's been really enjoying my introductory basic playlist on YouTube. Yeah, yeah. But that's why. I took him, I took him under my wing. I thought he needs some help, some guidance of an experienced developer, you know, and Alex and I, that's why we started this little company, just, you know, to teach you like how to. Regulate. It's much appreciated. It is much appreciated.
You're welcome. It's tough, but you know I'm here for it. Thank you. Thank you. You're welcome. No, honestly Alex, Alex, you are probably 1. The person with the most Elixir libraries out there. No, I think there's, I think there's definitely some more like, yeah, I don't know. I have AI have a medium amount and they're they're very niche. So they're not like really highly used. So at at least I don't think they're highly. Used Which one is the most
prominent 1. I think Promix is probably the most popular. So that's the Prometheus metrics and Grafana dashboards 1 and I think that one gets like like 7000 downloads a day. That's pretty popular, dude. 5058 hundred. I lied. That's amazing. Yeah, never mind. It's not impressive. Yeah. Yeah, if you could just drop off the chat, you know, that'd be great. Yeah, wait. I, I wish I had a little more control.
I'd like I just, we can just turn off Alex. Yeah, but there are, yeah, a lot of the libraries that I wrote were they were just born from problems that I had building SAS apps and I kept running into the same issues. And yeah, I just wanted to fix them and solve them and never have to worry about them again. So yeah, Pro Max is for for metrics and monitoring. There's unplug for like dynamically unplugging plugs from endpoints, there's doctor
for making sure there's like documentation coverage, dento X, roaming dento stuff, and a whole bunch more. I can't remember them all. Awesome and author. Yes, and book author. Successful SAS company. Yeah, yeah, I've had, I've had a few, a few failures in there too. So there's been a few failed SAS attempts, but. Well, you only brag about the good ones. Yeah, yeah, right. It's like 5 year overnight success.
Awesome. And Peter, how about a quick introduction of yourself? Yeah, right. Well, I am Alex's employee. That's why I'm here. My boss told me to be here. Now we both work on Eagle, which is Alex's startup. But yeah, otherwise I don't know. I I'm not an prolific library author. I rather create problems with my library, so I have a feeling. So instead of solving them, no. Otherwise I mean I also. You're a prolific Blogger.
Though, Oh yeah, I, I think my blog is probably my the one thing that I'm actually contributing with to the Elixir community. The rest is kind of like negative maybe, but just stupid questions, you know? If your stuff is negative, mine, mine definitely is. Anyway, no, I think we're all here on a, on a on the good side, on the, we're all net positives to the community here. But yeah, my blog at peterrick.com, I started that like couple of years, 3-4 years ago. So and I've been more active in the last two year.
And yeah, I just, I don't know, I love, I love writing blog posts because it, it gives me a reason to play around this stuff. You know, usually it's like, why should I set aside 4 hours on a Sunday to look into this new library that came out and how to do X with it? You know, I will never use it in my job. I will never use it in my start project. Well, never. But, you know, highly unlikely. But if you write A blog post about it, anything goes. You can, you know, it's like the company credit card. Just spend it, you know, spend on anything doesn't matter.
But yeah, that's why usually I, I just, you know, read something or hear something or I, I learn about a new library and I'm like, oh, how do I do X with it? So I try to do X with it and then I just write about it. And the writing process. I, you know, keep reading to a minimum. Just kind of, I'll say to you as a reader, I kind of just give you the instructions, right? I don't want to have like, I don't want to tell you how my grandma made this amazing recipe back when I was 13. But I still, you know, have like that. It's stuck in the back of my mind when I tell a tick tell you about active schemas or
something. And I was like, nobody wants to listen to that to, to read that. So anyway, I, you know, I try to to keep the blog post pretty minimal. And yeah, that's my blog. Peter is a big fan of fluff added to blog posts and he likes, you know, 30-40 minute reads. The longer the better. Yes. I love wasting time. I actually love your style because I think we talked about it last time you were on about the power of like micro blogging, right? Where you're just a very niche
topic that you hit on and then you know, when people are randomly looking for that one issue, they find your blog post on it. Yes, that. But yeah, it's just, I think there's so many learnings that we do along the the way, like every day almost. You have a problem and then you, you know, figure it out and the next, the next person will most likely also have that problem. And in the Elixir community, we like the document stuff. So ideally, obviously you would improve the library's documentation or something, but otherwise, if you don't feel,
you know, like making a pull request and all that kind of stuff, you can also just write about it. Like, you know, I love these little blog posts that kind of just explain how to set certain configurations of libraries and usually conflicts that I never heard about, but that I might, you know, need in my project as well. Like Flow key. I, I gave you that example last time. Like in flow key, there is a, an option, like a configuration option to not encode the HTML in your test. So, you know, when you have a name like, Oh, Brian, like oh dash Brian in your test, it
would be like, oh, ampersand 20 something, you know, and and yeah, if you like, try to match that against what you have in the database, you know, which is UTF 88 encoded. Like if we, you will have a match error. And there is a configuration that is somewhere in flow key, but it's not really well documented. Maybe to be honest, I should, you know, create a pull request and finally document it. But hey, there is a blog post about it that just it's like 2 paragraphs that tells you hey there's this option on the flow key. Just enable this and all your raw, your HTML would will not be
encoded like it would be raw kind of you know, and then all your tests magically go green. You won't have flaky tests anymore. Yeah, stuff like that. And yeah, that's these are the block posts I I cherish the most you. Know yeah, you won't add escape characters to your tests just to make them pass, right? I was actually gonna say I didn't even know about that. It's a good thing you mentioned that because every time that's failed in CI am like what's the random seed? I get the random seed, I go back to local. I'm like OK, This is why the test. Failed. Well, I actually never knew
about that either and I would just fudge my my seed data right and then when when Peter was on last time he talked about that and I was like mind blown. So that was helpful. All right, well, why don't we do you guys want to talk about sorry, dog? Do you guys want to talk about easy suite and like what your goals are with it and what is it? Yes, sure.
Yeah. You want to take it away or I'm going to take it away, Peter. No, you take it away. You're much better at selling. Thank you. Thank you. Yeah. So EC Suite was kind of born from, you know, me and Peter having both started, you know, bootstrap the, you know, products and services. It was kind of born from problems that we kept encountering and we couldn't find really good solutions or ones that integrated nicely with with Elixir. So Easy Suite is going to become an umbrella kind of, you know, business slash project.
And we're going to put a whole bunch of cool libraries under there. And we're going to go to the once like once.com kind of Ave. where you pay once and that's it. You use it forever. And we're going to maintain it for a long time because both of us use it in both of our SAS products and services. Yeah. So it's not as if, you know, you buy it and we run a grift for like 2 months and then we ignore this library forever. Yeah, these are things that we use day in and day out and, you know, we're constantly developing. But yeah, the first of the
products that's going to go under Easy Suite and it's already out is Phoenix the Band, which is, I think one of the easiest firewalls I've ever installed in an app. And then you get to avoid the whole configuring your Linux server if you have access to your Linux server because it's like, you know, places like Fly or, you know, like AWS Lambdas and stuff like that. You don't necessarily have access to the raw host. Even if you wanted to set up like some sort of firewall, You have to either buy into the the cloud platforms, you know, tooling that they charge you
extra for, or you don't even have access to it. And you have to do something like cloud flare and then you have redirects. And it's kind of a poor user experience. So putting it at the application level, I think 'cause that's been pretty cool. Yeah, that's nice. I also like the Bringing back buying software licenses model. Cause yeah, yeah. I think everyone is just tired of monthly subscriptions with a lot of stuff they use. Yeah, yeah. And I like, I think something's warrant like a monthly
subscription, right like. Something's for sure, I agree. Yeah, yeah. But I think, yeah, like you said it like it's been beaten to death where it's like every single like micro product is, is a SASS now. And it's like, I don't think so. Like I know there's not a lot of code behind this. I don't think it deserves to be a SASS, maybe just a one time fee. Yeah, I. Do like that. If there's not maintenance and monthly cost behind running your product, it shouldn't be a SAS product. Yeah, Yeah, yeah, yeah. It's I, I do think it's been over. It's been overused as a business
model. So we're we're bringing it back. One time. Fees. You, you, you got it forever. Yeah, like I said, we both use it in our stuff. So we're continuously updating it and maintaining it. So there's another incentive there to to to get it to develop. Yeah. Well, I mean, I think that's the best thing, right? When you're using your own tools, it motivates you and you're testing it every day on your own product line, which is always beneficial. Now for for Phoenix to ban, is it?
I'm guessing it's like it's running at plug level in your router, right? Yeah, it does. But like just behind your static files, so you know, because we, we don't know exactly what kind of files you have in in the static folder. So just beyond the plug static, we add things to them. So if a request comes in, we asynchronously analyze it. So we don't even throttle or we don't slow down the actual request. We kind of just, you know, send a message to Jenserver and in
the background we analyze the request. And when we find for example, that the request is to a route that you don't have, but that is kind of malicious looking like you have a lot of these bots that just try to find the WP admin PHP page to log into your WordPress page, right? And dude, I that's all my server is hit with is the WordPress vulnerability routes. Like, come on, guys. It's just every night, actually, Alex and I, we both had the issue every night at 3-4 AM, these bots would come in. They just try to, you know, fetch the, the login websites
and well, we got the 4/4 errors in sentry because it's a route that does not exist, right? So it's kind of annoying. And then you also don't want to silence that particular error because you might have a four four, you know, like a legit error. So you it's just noise really. And that was actually Alex's initial problem. And then he came to me and said, can't we build something for this? So that was Phoenix 2 bands first feature where we look at these routes that the bots most likely try to access that you don't have in your application. And then after three attempts, we just we just block them, you
know, for a certain period of time on the IP level. So, you know, it's better than nothing. I also, I know it's not super great. They can just change the IPS, but you know, better than nothing. Yeah, that's how it kind of started. But that was just like the MVP, you know, to just get it out there to see whether people actually interested in buying it. And well, we saw that people like to buy it. So like, like we had a quick follow up, which is actually now we pull in the Abuse IPDB database.
So there's an official website called Abuse IP Database. And that's where, you know, people, bigger companies, they all report malicious IPS to that website. So they say, hey, like that's a phishing attack coming in from this particular IP. So they report it to that website and then everybody can kind of synchronize with the IP list they have. And you know, oh, like you know, this IP if I get any requests from them most likely or actually with almost 100% confidentiality, a confidence,
you know that this is a malicious request. So that's what we now do with Phoenix Band. Like when you start it, when you add it to your application, you start your application, we actually host like the abuse IPDB block list and we kind of send it to you in an optimized format. Once an hour, it gets updated. And if your application then sees a request from any of these IPS that is that are 100% malicious with 100% confident confidence, we block them for you, right?
And that's another layer that is on top of the original, you know, kind of checking the routes, the access routes, and blocking based on that. So these are the two main factors here. And you can always manually block IPS as well if you have your own checks. And there's one more feature in the making, which probably will come in the next year, and that is actually the feature that gave the library the name because the original library failed to ban that people most likely know from the Linux
space. Like whenever you host your own web server, you can just add fail to ban to it. And well, it runs on your server itself. So it's not like a Lexi specific. Actually, I think it's written mostly in Python. And what they do is they scrape your logs, they look at your logs and when they see that a user has multiple, like a full 3 or 41, so like unauthorized after three or five attempts, they block that IP. You know, because those might be people that try to like log into your application, you know, like
password staffing, stuffing that just try to they have a username and a password like from a from a leak and they try to just put it into your application. See what that works here as well? Well, most likely they will get four or three. So four once quite often, and after 5 attempts, failed to ban blocks them on the IP level for a certain amount of time. Now, if you install fail to ban, you need to have access to the server that you run on and you need to have access to the web, to the, yeah, web server, you know, like Engine X, so that actually routes your request and
that kind of stuff. You don't have that always, as Alex already mentioned earlier, like on AWS to fly, you don't really have access to the server. It's ephemeral, like temporary. So we moved that into the Phoenix application and that means, you know, in the future when somebody tries to log in to your application, to your Phoenix application and they kind of just, you know, have like 434343, boom, they got blocked, you know, and they, they can't access your, your application anymore as well. Are the the block temps count? Is that a configurable thing or
is it just OK? Nice. Yeah, you can adjust. Yeah, what your thresholds are and, and when, like Phoenix, the band kicks in. And we also have a nice Phoenix live dashboard, so you can keep track of all these attempts coming in. And you can even like, let's say something's blocked by accident, you can go in and like immediately unblock. It very cool. Can can you whitelist and add like routes you might not want blocked and things like that as well? Yeah, both. Both of those are configurable. Cool, you can ignore. You can ignore routes. It's always a good idea with a
stripe Rep hook because of stripe. You might block stripe. I've done that almost in every application I've built by accident. That's a fun one to troubleshoot. Why isn't my web hook hidden? Exactly, exactly. And then people, you know, they said, oh, I just bought it, I didn't get an e-mail, how can I sign in? And then you have to like send the event again and all that kind of stuff. So yeah, we made sure that you can easily ignore routes even by regex. So all the the routes on the webhooks slash something just. Ignore all of those. That's a smart move.
Stuff like that. And yeah, I mean, also we're working on the usability of it a little bit more. So what Alex already mentioned the live dashboard. We have the the plug in for live dashboard. We also want to show a bit more historic data because sometimes, you know, somebody might get blocked, but then they get unblocked later on. And you just want to check like why were they blocked or who was blocked? You know, that kind of stuff. Yeah. And then, well, there are a lot of these, there are a lot of these features on our road map. We don't really know how to prioritize them right right now. So we just kind of do what is
most what seems most important for us. But one thing that I also like is the persistence. And that is something you don't have and and fail to ban, for example. So when you restart your server and with fly, you do that quite a lot. When you scale up, you scale down. You will lose your block list because it's just, it's in the memory. You know, You restart, the server is gone. You know, and Alex and I, we already discussed a couple of ideas here, but ideally, you know, it would be to have a persisted block list somewhere in the database or somewhere else so that if you actually
restart the server, we just fetch it from the database and you have the the same block list again. You could could you almost use just like SQL Lite or something like that? Something really basic. Well, I mean that also goes away when the server restarts, right? Well, couldn't you save it though in a like a static director? Well. You have to depend on like a separate volume or something like that. I think like, I think most people use Postgres like for for production apps.
So we like, we'd probably lean on Postgres as well because then that also gives us the ability to do like we could either do pub sub through through Postgres or we could do you know, like clustered, you know, clustered. Would you just add tables to the existing Postgres database or would you? Yeah, yeah, yeah. Kind of like. Like like Open does right where they like Open provides a bunch of macros. It's like, hey, just run this migration once and you're. Good, yeah. Yeah. So I imagine we'd probably do something like that. But yeah, the persistence would be nice. That seems kind of important.
Otherwise you're losing your block list every time, right? Yeah, well then it also enables us to like, let's say you have a cluster of apps running behind a load balancer. Like if one you know like if one triggers the the block list it can it can put it up to Postgres maybe all the instances get the you know pub sub notification then boom all of a sudden everything behind the load balancer. Yeah, cool. Like the you have a synchronized block list because I have seen that at companies where every like every instance is its own very unique instance and there's no, there's no necessarily any talking or synchronization
between them. So like, yeah, maybe you trigger the rate limit on one box, but you know, once you get round Robin to the next one it doesn't matter anymore. Now when you guys, you said that you're like asynchronously checking IPS as they come in, right 'cause obviously you don't want to block, you don't want, you don't want to throttle your your performance. How are you doing it? Like once an IP is blocked though, are you still letting them through before they before you catch it or how does that
work? So it's it's just the analysis that happens. Asynchronously OK. Yeah, yeah, the So what happens is so you have this plug that you put into your, your endpoint like like Peter mentioned after static. And then what happens is that request comes in, we immediately Chuck it off to like a work queue and the the request continues, right. So the first time like a malicious request comes in, you're not going to, it's not going to block it. It'll, it'll to go through, but once enough malicious requests
go through and the asynchronous kind of pool of workers does its job and we actually use partition supervisor for that, once that does it's, you know, analysis, it'll, let's say it determines that an IP is malicious, it'll put it into an S table. And then that's the only overhead that gets added to that plug. So as soon as that plug is in is is invoked, it checks S Does that IP address exist in S? If it doesn't, continue with the request and Chuck it off to the the. You know, async work. Yeah.
Awesome. That's so at 1X calls your overhead. That's. Yeah, yeah, I know. I know it's a lot. That's. Awesome, and that also is constant time, so like it it won't slow down your request significantly. And then I'm guessing the keys are the actual IP, so it's probably a really fast look up too. Yeah, yeah, yeah, yeah. Cool. That's nice. I like that. Yeah. And then in like in apps we also store. So along with that IP key, we also store some metadata.
So like let's say it's the WordPress endpoint that they're hitting, right? You'll know exactly what rule was triggered when, you know, when that person was banned. And like Peter was mentioning earlier, we do plan on adding some additional stuff into into apps. So like, you know, exactly what route were they hitting? Because sometimes, yeah, like like the the stripe web hooks, maybe you need to know exactly what was hit so you can determine is this malicious or not as opposed to just what rule triggered the the block. So yeah, that's it's on the
road, man. I like that. No, that's really cool. Do you like once? Is this plug just self-contained in whatever project it's in, or do you have any logging that you're tracking outside of the project? No, we didn't track anything. OK. No, yeah, it's, it's just the, it's just the plug. Yeah, we, I mean, the only thing we we don't even track, but we offer the block list, the public block list from abuse IP to be we host that on easy Suite, OK. And if you start your application like once, like
right when you start the application, it will try to download that block list and then every hour it will update it. But that's literally like a rec get, you know an HTTP GET and that's it. And yeah, I mean, if you want 1, you can always disable that, or you can block Easy Suite and then there's no communication server, yeah. With that list, once it's local, I'm guessing it's like a Genserver process that is hitting every hour. Yeah. And then are you putting that in an apps table or is it just
staying in that process? It's staying in the process. However, like the original list is like 5 1/2 megabytes. And we actually use like Alex, he told, told me very interesting ways to reduce the memory overhead. Like in the memory foot, foot size. What do you call it? The footprint? The footprint, Yes, the memory footprint. Because The thing is there's something called a probabilistic
data structure. And I don't know that that's the biggest thing I learned last year and Alex told me about it. So there are something called probabilistic data structures. And if you imagine, you know, let's say, hey, we have this 5 megabyte list of IPS that I download from abuse IP DB. And we could store that in a map set, for example, you know, map set, very simple. Still, it would actually require a lot of memory to store all these like 8090 thousand IPS that I have there. And I would also need to serialize it, send it over to your server, and you would need
to store it in your memory. Now what we do, and we use two different probabilistic data structures. For this particular one, we use a cuckoo filter. And it's kind of like a bloom filter. Maybe you heard about bloom filter, but this one is a bit more optimized for memory. And basically it, yeah, it creates converts all these IPS into something that is not 100% accurate, but that is very small to look up and how it actually
works on what you gotta ask Alex if he still remembers from his college years. But Alex. I hope you remember, because I'm gonna ask. Live live interview test, right? You have like 2 minutes to look it up on Wikipedia. Yeah, no. But So what we do, there's like we convert it into a cuckoo filter and that actually becomes only 350 kilobytes of data. Oh wow, cool. Yeah. So that is a big, a huge, yeah, decrease of of the footprint,
you know, the memory footprint. And that is the value the the data we sent over to your server as well. So once a year you fetch 350 kilobytes of data. You know, you barely will, you will barely notice it. Yeah, even in the memory it's still 350 kilobytes. And the thing with probabilistic data structures is they're not deterministic. You know, they can't tell you with 100% certainty, yes, this IP exists in this list or not. So they're probabilistic, they say most probably they are not
like they don't exist in this list. However, the cuckoo filter is built in such a way that you can never say with 100% certainty that something is inside the list, so that you can never accurately say. However, you can say whether it does not exist in the list and that is 100% accurate. So we just basically have to turn our logic around and say, you know, the request is valid if the IP is not in our block list, basically. So that is something you have to keep in mind when you work with these data structures. But other than that, actually,
you know, they're quite fun and useful. That's. Awesome. And there's, there's a whole category of them too. So like, so cuckoo filter is the one that we use for like the block DB list, but then we also use the hyper log log for all the, the metrics that show up in in Phoenix live dashboard. And that's another probabilistic data structure where like once again, you put data into it and you can't necessarily get that same data out, but it's optimized and tuned for a specific purpose. So like like Peter said, for
cuckoo filters, you can throw a bunch of IP addresses into it, but then you can't like return like you can't do enum 2 lists and get that list back of IPS that were in there. It's like a magic a magic black box. It's a, it's a magic box of data that you can, you can ask your questions and you know, depending on how you ask the question, it might be partially accurate or 100% accurate. Dimitri goes ask ChatGPT right now you have two minutes left but no pressure. But can you like high level explain like the cuckoo filter? Yeah.
So it works like under the hood, it has some sort of hashing algorithm. I'm not sure what this implementation a cuckoo filter has, but essentially you toss a bunch of data into it, it hashes all of it and it just starts flicking bits in its storage mechanism. And then that way when a request comes in you, you perform the same hash and you see if the same bits kind of overlap and match. And then if like if, if you have a a positive match there, then you know that the that thing exists in the setter doesn't. Exist.
Wow, that's cool. Yeah, yeah. So it all works on on hashing under the head, which is why like hashes are one way functions, right? Like if you hash something, you can't get it, you can't get it back out the other way. So yeah, under the hood, that's that's how Bloom filters and cuckoos. OK, that's really cool. Yeah, yeah, yeah. But the concept is cool. Like I think a lot of people will grasp it a little better with. That one, don't ask me to go any deeper than that. I can't so. All right, let's this is a, this is an interview. Can you whiteboard it and go
into very technical detail? Just pull it up and draw on the screen. You work PTSD. You work for Amazon, didn't you, Alex? Didn't you have to do white boarding there? No, actually it was funny. When I got the job at Amazon, I actually went through like their new style of interviewing where they had like 100 candidates in the in a room and they had like all of us at a table working together. It was working together as kind of like air quotes where we all had like one part of a project to work on and there was like a
Proctor at the table. So we can like ask each other general questions, but as soon as like it's like, oh, can you help me cut? It's like my Proctor would say you can't do that. So they're trying to simulate like a team environment but not. Dude white boarding and live coding are the worst part of any interview and I don't think anyone should do them. Even I I hate them. I hate them. I I much prefer like e-mail me a project. I'd rather spend like 8. Hours. Programming something with my music on, like I'm in my environment, no one's over my
shoulder. Yeah. And then you walk through your project and explain it. And like, if you can explain your code to someone, it's pretty evident you've wrote it, you know? Yeah, yeah, exactly. So that's my favorite. Format. Me too. I agree I think the project is the way to go, especially if you actually want to see someone like how they organize code and like think through actual. You can do slightly difficult problems when it's a take home versus like. Now draw explain how this sorting algorithm works.
You know, like some leak code thing. Well, I just use enum sword isn't that? Can't explain it though, but it worked. Yeah. Yeah, yeah, I agree with that. Actually. The I think the the most stressful interview I ever had was also the only one where I had to do like a screen shared, well coding session, you know, where I had to code something in Elixir and it was like a data data processing queue. And I only have 20 minutes for
it. And you know, people were I was screen sharing so all everybody. So exactly what I was doing. And then, you know, you just have to start looking up Elixir, like the syntax, you know, how to do a stream again. Yeah, that kind of stuff. You know, how can you parallelize the stream of all your CPUs again? It's like you know it exists, but you don't exactly know how to use it. Well, and then when that kind of pressure's on, you forget everything too. Yeah, yeah. Your mind just goes blank and you're like shoot, I don't even know how to code.
The name thing at the beginning, somebody tells you a name. Exactly. Maybe you should just start calling them by the wrong names, just so you know, show that you're under stress or all that you have focus. Yeah. I always have to make sure I look at my like calendar invite before I jump on calls with people just so I remember the name. It's pretty bad, yeah. I'm very bad with names. I think that's the I'm really good with faces, but like connecting faces to names, it's impossible for me.
Yeah, I agree. I'm the same way. It's hard. Yeah. I have to do that thing where like you have to repeat the name within like 30 seconds of hearing the name. But if I don't do that, it's it's gone forever. Yeah, yeah, me too. Well, I mean, so Phoenix to band sounds really cool. Can you guys talk about any other tools that you're going to be building that aren't announced yet? Or is it top secret still? No, I think I speak for both of us Like we don't have a
particular tool. Well, there are a couple of ideas we have, but none of them is at the state where we say, well, that's gonna be your next project. You know, because Phoenix, the band is still, it's still in development. You know, it already has two out of the three big features we want to provide. We Add all these UX help us, so to say. Also because people come to us and ask us, you know, hey, can you add this configuration? Can you add this particular information? And and that's basically our focus right now. So that's going to be probably
the focus for the next couple of months as well. OK. Yeah. So you're ironing out the product before new products hit? Yeah, pretty much, Yeah. Yeah, Yeah. I don't want to be able to think that We just, like, did this quickly, you know, cobbled it together and now we're off to another, another gold mine. Yeah. Well, what are any any rough rough ideas of things that you want to build? I, I could dive into one of them, but I, I, I think it's pretty interesting. So I, I have a library called MJMLEEX and that allows you to
use like, you know, EEX templates with MJML, which is a compiler that takes the MJML syntax, which is essentially HTML and converts it into e-mail compliant HTML. So if you've ever written like responsive emails, you've probably done like all the hacks where it's like, yeah, if this use this many table columns, if that use this many table columns. There's there's no flex or grid in in emails. If you thought like cross browser compatibility was bad, wait to see cross e-mail
compatibility. So, yeah, so MGML is a tool where you write it in MGML compiles it to all this, you know, nasty HTML that does all the responsive design layouts for you. And we, yeah, again, having having written, you know, 2 SAS products that are successful within the two of us, you know, writing good emails is important. And writing good emails is like one of the hardest things ever, I think. Yeah, yeah. Like, especially getting it to, like, look nice, right? Like you wanted to be visually appealing, but it shows like a level of professionalism.
And and like, you know, it's differently having like a plain text e-mail with a link in it versus like a beautiful e-mail with like a, you know, a hero image, like a nice button that says click here to like activate your account. It's different. Right, I just like dream about that pretty e-mail and then I send the ugly text e-mail. Well, do we have a product for you? I will be. I'll be lining up for that one for sure. Yeah. So the next one more thing we're doing MGML EX Pro, which is
essentially like a whole bunch of like common emails that you would send out. But we, we do all the styling for you. And it's like you just get this nice package of templates and you know, you could, you could plug in your links as opposed to our dummy links and you're, you're off to the race. That's awesome. I think that's a great product right there. Yeah, unfortunately MJMLEEX needs to be updated now. So the library that I have, because I think when I wrote it, HEEKS wasn't around, but I really like what Heeks has done
because, you know, back in the day all we had was leaks. And then you have to like you actually have to make sure that you are closing all your divisions and your tags properly. So I would like to take the work that was done in the Heeks engine and pull it into MJMLEX, but then I'd have to rename the library MJML HEEKS as opposed to Eeks. So there's there's some preliminary work that needs to be done there. But. Yeah, nice. I like it. That's cool. Yeah, very. Cool. I think that's I think that's the next one.
I don't want to speak for Pierre, but I think that's the next one after Phoenix the band. Yeah, it could be. I mean. He doesn't sound so. No, no, it's, it's more like I think with Phoenix, the band, it was also a test for us. You know how pro libraries are seen in the community. You know, first of all, we also didn't want to seem like, oh, we have this great, amazing library that everybody would profit from, but we're not going to give it you to free. You know, we can ask money for it like we tried that. I mean, also Alex, he has like
1920 libraries out there that people use, you know, and all of them are free. So we decided for this one because we are both very busy people that if we, if we spend our free time on something like this, there needs to be like at least a tiny monetary value attached to it. And you know, right now we ask like $99.00, but that is lifetime. You have the code, you can even upload it to your private GitHub if you want to like take a copy of it. You know, it's kind of like a lifetime deal. So we wanted to see how well
that works, you know, also in terms of money, whether it's interesting to rest and all. And it's just with these kind of things, it's kind of tough to say whether people will actually use them or not. So I think the next step after finishing Phoenix Advance is also going to be a little bit of like outreach, Maybe ask people, hey, what do you think about these three ideas that we have on the road map? Which one would you pay money for? And then we decide. Nice. Yeah, yeah, you never know with developers too, like charging for things how it will work out, right?
Cuz so many software engineers, everything should be open source and free. Yeah. But I think if the tool's useful enough and you're going to be like, is your license like restrictive at all for like cross products? Or does it follow you? Can use it in as many projects and products as you want post commercially. Yeah. So that's amazing. Like I don't see like I wouldn't complain about it if it's a tool that I absolutely need one time
purchase, it's not even that expensive. And then it just speeds up your development tremendously. Yeah, and also installing it is literally adding like a mixed dependency to it and just installing the the the heeks our heeks repo. But there's like 3 lines of code and you're done. Yeah, nice. So yeah. Yeah, that's awesome. Simplicity wins for sure. Yeah, well, we also have one, I wanna like one or more to one or two more ideas, really. But one of them is something that I, I have the city going
for many years and I, I never know whether it's a good idea or not. So maybe you can be the judge of that, Jacob. So how much do you love to generate your own PDS? I hate it. I've hacked my way through and have generated PDFs before. I, I actually made this redaction app once I was going to make a product and I just wasn't happy with how it worked. But you could upload PDFs and then what I did was end up, you
know, like you need alpha layers, but you don't have that in PDFs. So I like converted it to PNGS. I think it was PNGS. It was a while ago. And then I would filter and look for the keywords that you wanted redacted and I would put a layer over with just the black line over the the location of the words phone. And then I would export it again as APDF but it was very hacked together and nasty. Sophisticated though yeah, I mean, you know, Alex and I, we, we have been and we are building
a lot of products and in many of them we have to generate PDFs. So we have to do that over and over again. You have to, you know, actually chromic PDF, the library chromic PDF is, is really amazing and I, I used different ones back in the day. I'm not sure like they used Puppeteer and it was always kind of it might work, you know, 90% of the time and 10% of the time it just fails and you have to retry. Chromic made it a little bit easier, but you still have to maintain Chrome driver yourself. You have to install it in your box on your server every two weeks. He complaints to me that the the
CD the deployment failed because Chrome driver updated again and nothing works anymore. So like for four years now. I'm thinking about just having a simple API where you send your HTML and it sends your PDF back. That would be nice. That's useful, I feel. Like especially there's no like, at least I haven't looked in a while, but there's no like easy direct way to do it with Elixir. Well, Chromic PDF actually they, they might have, they might have easy.
But again, like you need to have Chrome driver in your container, you need to maintain that version. It's also like 140 megabytes, you know, the Chrome driver. So like it's just unnecessary. And in my past, past company, we used the library like a company called Docraptor and we generated our PDS with them. But yeah, we spent like two $3000 every month just on that. Right. So my idea was kind of something similar, a little bit cheaper,
maybe a little bit simpler. But then again, you, you just, you know, write like a little module, you know, to call the API, you send your HTML, we sent back the PDF. Done. Yeah, I like that. I. Mean like anytime you build a SAS product you have to provide statements and everything and people want them exportable to PDF. So exactly. Yeah, I think. That would be a great tool. Man, I'm guessing. You would use it in. House I would use it everywhere I have like. 3 apps where I generate Yeah, I have three different ways of generating PDFs in three different apps.
I want to get rid of rid of all of them. You know, just replace them with an API call, honestly. Yeah, that would be awesome. I love it. OK, well, would you pay money? For that though, probably. Well, like if it's the you're saying pricing structure, is it just no, I would be like a a per. Per per month. You know, whatever you use like pay to. I see what you're saying. Like just usage fees, Yeah. So if you have 1000 documents. That you generate, you pay X amount.
Yeah. And I wouldn't. I wouldn't be. I wouldn't be against it because that was kind of going to be my my my payment model for my redaction app because you want to do all the heavy lifting on a server. But another thing I was running into too is privacy and encryption stuff. How do you prove you're handling their data like it's sensitive and all of that? So you might you might need to talk to. Certification, that kind of stuff. Yeah, you. Open a can of worms, because I was like thinking about like
attorneys, Cpas, people like that. All they're doing is redacting tons of stuff on documents, and they do it manually, but the second it leaves their computer, no one's going to pay for that service because they can't afford to have those vulnerabilities. So I have to figure out. You know we, we. Would not. Store anything but again like you might need to have some certification yeah yeah because you still. Are like it'll be in memory, it's going over an HTTP arrest request or socket, whatever
you're doing, but it's going over something. In that case we need like 60. Grand like startup fees? Because I think that's how much like sock two goes for these days, Dang. Yeah. It is not cheap. That's for sure our first, our first customer. Has to dig deep, but then the second customer can get it for 50 bucks. One rich customer. And then the rest can be cheap. Yeah, you need an Angel investor. For for sock 2 compliance basically.
Yeah, I don't know it. It's just, you know, those are the problems that we kind of thought about solving with Easy Suite, where, you know, you as a developer, you have all these issues that you need to solve over and over and over again. They're not solved well, they're always maintenance of, you know, heavy and you would just pay somebody to fix it for them. So those are kind of the problems we have in mind for for Easy Suite. Yeah. No, I think that's a great. Great Ave. to run down
difficult. Problems that. Are easy to fix with pain, yeah. Isn't that what we all want? Yeah, you can solve that when the. Especially when the employer. Pays for it. There you go. Someone. Did ask up in the chat. If this is a a paid a paid podcast for you Peter, Oh, you pay me or who pays me? You're a Who's paying me after? This. Yeah, I decided. That's funny, yeah.
Well, I'm not. I'm not getting. Paid unless you buy Phoenix to band then this will have been worth it and the link is in the description. At least on YouTube. I don't know if I always have to manually update it on Twitch afterwards. For some reason I don't. Do you use restream? Peter, I have. Restream yeah, yeah. Do you have issue like? Does your do your twitch descriptions push up or no? I don't think they ever work to be honest. OK. Yeah, because mine don't. It's. Really annoying, yeah. What's Restream? Restream allows. You to like so I'm using
restream on this podcast right now and it allows me to stream to multiple platforms, OK with just a toggle of a button. So I'm streaming on YouTube, Twitch and X right now and I've thought about LinkedIn, but I don't think a lot of people would watch on LinkedIn. Not many people watch it. But like, people reached out to me that I haven't spoken to you in years, and they said, hey, I kind of, you know, went into your live stream and I like what you were doing. Oh, nice. That's cool. Really. But I think people because also.
On LinkedIn you have that that red bubble when somebody goes live, like on your front page, so it brings attention to your profile. At least I guess so, yeah. Maybe I should just toggle? On LinkedIn, and wouldn't it be? Yeah, it's 110 off the way. Just yeah. Just super easy, yeah. Oh well, how is it going with? Sorry if you have any more questions for us, otherwise I have a question for you. No, we can just chat. Yeah, because. How is Alexa Mentor coming along the especially the the video course that you pulled from my
website. Yeah, I do feel bad that I pulled. It from your website. You shouldn't feel better with that. Elixir mentor was good. I, I, I stopped enjoying creating content when I was started charging for it, which is probably like weird to say, but it like made me procrastinate and not want to make any more content for the course. And then I got in this weird thing. I was like, I, I feel like I let all these people down 'cause I like over promised and I just like, didn't want to do it anymore.
And so just like the model of pushing it to YouTube and creating content when I have time, even if I'm still making a lot of content, it just like makes me less stressed I guess. Like, I don't know, it makes me happier about it. Yeah, it becomes a job, right? Yeah, yeah, actually. Isn't there a? Warning, it's like, don't let your hobbies become your jobs. Yeah, like 'cause I really. Enjoy. Yeah, I enjoy making. The tutorials. I enjoy helping people 'cause I like, I remember the learning curve when I came into Elixir
and I rewrote a lot of code over and over 'cause I just set things up wrong. And just like being able to help people do that is awesome. And then I wanted just kind of to focus on like getting more attention on YouTube and then driving it more towards like freelancing consultancy work for, you know, making money instead of a course that like promoting and marketing, of course, is really hard. I mean, you know that because you've made courses.
And I'm sure it's like promoting a book is hard too. It's just it's a very difficult thing. Well, Alex is quite. Successful with it, I would say, but he doesn't do it so. I'll say, yeah, Hugo does a lot of the marketing. Work, Thank God yeah for. Who doesn't know Alex and Hugo? They wrote a book, Elixir Patterns. Maybe you've seen it. Yeah, it is. Well, I had Alex on and we. Talked. It's like one of the best books, I believe for after you're like over the learning curve of
elixir and you're ready to like learn some nuances, you pick up Alex's book. It's it's good, yeah. I I appreciate the kind words. Appreciate that. And and what I what I love about it. Is that it just exposes you to things you never heard about. Exactly, it makes you. Think about problems in a different way, which kind of like, especially if you're kind of just like you understand Elixir syntax, you kind of know what's going on. It helps you, it steers you to think more in the like functional paradigm,
immutability, leveraging processes and all that stuff. It makes you. I'll say some of the patterns there are a. Little controversial I think, but the like the things that I use all the time. If I use them all the time and they work, it must be good patterns. There's a pattern for you. So yeah, it was a pattern for. I didn't. I didn't say. They were, you know, globally accepted patterns well, but you want to learn. From how people do it, like you have products in production, so it it probably it's going to help someone.
Also the title. The title. Of the book is not good Elixir patterns. It's just Elixir patterns. So yeah, it's it's up to. The. Up to the. Reader, you decided to get reads. Alex is elixir. Patterns. Yeah. Yeah, I'll give one. Example like the I have one that where you bundle like you create a debts file and you you load that up on app initialization. And like I use that in an Eagle MMS for a lot of static data where I think it's like 203 hundred megs of of debts file. And that gets bundled into the docker container and it's read
only data and like it's it's a hot path, right? Like it gets hit in the app a lot. So I mean, could you put in Postgres? Sure. But now you're going to get, you're going to be hit with the network time on every single time you need to resolve that read only data. And so yeah, it's a little controversial, right? You're bloating your docker container image by like 200 megs. 300 megs, but it's also insanely fast and you're leveraging your server resources. Instead of cutting, making things slower and adding latency
for someone else. Yeah, yeah. I, I feel like I don't know. I I feel like this trend is coming back in the tech side but like with all the micro service craze a few years ago, everyone wants to make their app servers as like stupid small as possible monolith. Is coming back. Yeah, like I, I don't know what. The the like what was the whole point of that? Like I don't know. We have brand new CPUs that have like 32 cores out-of-the-box, 64 gigs of memory. Like you want to know my? Theory. I never jumped on the. Micro.
Service bandwagon because I just I don't like the idea. Like any like if you enter AWS, you end up getting trapped in their ecosystem to put on how much integration you start using. So I never jumped on it. And I think it like honestly, it became popular because huge fan companies pushed their micro services on developers, making it sound like it's the best route to go. Yeah, I think he had a really good. Take on this was it he called it merchants of complexity.
I mean, I think he, I think the, the, the cloud platforms were the merchants in this case. Yeah, no, 100%. And so we were all swindled to think it's the best way to scale and build applications. Yeah, yeah. And. Pay a. Fortune doing. It and you're and it's funny. Like tools came out of this like micro service craze, like, you know, Ansible and Terraform and stuff like that. So you could agnostically spin up infrastructure in different cloud providers. And then all the cloud providers started making proprietary services.
So it's like, all right, you write this infrastructure as code stuff once in Terraform, but it's like, all right, it only applies to AWS. That's kind of funny. That all these like agnostic. Tools now became very like specific tools. Funny trends in tech. I I. Have a whole a talk about that like don't fight the monolith. I think I gave them Lisbon, Alexa come from Lisbon. Because for me, the experience of microservices, like from a technical standpoint, as you, as you mentioned already, it's kind of, you know, questionable
whether you really need it to scale. At least, like probably if you don't at least until, until you have the issues that you know, you will also come with the money to solve it or have people sell it for you. But what I liked about microservices to company specs actually that it kind of helped you with the the human organization of the company. You know, because you you got what's the the name of the law again where the corporation structure translates into your Conway. 'S law, I think so many laws, Too many laws, Conway.
'S law, I believe it is yeah. And it basically says well that the the organization structure will also translate into your software structure. You know, you will see how your organization is structured based on the architecture of the software. And it can be, you know, you can use it as your advantage, but also it can be a disadvantage. And in our case, I think it was an advantage because it really allowed us to separate from an organizational, operational standpoint, the different teams from each other. Yeah, that makes sense. Yeah. And and to make it really. Clear what are the protocols
that they should speak in between right? Because like, if one team hands off the the work for the next team, our software needed to handle that. So you could actually say, well, we need to have that data from you, right? And that also helps you with data quality issues because it makes it completely clear where you're getting from, where you're getting the data from, who had it first, where it's last, and that kind of stuff. And then, yeah, I work with the monoliths in the last company and all that kind of stuff just became completely vague. Yeah, that's a good point I never thought.
About it that way, yeah. And especially if you have in. Your process like in a bigger company, right? I mean, microservice is not something for smaller companies unless you really have, you know, high compute like processing needs, you know, if you do data transformation or processing, whatever. But for like big companies, that can really help you to understand the flow of the process of the operational processor, because you might have like 5 teams, 710 teams working with the same data. And usually it's, you know, like a flow from top to bottom. Yeah. And if you have all of that in a
single monolith, it became so hard really to understand where the, the, the borders are, the boundaries of each team, you know, where the handoff happens. So yeah, it's I feel like you have to put in. Like it being a leader of a larger team with a monolith system, you'd have to really put in the effort to delegate those lines, right? And make it clear where they exist, if you even know. Right. Exactly. Yeah. And. And if you use technology to force you to do it, it's also an
argument you can give to management. Like, yeah, we gotta have this talk about, you know, our data protocol that the the data we transform, like the the events, you know, we need to discuss the events because we need to handle them on the software side. Well, you know, we just need to sit down and discuss this because otherwise nobody will make that a priority, you know? Yeah, yeah. Yeah. And I mean, I had that issue where like downstream teams, they had to clean up the data quality issues of the upstream teams and it just becomes a political mess and the blame game eventually. So, well, I mean if you have. Bad quality data leaving your
service. It's definitely your fault. Yeah, at. Least it's harder. It's it's easier to pinpoint it right, because because then you also on the downstream service, you can do an anti corruption layer, an ACL layer where you say, well, you want to send me data? Fine, but I'm not going to accept it unless it, you know, comes like it, it has these requirements, it fulfills these requirements, that kind of stuff. And, and you know, stuff like when somebody signed up to the company, to the website, you know, and you ask for like name and e-mail, but then later you also need to know which company that person works for.
And, and like 50% of the cases that feels not filled in because it's not like initially it's not mandatory, but then in the process of onboarding a user, it should be filled in. And then the team just doesn't do it. But all the other teams downstream, they rely on that data, right? And then like after the first service, you could say, well, I'm not gonna accept this unless that field is filled in. And then it's the upstream's team's problem to fill that, that field, right? So it's their problem. They gotta solve it. So yeah, like this is a long rant about microservices.
I'm just saying software and technology in general, not necessarily microservices, you have to solve it differently, but you can use it as your advantage in these kind of organizational problems. It's good to have a a. Pro a pro opinion of it because otherwise Alex and I would have just sat here and bashed them I think. Yeah, the positive is good. Everything is trade-offs. Yeah, for sure, I think. That like it's always that
question too of technology stacks. Before you start a project, you have to make sure you're picking the tools that fit fit your product right And and that tool's always. Elixir. It's always Elixir. Supposed to be. Honest here. But like at least with front. End stuff that it changes drastically right? I think I think Elixir is a good overall back end solution, right? Just because I I think it's one of my favorite. And like I, I, I did a lot of
Java at at Amazon. Hated that. Did a lot of PHP after that, wasn't a huge fan. A lot of note after that, wasn't a fan. A lot of a lot of Python wasn't a fan and like a lot of it like came down to the runtime. It's not necessarily like the the language layer where this is the stuff that Sasha Yurik touches on on the the spirit of was the spirit of Erlang. I think is is like like that's the talk to watch from from Sasha Yurik, the soul of but. Soul of Yurling, There you go.
And like, like what you get out of the the runtime, the BEAM is just really difficult to replicate that anywhere else. And so like Elixir and Erlang and GLEAM are really good ways to expose those, you know, very unique runtime characteristics. So yeah. For for backguns. I think I think something on the beam is probably one of your your best bets 'cause there's just problems you run into on the other ones so you just you can't work around them. Like perfect example, I had, I was at a healthcare company and
I had a, a node back end and they're running a whole bunch of node instances behind PM 2, which is essentially like, you know, you step a bunch of node processes and you, you, you can load balance between all those instances and they were doing CPU bound work and every. Once in a while it would. Round Robin and would hit an instance that like previously got a document that was too big to like to to parse through until the next time at round Robin and then documents were getting lost and dropped. There's there's no good way around it really. So, yeah, like these are the
issues that you run into that an elixir don't have to think about it. It's like, yeah, every yeah, you have the the schedule or just, you know, give every every process. It's time slice fairly and it's it's not it's a non issue. Like you don't you don't even need to think about that point. Doesn't even have to enter your mind. That's a problem. I know it's kind of nice. Yeah. I don't miss. I I before I started writing Elixir, I was node JS and wrote lots of nasty REST APIs and I
don't miss that world. Yeah. Actually, like about this topic, you know, especially among seniors, we always love to to point to the genservice and OTP and what Alex just, you know, mentioned as well like and if I'm honest, like I love that I have these tools at my disposal. I don't think though, that they are the most important thing about the Alexian Erling. Like for me, at least, if they weren't there, yes, I would miss them and I would need to fix the
issues like Alex said, you know, with in other ways. But I think the core offering for me is the functional programming in in Alexian Erling. Like it's it's it's the FP because like, you know, also what Alex and I work on, like Mysas Jacob, also what you probably work on, like these projects are usually not highly technically complex. Well, I'm not talking for you, Jacob, Sorry, I don't know what you work on. Maybe you work on something really super complex. I mean, I think when you break down. Anything. You're not doing anything hugely
complex anytime. Like, yeah, unless you're doing crazy machine learning algorithms and. But even then you press it on, right? Yeah. Watch like Chris Granger's talks. So I'm like, yeah, that's yeah, OK, that's pretty complex. Yeah. He, he, he. Has the the right to talk in that way, right, 100%. But I mean, OK, so I'm going to talk from personal experience then, because again, I can't get wrong there. But yeah, if you're just building SAS. Products and things and like like you're not probably doing anything crazy. No, right. You know you have a.
Button on the on the website, it does a thing and you do a thing and it's kind of like, you know, it's Restful. So whatever you, you just do something, you persistent in the database and that's it. So I would say like what helps me in my daily day, daily work, day-to-day, it's like 99% of it is the functional aspect of the of the language. And for me, every time I go to an OOP language like Russ or JavaScript, well, Javascript's not necessarily OOP, but still like every time I go to a language that is not 100%
functional, I end up writing functional code again. You know, I, I wrote some JavaScript, every single function I have is a static public function. I don't want to have any state anywhere. Everything is function calls, right? And, and that is something that for me, it just works because that's how I think about the process. That's how we even document use cases and, and requirements, you know? Yeah. And the code and then the. Code just. Like 100% mirrors how you were thinking, right?
So no gotchas. Well, like I. Struggled when I first started learning how to program object oriented program and like I just I couldn't figure it out. Like it took a long time for it just to click. If I started with a functional language, I think I would have like grasped the concept of programming so much faster because I think 1 Like, yeah, a function does one thing right, a transformation. And then your next function, it forces you to write cleaner code because you're writing simpler
functions instead of these magic functions that you accidentally start doing in object oriented languages. And then you have weird race conditions and you're altering state in multiple places and you get really nasty bugs in your code base. I was gonna say the pass. By reference versus pass by value is one of the biggest gotchas for like for for new people. And I like, I like to Peter's point in your point, like functional programming, like everything's just passed by value, right? Like if I if I pass a map to a function, I either return a new map and you know, set it in my
original like call site or like whatever happens there is totally isolated and don't have to worry about it at all. I've seen like way too many people like pass an array around which is, you know, passed by by reference in JavaScript. They they do some sort of mutation. What they really want to do is just perform some like some computation on that array. And the original call site now has that mutated data. And as like a new program, you're like, what the Hell's happening here? It's confusing. Yeah. Yeah. 'Cause I think naturally our brands work in an immutable fashion, right?
Yeah, yeah, it makes a lot more. Sense like I I pass the data there and then when I continue running here like the world is, the world has not changed. Everything should be as it was. Yeah, well, it's, it's procedural like. That's how we think, right? We think of procedures like I do step one, then I do Step 2 with the result from Step 1. So we think in these ways, but then an over P doesn't translate to the code. And you know, even if you think about it like if you, if you update a a variable on an object, you're like, oh, now I assign the the value to that object, right? OK.
And then the next step, I'm using the value to do something else like, you know, there's always a step in between that. It doesn't quite work with how we think about it. So I agree, yeah. And. And that's my point like. You know, OOTP, Erlang, all these things are amazing and great and what we can do with it is amazing. But if I'm on as like a 99% of my cases, what I cherish every single day is the functional nature. And and that's not unique to Elixir or Erlang, right? I mean, the other functional languages out there, I think I mean, OK, I haven't written F#
or Lisp or something like that, you know, or what's Haskell, right? That's the biggest probably. I haven't written any of these, but from what I understand is that Elixir with the Ruby syntax kinda ish. Just got it, got it. How you say has the best version of it, so to say, like, you know, nailed it, just nailed it. One of the most approachable ones. Yeah. And I think that's why everybody who works with Alexia, they love Alexia because I mean, how often do you spin up genservice, right?
How often do you do distributed data processing? Every every day. Of course, Alex, I know what you. Were doing That's a lie. I I, I I. Agree with you that the the functional programming is the most important, but then like OTP, Genservers are really nice to have when you need them 100%. But I also didn't learn. Anything like I didn't touch a Genserver or any fancy processes or anything for like 3 years
when I first started learning Elixir. I think that's the like that's. One of the beauties of the, the Elixir ecosystem where like things like open Phoenix, like all these amazing tools that I use are built on these abstractions, but they're not leaky abstractions. Like I don't need to worry about any of this stuff. Like when I, if I'm writing, you know, back in the day, if I was writing a, you know, like a Phoenix controller, I didn't need to worry about state or anything or, or processes or OTP or anything. I just, I, I got that handler invoked under the hood. Phoenix was smart enough to spin up new processes to handle all these things and load balance.
And I was just the beneficiary of these amazing like tools. And I, yeah, I operated at the top of the pyramid, but underneath that pyramid, there's a whole bunch of OTP magic for sure. I was, I was grateful existed. Owen Bickford just goes. Gen. server life. I agree, I love my Gen. Servers, when I use them, they're fun. It it is always exciting like. Oh, I get to write a Gen. server today. I have an excuse to write a Gen. Server. Yeah, yeah, yeah. True, I'm just going to use it
for. Holding state across my whole application I I was about to say that like. 95 percent, 95% of the time when I write a Gen. server, it's just to to work as a Singleton, to hold some state and to do some stuff periodically. 95% of my gin service. Peter, you're not supposed to tell people. That oh, I'm sorry. Oh, you're supposed to. You're supposed to. Gatekeep that kind of knowledge. Oh, I see. Of course. I I. Rebuild Broadway like 2 times a day. That's what it did.
Oh man. Yeah. Yeah, I, I know. But I, I think in the discussion about, you know, Elixir and we all love it and how great it is, you know, these kind of things, they kind of fall through the cracks a little. Like people point very quickly to these very highly technical aspects of it. And I agree, like, they're amazing, right? If you, if you have that problem, it's all for you. You don't have to worry about it, right? Like OTP solves it for you. But again, like what? What do we do 95% of the time every day? You know, we do certain repetitive tasks like whatever
if we write web apps, it's mostly a click that needs to an action that needs to update the database and to get that done. Like to get that like how life you how easy it makes this makes it that I think is also something that we should maybe highlight just more. You know, like Owen said, 99% of his. Gen. servers are live views. Yeah, there you go. And then you don't even use the Gen. server behaving, you just use live view. Yeah, easiest way to. Use one.
True, because just. You know, to finish my point here, my my thought, it's if you look at Ruby and Rails, right? I mean, why would it become so popular? Because it's so amazingly productive and people with little code, they can actually do a lot of stuff. And it's really popular for web apps. It's not so popular with, you know, back end data processing heavy task because of the, the, the single threadedness of everything. But you know, people don't really like the, you know, they always say, well, you can just
scale horizontally. So they don't if for them it's not that important, right? I mean, and because apparently they don't do that many data heavy processing tasks everyday, you know, they they write web apps. So that is an aspect where like Elixir has that, but also, you know, can do the data heavy processing in the back end if you need to. So yeah, exactly. But still like the first part, I think sometimes we we forgot to mention that, you know, to highlight it enough. Well, it's the shiny. It's the. Shiny feature that draws people to Elixir and that that that's
all they care about and want to do. And I think it's one of those things like you can jump into those shiny features too quickly before you actually understand like the life cycle and like just architecture of an Elixir app. I think it's much more important to figure that out and get that down before you start jumping into all the OTP stuff. Yeah, exactly. Like when, when I demo, Well, I don't demo Elixir that often, but every now and then I have I do and what I usually use like a multiplayer game where you just connect to a live view, you
click a box and that generates a pops up event that you sent to the other player and their live view updates. And they can also click a box, you know, like tic tac toe or whatever. And just you know, just clicking like that already gives you that shows you the strength of live view, but also pops up and Elixir like the language how it looks like. And within 5 minutes you have a a distributed multiplayer game running without any JavaScript, you know, and it just works. I I just. Built my well, I've been building it for a while, but
it's finally kind of about to be in production. But I built my first like very simple like multiplayer game server, which is really cool. And it just it interacts with like a JavaScript game engine like it's super basic. It's like a Peggle style game, but it all the scoring and stuff. So every peg that gets hit hits a socket and then like at the end of the game time. So everyone's game time is synced and then all their scores are shown at the end. And it was, it was fun. Like it gave me a good reason to play around with a bunch of Gen.
servers because I create like a game Gen. server for like, you know, game wide things like game time countdown, like when it's starting and then it collects all the users information and then I'm every player that joins gets their own Genserver to keep track of their state. And so it was a fun project. Like it's nothing fancy. Like it's probably the most basic game server you could ever build, but it was a lot of fun. Yeah, still, yeah, it's. I I remember doing that for the
game of life. Like I rebuilt that with one cell being one Gen. server OK. Yeah, wait, wait like 3-4 years. Ago I wrote a blog post about it. Obviously that was fun to do because then you have like a million Gen. servers. You're really flexing the Gen. servers. I did. I just said yeah. Because once you have the the basics down, you just, you know, up the number to a million and you see what happens. And it worked that Yeah, it's amazing, huh? It is and all the the Gen. servers. Talked through events, so like
message passing and it just worked. It was really cool. And and that also showed me how how difficult it is to write a good game server, you know, that that can handle all these states, so to say of the game. Yeah, that's cool. I like that. Your supervision tree probably look crazy. I I haven't even looked at it. Yeah, probably like a million notes, right? Yeah, but 10? Thousand, I think with 10. 1000 notes. I did, yeah. OK, that's cool.
But yeah, it's. Fun. It's yeah, but like in most projects you're not doing that much with a Gen. server. Like I think in like my boring projects like Elixir mentor my website, I have my events page that hits Discord's API, grabs the events I create in Discord, puts the data on my website. And I didn't want just, you know, my traffic hitting a third party API. So yeah, like once a hour I have a Gen. server hit the API and
then just keeps the data in state. But yeah, that's like probably the most simple basic solution to. Use a Gen. server. That's not. Even also that gets. Back to the one of two patterns that you frequently use. Gen. server exactly. Yeah, yeah, yeah. Yeah. Yeah. But it's cool. I like. I always love my excuse to build a Gen. server. Yeah. Yeah, All right. Cool. I think we should wrap this up. I kind of have a hard cut off. I have a call in like 10
minutes, but this was awesome and you guys are the first get multi guests and I think it went pretty well. Nice. We beta. We beta. Tested. Yeah, I did not know how it was. Going to go because I've been having issues with OBS and I just figured it out like 10 minutes before our call was causing it and it was like I had on my on my microphone. I had monitor and and.
Output selected. Oh, you're like yourself. And whatever it was like lagging. Everything and it it just made it like unusable and that I don't even know how it got flagged because it randomly happened and I couldn't solve the problem. So I finally solved it. But what was weird is changing scenes in OBS is what triggered it. If I stayed on this scene, it wouldn't. It didn't matter so. I have no idea. I'm not. Smart enough, I just like
barely. Like I hack my way through OBS. Yeah, OBS is one of these softwares. That really trick you into believing it's a simple software yeah, but but once you start using it, you're like, no, it's not simple at all. And there are all these small little tricks and and configs and all that kind of stuff that you need to find You know, I like I, I didn't know that like sorry for, for going there, but like my in my stream, I, I, you know when I screen share the text would not be sharp, it would be pixelated and I was like, well, how can I fix this?
You know, so I, I tried around and eventually, like, I, I realized if you want to have 100% accuracy, you need to have the same window size of your screen as your screen screaming in OBS. So you need to have, you know, the same dimensions, like 16 to 9 ideally. And then you just like it's scale your screen to have exactly the same pixels as your OBS out. But even if you drag something in OBS and make it slightly smaller, you already it's, it's, it's kind of down sampling it or
something. But if you, if you down sample it or resample, there are algorithms to try to make it sharp again. And you can enable them by right, right clicking it and saying, you know, use this algorithm, but the folder's not on. But if you turn it on out of sudden magically it it becomes pretty sharp again and and that took me like 3-4 hours to figure out. Just right click select this. I remember you telling me. That because I was like, I might have to copy your layout because I love how you have like the
chat down the side and then you were telling me that you're like, oh, a little fun note. You should know. Yeah. Wasted. Four hours of my life I've probably wasted. More time on obs as well, but when it works it's great. True, This is why that's strange. You're streaming. Right now. Yes, you get streamed. Awesome guys. Well, thank you so much and for everyone that tuned in, I hope you have a good weekend and thanks for joining. And we had a very busy chat. I love when people are very
involved, so it makes it a lot more fun. But yeah, thanks so much guys. And we'll, we'll do this again. We will. Thank you everyone for joining. And thanks for the chat.
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...
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...
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...
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...
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...