Podcast Lookup

126 - Serverless Computing with Erez Berkner

Programming Throwdown

  • January 24, 2022
  • 1 h 12 min
  • Episode 126
Episode page
About this episodeBrief Summary: Erez Berkner, CEO of Lumigo, talks about his company, going serverless, and why you should too. He shares his experience…

Brief Summary:


Erez Berkner, CEO of Lumigo, talks about his company, going serverless, and why you should too. He shares his experience and tips regarding serverless computing and its ever-growing opportunities in modern computing.


00:00:16 Introduction

00:01:43 Introducing Erez Berkner

00:06:27 The start of Lumigo

00:10:42 What is Serverless

00:20:10 Challenges with going serverless

00:39:53 Securing Lambdas

00:46:50 Lumigo and breadcrumbs 

00:55:46 How to get started with Lumigo

  • 00:57:06 Lumigo and databases
  • 00:58:20 Lumigo pricing

01:00:28 Lumigo as a company

01:06:30 Contacting Lumigo

01:11:01 Farewells


Resources mentioned in this episode:


Companies:

Socials:


If you’ve enjoyed this episode, you can listen to more on Programming Throwdown’s website: https://www.programmingthrowdown.com/


Reach out to us via email: programmingthrowdown@gmail.com


You can also follow Programming Throwdown on 

Facebook | Apple Podcasts | Spotify | Player.FM 


Join the discussion on our Discord

Help support Programming Throwdown through our Patreon

★ Support this podcast on Patreon ★

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

126 - Serverless Computing with Erez Berkner

00:00—
  1. A

    Hey everybody! So, you know, a lot of projects that we're doing, you know, either in the spare time or even for your full time, you know, a lot of them require a lot of maintenance. And the maintenance and the overhead can actually really kill your project. It can drain your energy, you know, suck away all the ambition that you had. And so I think, you know, it's really important to make things really fluid and really seamless, especially in the beginning, but even later on. So you're not kind of bogged down with old bugs from things you built a while ago. And so the biggest kind of maintenance headaches are maintaining, you know, as we talked about in the last episode, you know, maintaining your own database. You know, maintaining, you know, your own installation of all these libraries and these programs. And, you know, you have a cluster and then you have to add a new machine to the cluster. And all of that kind of really can suck kind of the fun out of a side project or it can make even your day job kind of really difficult. So one of the ways that we've really taken this problem away from developers and made it just really beautiful, the developer experience, is through serverless computing. We're going to really dive into what that means and how that works and kind of explain all of that. And I'm super happy that we have Erez Berkner here, who is a CEO of Lumigo, to hear kind of, you know, really explain serverless computing and how to write these things, how to monitor them, how to test them, and how to build kind of really nice micro architectures that you can rely on for a long time. So thanks for coming on the show, Erez.

  2. B

    Hey, Justin. Hey, Patrick. Great to be here. Thank you for having me.

  3. A

    Cool, cool. So before we dive all into serverless stuff, it's always good to kind of ask folks, you know, how are you doing with this COVID situation and how has that affected Lumigo? And, you know, are you in the office? And, you know, what was, you know, how has it sort of changed your perspective on, you know, software development and running the company?

  4. B

    Yeah, so I think, you know, I'm looking at this, all of the main concepts of COVID, especially people working from home in two different aspects. One is on our, you know, our business and on the services we provide. And that didn't change drastically on the one hand side. And that's because when you go serverless and you go to the cloud, you know, you can, in the modern environment, connect work from home, work from office, work from anywhere in the world seamlessly. There's literally nothing there in the office that requires you to go within that network, within that perimeter. So in that sense, the cloud and more specifically serverless really got our customers really ready for working from home, working remotely. So it's really, really like easy transition that factor. On the other front, we see COVID pushes organization to try many new things for reducing costs, for being more efficient. And that's an interesting drive that we're seeing in some organization toward, let's try out things that can, you know, take us, you know, to

  5. A

    go five weeks better just because we need to be

  6. B

    more efficient now in days where business is changing. So you cannot, you know, attribute that completely to COVID, but when you see a drastic adoption in the last couple of years in really modern technology, people are there to try more things out, especially when it's around cost saving. And that's one point probably of several that we'll talk about. So that's, that's on the business on our, you know, on our company, we are working, you know, completely flexible with people that come into the office, working from home. It's a, currently it's completely, you know, open to actually people that feel like comfortable with.

  7. A

    That makes sense. Yeah. My neighbor actually is in Marcom, in marketing and communications. And his job was massively affected, you know, compared to mine in the sense that, you know, he was going to a lot of events and he was meeting with clients and, you know, all of that became virtual. And that was a really big paradigm shift. And I think they're still trying to figure out how to do things like CES virtually, like how to do that well, where you could serendipitously bump into somebody when it's a virtual conference. Right. And so there's no physical space. And so, yeah, I feel like that is really, you know, where we're going to have to see just massive shift in, in how people, how people, you know, go around working. So I think, yeah, like visiting clients, I would imagine is really difficult right now. It's probably the biggest change.

  8. B

    For sure. And I think that's, you know, I think that this is impacting us as Lumigo a bit less because we are very much self-serve developer led company. So we didn't really visit our customers prior to COVID. Our customers that didn't want us to visit them. They just want to do their thing. Yeah. Yeah. So it was, you know, always really like easy. Hey, connect, try, get value, move on. And that's kind of the type. I think that we're seeing that, you know, and me as a developer, I love, I don't want to spend time with a specific meeting in the office about a specific tool. If it works, I want to use it and I want to continue. So on that sense, I think the type of company that are more conformating in the office and meet everybody and start a big POC, that would really change their sales motion. I think a bit less on more than modern self-serve bottom-up developer led companies.

  9. A

    Yeah, that makes sense. Totally makes sense. Cool. So why don't you kind of give us some background about what kind of path led you to start Lumigo and kind of where that journey all started?

  10. B

    Yeah. So I'm, I'll start by saying that I'm, I'm a developer by heart, but, you know, I started 20 years ago, approximately developed, you know, my first role was at the

  11. A

    company called Checkpoint, cybersecurity company.

  12. B

    And as time went by, I got more and more into the cloud business and the cloud, the cloud security product and learned more about what cloud has to offer. That was, you know, 2010, all the way to 2015, and 2016 is where, you know, I started to see from, you know, from within Checkpoint, this new paradigm of development emerging emerges and mostly around event-driven architecture, where you want to have, you know, decouple more and more of the services about microservices. And 2016 is where I got to know serverless very much from customers that, you know, we're ahead of the curve and, and understanding that serverless is allowing them to move much faster in development, in cost saving. And how do we do serverless? And specifically with Checkpoint, how do we secure serverless? And, you know, I got to try and to play, and later on, to build with Serverless, and honestly, I got really excited. I got excited, and I fell in love with the concept of it's so easy to get started, to get product to the market. And I decided that this is one of the main points that I want to understand better. And I learned that there are a lot of organizations, a lot of developers out there, an architect, that think the same, that really believe that this is the right approach. I think you mentioned at the beginning, Jason, don't build it and don't do it yourself, but consume one more of it. You have the example of databases. And it really makes sense. And then at the same time, I started hearing about the challenges in those environments. What is hindering the adoption? Why don't we go Serverless? It makes sense. It's so, it's really, it's fun. And you get things done really fast, but we cannot do it because. And then you hear about monitoring and about debugging and the tools that are there are not sufficient. The ecosystem is not mature enough. And that's really where myself and Aviad Mor, who is my co-founder and CTO, who were with me in the soul journey that I just described, set out to help the community adopt Serverless and remove the barriers. And that's how we started Lumigo and went into observability monitoring debugging spaces of Serverless.

  13. A

    Got it. And so I see. So you're at Checkpoint. And so Checkpoint was, you started building Serverless or you were just working with other people who had Serverless? Somehow you got a kind of a lot of exposure to it at Checkpoint.

  14. B

    Yeah, it was actually from two ways. One was from Checkpoint customers. I was heading the Cloud Security business at Checkpoint. And customers came and said, 'Okay, Checkpoint, you're a security vendor. You invited the firewall. How do we secure Serverless?' That was interesting. This is where the initial hit was. And then later on, my development teams also had Serverless and used it to build other stuff. So it came basically from both ways.

  15. A

    Oh, interesting. Yeah, this is okay, so we should definitely dive into that because I honestly don't know how to do that. So we'll definitely jump into how to. But first we should kind of give the overview of what is Serverless? I think, you know, the first time I heard Serverless, I honestly didn't know what to think because I thought, well, it's not running, you know, on your house. It's not running on this laptop. So it has to run somewhere on a server. And so it didn't really, you know, the name actually really beguiles what it really is. And so how would you describe Serverless to somebody?

  16. B

    You know, it's funny because there is a known poster in the Serverless community saying, 'You'

  17. A

    know, there are servers in Serverless.'

  18. B

    Yeah, right. So absolutely. So the server is just not your server. Maybe that's a bit more accurate. It's somebody else who is in charge of those servers. I'll give you my, you know, Serverless is very dynamic. And I really want to say it's even kind of like used as a marketing term in many senses today because it evolved over time. And some people have different definitions, but I want to keep this very, very simple in the way I define Serverless. And I define Serverless or the main thing that I see as Serverless providing organizations is the fact that you don't need to care about servers. So you gave the example of a database where you need to deploy, you know, have a physical or virtual server. And on top of that, deploy an operating system and application and maintain it and patch it and concern about high availability and scaling. And all of this stuff, if you think about it, most of this is commodity. You know, and probably me as a company, that's not my business. I'm not doing that best in the world. And if I could offload that to somebody else because it's commodity, it's generic, I could focus on what makes my business unique and what make my business logic and service unique. And this is really much, you know, the evolution of the cloud, you know, you took your own premise, don't buy physical servers, rent them from the cloud provider because they can do it better than you. You're not the expert in running servers. Same goes to operating system and running the application and databases over there. So you're not the expert in that. So if you are in that mindset, that's really the next evolutionary step. And my definition of Serverless is you don't use, maintain, deploy, patch servers. You consume the service. So if you think about it, my wide definition is everything today that is as a service is classified as a Serverless. And maybe the most known are Function as a Service, Lambdas, Azure Functions, Google Cloud Functions, which you can just write a couple of lines of code, upload them to the cloud and they run. You don't know where, you don't know on which server, you don't know if you need more firepower, you get it automatically. You don't need to care about auto-scaling or all these other, you know, big words that people have nightmares about.

  19. A

    Yeah, auto-scaling is a huge mess. We have an issue right now where there's spot instances, where a spot instance means you get this machine, but Amazon or whoever can take it away at any moment. And so you get it. You can do as much work as you can really quickly and then they take it away. But they're really, really cheap, dirt cheap. And then there's reserved instances where, you know, Amazon says, you know, we're going to guarantee you 99, you know, a million nines availability on this machine. And so you want to save money, but you also want your things to run. And so we've been struggling with auto-scaling so much. Anything that keeps you from having to deal with that, I can tell you firsthand is a huge benefit.

  20. B

    Jason, it's not just you. I just want to say. Yeah, I think. Yeah. All right. Good. So, yeah, so, you know, it's functional service. It's databases of the service, you know, DynamoDB, Snowflake. It's Kafka as a service, like Q and even payment as a service, Stripe, PayPal with APIs. All of these are what I define as serverless because you don't maintain a server. You consume them via API. They auto-scale without you worrying about. And today, a serverless architecture basically allows you to use all these Lego pieces and connect them together. And you have an application running within days if you have the right construct. And this is really the big promise of serverless. Cool. Yeah, that was a great, great explanation.

  21. A

    Yeah, I mean, I'm sure a lot of folks out there have had to deal with compatibility issues. You know, like, you know, you install Python or Python comes with, you know, Debian or Ubuntu. But it's like, oh, no, you need Python 3 to run this program. So it's like, OK, now I have to go download Python 3. And then, you know, maybe a year later or a few months later, you want to try this other program. And it's like, oh, this other program requires Python 3.8. But the last one, you know, doesn't work on 3.8. And now you have incompatibilities. And it just becomes a huge mess, right? And so using things like virtualenv in Python or Docker, which is more general, you containerize these things so that you can have, you know, Python 3. 7 and Python 3.8 running at the same time. And you don't have to worry about them stepping on each other or keeping separate directories for everything and sandboxing everything yourself. And then to your point, you know, once you have these sandboxes, these packages, why even run them on your machine? You can run them anywhere.

  22. B

    Exactly. And why scale them? Right. Like, like, like, what's actually happening in serverless is, as you mentioned, there are servers, but Microsoft, Amazon, Google, they're actually the one that monitoring this automatically. And when they identify there is higher demand, they will allocate additional servers or reduce the servers really precisely to what you need. It's not a server that comes spinning up. It's a specific function within the server. So you can get really granular to what you need. And that's the other point of, you know, you get what you need, you pay for what you need in service environment.

  23. A

    Yeah, that makes sense. So some of the things are, you know, I would say somewhat intuitive. So for example, MySQL, you know, Amazon has RDS, you know, they'll handle MySQL for you. But, you know, at that level of granularity, you're still allocating individual machines. It's just that Amazon is handling the MySQL, you know, installation and updates and all of that. But you still have to go and ask Amazon, you know, I want this machine, I want that machine. And it's running MySQL, which is not your code, right? And so Lambda, I think, is another level of complexity for folks. Like, I think it's really, you know, it's hard to wrap your head around, you know, I have this Python file on my machine that's running on a installation on my machine, on a WSL machine. And somehow I have to sort of teleport this into the cloud. And how do I do that with dependencies and everything else? And so, yeah, if you could just kind of explain a little bit, like, you know, now Lambda does other things, too. I think it does JavaScript. It does, you know, I think anything that you can run in Docker. And so how do people sort of like take what they're doing that runs, works on their laptop, and sort of teleport that to Lambda? Like, how do they do that efficiently?

  24. B

    That's a great question. I want to start by saying it's not, there's no magic over here. Usually the process of taking something, you know, just from my laptop or my existing application and moving it to serverless requires a different line of thought because serverless is really about microservices. You know, we talked about the Lego pieces. So you can no longer have a VM that has a database and, you know, some cache and some code and all of that in the same VM. Or it's breaking down to DynamoDB and Redis and Lambda. And it forces you to adopt microservices. Some call it nanoservices today just because of the number of services. So if you have a big monolith, moving to microservices and serverless requires work, requiring mindset shift. Once you get there, you just, you know, you map. This is a, you know, this is a, which is very healthy, I would say, in an architectural view. You decouple the different business logic and the point that you have. And then you say, okay, this is my storage and, you know, my data access. And this is where I'll put it. And it will be DynamoDB will front it by a Lambda that will actually do the data crunching of a transformation that is needed. And we'll add, you know, queues in the middle just to make sure there are no dependencies. And we decouple that. And at the end of the day, you'll take all of this. You'll upload that to the cloud and you fire a request and it will run. But I think that to your question, if you have just like, you know, a hundred line of code, taking them from the laptop to a Lambda, for example, it's super simple. It's literally like 20 minutes to get this hiring. You put the code out there in AWS console and you hit run. If you're talking about a monolith, that requires, you know, more decoupling.

  25. A

    Yeah, that makes sense. So what do you think have been sort of the, like, what are some interesting stories or interesting challenges you've faced or seen other companies face when they go to serverless? Especially companies that have already built something that might be like a monolith architecture. What are some really interesting challenges you found?

  26. B

    Yeah, so I think, you know, I think in general, and that's a problem of, I think, everybody today. Everybody want to do, you know, microservices, serverless Kubernetes, you choose it, but everybody's talking about that. In reality, getting out of the monolith is really hard, extremely hard. Not because of the architectural pain, because there, you know, there's always something more important, more critical, and it takes time. It's refactoring. So we see a lot, a lot of new projects. You know, they have, they say, okay, we have the legacy. Legacy will continue and we'll break it bit by bit. And that's one approach, by the way. Let's take this part and, you know, tear it off and make this serverless. And this part, you know, gradually doing that. But we see a lot of new projects that are born to microservice, born to serverless, and a lot of startups starting up as serverless. So that would be, like, the most common use case today. Yeah, that makes sense. Totally makes sense.

  27. A

    Yeah, I think one of the challenges in terms of the paradigm is that, you know, you don't have something that's available 24-7. Right? In other words, you don't have a machine in the cloud that can just sit there idle, but it's ready at any moment. And so you really have to think in terms of signals and events and triggers, and you have to think in this way. I mean, personally, like, one of the challenges I saw in the beginning was there was something that I wanted every day around midnight to do this really big computation. And, like, Lambdas are designed to do kind of relatively small things. They're not designed to wake up every day and do something that takes two hours. Right? And so what I ended up having to do was to wake up, you know, at midnight, decide what I want to do, which you can do pretty quickly, and then create a bunch of messages. They have this thing in Amazon called SQS, like a queuing system. You know, queue up a bunch of these messages of all these little work package descriptions. And then, like, a whole bunch of Lambdas will just start picking things off of that queue until it's empty. And, you know, any one item on the queue could be done in a minute or two. And so that actually required a really big refactoring because I used to just say, okay, it's midnight, you know, wake up. Like, I used to have a cron, you know, something in crontab that just wakes up this Python program. And then, you know, Patrick and I used to work together at Lockheed. And, you know, I write research code. Patrick writes real code, right? So my research code would spin up. And it's just one giant Python file. And it would run for, you know, two hours and something, and it would stop. And so, you know, and so that ended up being a really big change. But when I was done with that change, I was so much happier with the result. Because the two-hour thing, you know, would crash sometimes. And if it crashed at 1.9 hours, that's super frustrating, right? And so this, you know, you farm this out to a bunch of Lambdas. And even if, you know, what would be the last item in my database, if that one actually crashed, it actually doesn't matter. Because I had factorized it down. And the other, you know, 1.9 hours, that work is committed. And I

  28. B

    Just have to debug the part that failed.

  29. A

    So this is similar to what we were talking about with Guillermo on Next.js. You know, some of these things can seem kind of opinionated. It's like, 'Oh, why can my Lambda only run in five minutes, whatever the time that is?' But actually, when you follow those sort of rules, which seem really rigid at first, what you end up with is actually something that's way more beautiful than when you started. And people who have, you know, made their entire life work on creating a beautiful developer experience, they made those rules with that in mind. And so usually if you follow them, you end up with something a lot nicer.

  30. B

    I completely agree. And I think the others, and we actually, you know, I give an example of one of our customers that actually did pretty much the same. He had, like, a huge task, several hours' worth of rendering of images. And he decided to go serverless. And he broke this into exactly the same model, by the way. You know, small messages that you can digest. But the side effect—I'm not sure it was a side effect, actually—but what happened, he was able also to create parallelization of the execution. So he all of a sudden could run, you know, 500 Lambdas at the same concurrent time. So he could get the job done in a matter of minutes compared to hours just because he broke it into smaller pieces. So that's another, you know, I think, something that you get out of modeling this and decoupling and building it in microservices or a different mindset.

  31. A

    Yeah, that makes sense. So, yeah, so a lot of people will probably want to know, you know, if you run something on your desktop, you can just create a log file. And so, you know, you can have a log file for every day. And every time you run this job, you get a log file. Now you've sort of exploded this into all of these Lambdas. And so you have to be really diligent and careful about how you do the logging so that you can recover. Especially, you might have 99% success, but that 1%, you know, is a crash that you would have seen. Now you have to sort of go digging in the haystack to find it. And so what's been your experience with sort of being able to instrument things like Lambdas?

  32. B

    Yeah, I think, you know, you're touching a very one of the most painful points when it comes in general to distributed services and microservices. Usually you can just go to a server, a monolith server, open the log file and understand what happened in a sequential way. That breaks when you're working in distributed environment, microservices, especially when you have, you know, thousands or millions of events and requests every minute. And this is where a concept called distributed tracing comes in. And the concept is fairly simple. The concept is we want to mark every one of our logs with a unique identifier that identifies what which requests this log belongs to. So if I have a request going across 20 services, I want all of them to be colored green, which means like this is request 555567. And then I can take it to, let's say an Elastic and search for that request ID. And boom, I have all of the story of that request end-to-end. That's critical for anyone who wants to go microservices with more than just a couple of requests per second. Because if you don't do that, you really are not able to find the logs. You just have like many, many logs, you know, millions of logs. And you don't, you can't understand where is one transaction starting and when, when is it ending?

  33. A

    Yeah, just to kind of explain that with an example. So, you know, we've talked about batch jobs and breaking that up, but the majority of serverless is going to be a response to something like a web request or something like that. So imagine you upload a photo to Google Photos or something like that. And so, you have this upload request, you send a file to them, some JPEG file, then they need to do a bunch of preprocessing on that file. Maybe they'll look for faces of your family so that you can find them later. And there's all this work that has to happen. And so there are many different steps there. Some of it is image processing. Some of it is storing things in a database, storing the image in some kind of data store. And so any one of those steps could fail. And also any one of those steps could fail, and it's not their fault. So in other words, imagine the system that accepts my image somehow has an issue with casing and converts the file name to uppercase. And we're using the file name to key on things and then sends the wrong key to my Lambda. So then my Lambda goes to grab the image. It's not there and it crashes, but it wasn't the Lambda's fault per se. It was just that the system that sent the Lambda that image had an error in it. Right? And so, and as you said, there are millions of these happening, and let's assume they're not all failing in this way, just a small percentage. So, having that unique ID that just follows this request through all these different systems allows you to say, 'Oh, at the very end, when I went to store, there's this face in this image. When I went to store that, it crashed,' but that actually happened because on the browser, I let someone upload a WebP file and actually we don't support that. And so I actually need to fix something on the client side because of a bug I found way down in the pipe at the end of the pipeline. And so, yeah, having that—having that ID—if you don't have that ID, it's almost impossible to connect all those dots.

  34. B

    Absolutely. I think, so, yeah, so I think this is a core concept of logging, monitoring, debugging of serverless and microservices. And it forces you to have to plan. So you need, if you are architecting this entire process, like, like you mentioned, you need the different development teams to know that for every service that you're using, they need to remember to get a request ID from the service calling them and to pass that request ID down downstream to the next service to the next user. And get this within their logs. And that's, you know, and that's a way to handle, to your question, to handle logs and logging in general in those environments, you know, in a serverless and microservices environment. But that's also the challenge because getting this process, procedure in place across different team and organization is really, really hard to get people to remember to do that, to get them to do that for new services, to chase after them. And this is where some companies, bigger companies like Netflix, like Airbnb, Google, of course, and others are basically doing that internally on their own. And they have the processes and tools and instrumentation that help them do that. And in some cases, there are other, you know, other companies that are providing that service automatically. So that's taking the burden of the actual developers doing that. Or there are some framework and open frameworks, open tools that allow you to do that yourself and not inventing the word.

  35. A

    That makes sense. What about just logging more broadly? So, you know, people know right now, if they write a Python program, they type print, 'Hello world,' and they see 'Hello world' on the screen, right? When you do print 'Hello world' or whatever is the equivalent on Lambda, like what actually happens and how do people be able to see that?

  36. B

    Yeah, so in general, AWS services all log to the same logging product, which is called CloudWatch. In CloudWatch, let's say if you output something to the console from my Lambda, you will get that and you'll be able to see that. I think the main thing is that you're getting a lot of things into there, but it exists. It's just like you're not logging into a server to check the log file on a server or SSHing into a server. You go to an as-a-service logging system called CloudWatch, where they are getting all the logs from everywhere, all the services aggregated and allow you to work on it.

  37. A

    Got it. Got it. Okay, that makes sense. Cool. And so, yeah, I see your point. So now it almost becomes like, and I think you mentioned Elastic earlier. Yeah, it's almost like you need a search engine for your logs because, you know, you're doing things at such an extraordinary scale that it becomes very difficult to, like, you can't just read all of it.

  38. B

    Exactly. You need a search engine, and you need a way to search by, like you need the request IDs or the trace IDs to know what to search for. So exactly. Got.

  39. A

    I see. Oh, now it makes sense. So basically you say, okay, in Elastic or MySQL or one of these things, you say, you know, give me all of the logs from this request ID, you know, let's say sorted by time. And now you see a whole window of this request ID that might span many different Lambdas and machines and operating systems and everything. And maybe even the browser, if you're pulling, if you're dumping logs from a browser, you know, to the server. And so you can see this whole history, like, okay, on this machine, this happened; on this machine, this happened, you know, over here, you know, in this service, this happened. And then there's a crash, and I can kind of watch all of it. Exactly.

  40. B

    On this non-machine, but exactly.

  41. A

    Yeah, yeah. And all of that is on a separate, yeah, serverless thing. So actually, what about crashes? So if something crashes in any of these things, like in a Lambda, what actually happens?

  42. B

    That's a great question. So this is where things get, I would say, kind of like Twilight Zone. Because I think, as you mentioned at the beginning, there are servers. And basically, Lambdas are running on top of—in the case of Amazon, on top of AWS container, where you don't have access to; you don't see it, which is running on a virtual machine on EC2. And that's software. And that EC2 can crash. That EC2 can run out of memory. The containers can crash. And that's really the infrastructure of the Lambda. So first of all, it happens. I want to say very clearly: nothing is bulletproof. So it happens to any cloud provider. And some cases, at the beginning, three, four, five years ago, the request execution of the Lambda actually disappeared all of a sudden, which was very frustrating because you couldn't even track what was going on. You didn't know there was a crash; it just disappeared. This got better, and now you got more indication that there was a problem. It's not solved yet. But again, these are the places where tooling allow you to understand what happens. So monitoring tool—you know, Lumigo is one of them. But others are allowing you to, they identify such cases, and they let you know there was a crash over here with this Lambda, even though maybe the cloud provider didn't report, couldn't get it to report because everything crashed over there. But since this is an external vendor, external service seeing, you know, like starts and doesn't see end, can identify this never ended and there was a crash. And we'll talk about that.

  43. A

    Oh, interesting. So got it. Okay. So if like your Python program throws an exception, and so this is like a relatively benign crash, then in this case, I guess CloudWatch, you might be able to see in CloudWatch, you know, that Python failed or something like that. But you're saying, you know, it could get even more gnarly where something crashes—you know, your program might have been fine, but something crashes environmentally. And that is, yeah, that sounds really difficult to debug. And so you're saying some monitoring tool can say, well, you know, I'm following this request, and I'm watching out for this request. And, you know, I didn't see a crash, you know, on our end or anything like that. I just saw this request disappear. And so, you know, maybe we need to rerun it. Or there are all sorts of different mitigation strategies, but at least you have visibility into that. You can say, okay, I'm sure, you know, it's been three hours. You know, I'm sure something unhealthy has happened with this request.

  44. B

    Yeah. And to your point, since Lambda today only runs 15 minutes, then, you know, you can know that after 15 minutes, it's worth this.

  45. A

    Yeah, that makes sense. Totally makes sense. And so what about like, you know, I know for, you know, doing mobile development, there's things like Bugsnag, Rollbar. There's these things that can, you know, package up exceptions and send them to a server really quickly before the machine dies, right? Or before your app dies. And so is there something like that for Lambda, something where, you know, I can get all of the crashes in some kind of dashboard?

  46. B

    Yeah. So I want to say that, you know, I think your point is very valid. Those needs doesn't go away when you go serverless. You still need, you know, very detailed information and fast about every exception. The main thing is that you need to get the context. You know, one service out of 100 failing. What does that mean to my application? You have to have the connectivity, the distributed tracing. So you need basically both. It's not that, you know, this retracing solved that and you don't need Rollbar or Sentry or others anymore. You need everything. So this is why, you know, things are getting more and more interesting and complex. And yeah, there are the modern tools that are out there dealing with serverless monitoring and serverless distributed tracing will do both. Will basically perform the distributed tracing, showing you an end-to-end story of every request. Will show you dashboards of health exceptions of the application, like you mentioned, and also of the infrastructure. Will show you different, you know, timeouts and things that are really common in those environments. And number three will allow you, like you mentioned in Rollbar, to drill down into a specific exception and get all the details that you need in order to understand the root cause, you know, and go upstream, understand what happened and fix that. So this is really what the industry is experiencing in terms of what's changing in the realm of monitoring. We see that kind of like coming together of the different domains, and you're starting to see modern tools that encapsulate all of those.

  47. A

    Cool. That makes sense. So we could jump into—I think we should end on monitoring and securing. But before we do that, we can put a bookmark in that for the moment. Let's jump into securing Lambdas. So I know that there's VPCs, there's Virtual Private, what's a C for? Connection or network?

  48. B

    No, cloud. Cloud.

  49. A

    Oh, cloud. Okay. But there's these Virtual Private Clouds where, you know, it's, you know, you have your own protected address space. And so people can't just call your Lambda with arbitrary inputs and all of that. So from a networking perspective, I can see that as, you know, obviously be super important, but also like pretty comprehensive. So what other things that people need to do, you know, to keep Lambda secure so that they're not, you know, leaking really important information or allowing intruders to call their functions and, you know, DOS attack them and stuff like that?

  50. B

    Right. So, I think the main concept with microservices in general and Lambda specifically is to be very aware and to have a well-defined roles for every service, for every microservice. So my service is doing, you know, let's say your example, my service is allowing a picture to be uploaded to the website. That's what my microservice does. It's one out of 50 that allow my application to run. And if that's my sole definition of the microservice and it's not allowed to do anything else. It should be very strict. Then I can also apply very strict security policy to that microservice because there's no reason for that microservice, let's say, to access some remote server. And there's no reason for that microservice to start sending information. So by having microservice environments and specifically with Lambdas, for example, by having a very clear task of what that Lambda does, you can define through security groups, through IAM roles, which are different security definition—very granular, least privileged security concept or rules for that service. And then when this is like, you get the example with a container, when it's very clear and kind of packaged with a security, then I don't really care if that resides within a VPC or outside of VPC has access to the world or not, because the security is very, very tight and goes along with that service. So that's a concept of security for microservices that is very, very popular.

  51. A

    Oh, that makes

  52. B

    sense. Yeah, I didn't think about that, but

  53. A

    Yeah, that makes a ton of sense. So basically you have these different identity roles. And so, for example, the queue which queues up images to be scanned for faces, you know, that queue might require it to add or remove from that queue might require a role, like the scan faces role. And so most of the system, most of these microservices, you know, they don't have that permission. And so, you know, yeah, this, you know, you hear so much about, you know, people they hack into, and actually I think Patrick, I think we have lined up in the future someone who actually is a white hat hacker. I think that's the term, like someone who hacks things but for to cause good, to kind of help, you know, secure things. But so Patrick, I have no background in hacking or anything like that, but you know, you hear stories of, you know, they come in, they hack and then they get everything. It's like, oh, they downloaded your entire source code repository and your whole database, or MySQL dumped your whole database. And they have like, they have everything and they ransomed all your machines. So you have to pay them Bitcoin to get them back. And so, you know, serverless seems like, we talked about how, you have this, all these sort of complexities because of the distributed nature of it, but it's also, you know, it can even be sort of self-healing where if you start getting a lot of errors saying, 'Hey, so-and-so service is trying to access all of these things and they're getting blocked.' You know, you'd have some count of how many access control violations. If you see that go through the roof, right away that you need to lock everything down. And so it seems like if you go serverless, you're inherently just much more protected from some of these massive attacks. Like you hear, like there's the one on Target last year. And so you can avoid a lot of that.

  54. B

    Yeah. I think that you need to be aware of that and think about that in order to be really protected. And I'll explain why because one of the promises of serverless is you don't need to deal with scaling. You know, we got you covered, say saying AWS, Microsoft, Google. And this is great because during the night nobody accesses my site. So no point for me to pay for a server. And during the day or during a Black Friday in my sales picks, you know, and goes like 500, 500 acts of what I do. So, and I don't want to keep servers up and running all the time. So it's really adjusted, but at the same time, attacks and Black Fridays can look very similar. And the cloud provider will allow you to grow. So sometimes we have the notion of serverless environment that there's concept of insecurity called the denial of service, where you try to attack a server and they try to take him down by flooding him with requests until he cannot serve legitimate users. In serverless, that usually doesn't happen because you'll get more and more firepower from the cloud provider. It will just cost you more. So some call this denial of wallet instead of denial of service.

  55. A

    I was thinking denial of credit score. Yeah.

  56. B

    Yeah. Yes. That might also be good. But my point is that you can adjust with it. You can handle this. Like you can decide where are my limits. And it's very easy to define the limits. You probably need to have again monitoring of your costs to raise a flag when you go high wire and 'Hey, something wrong here,' and get a paid duty about that. But the only thing is this is not out of the box, but out of the box, you need to have this mindset like you mentioned in order to be aware that I need to think about that and implement something.

  57. A

    Yeah. That makes sense. That's a really good call out. Cool. Yeah. We touched on a lot of really good things here. So let's dive into Lumigo here. So, you know, we talked about how to monitor. We talked about the breadcrumbs and the request ID. And so what does Lumigo do to make a lot of this kind of easier for folks?

  58. B

    So I think, when we started Lumigo, this is exactly what we had in front of us. Like seeing all of this, everything, all of our talk actually is complex. It's complex to implement, especially if you're not expert in this. And honestly, most people have so much to do that they shouldn't be dealing with that. They shouldn't be dealing with their business logic, except exactly like what the service concept is about. So we built Lumigo with that mindset of making allowing the team, the developers to get that offloaded to us. So we are with Lumigo, we allow you to have this breadcrumbs or end-to-end view of every transaction. And we developed the technology to do that without any code changes on your side, without any change to the data, and without deploying agent, which is sounds really weird because how do we do that? That's kind of like the first thing that the

  59. A

    developers asked me. Yeah, definitely.

  60. B

    Yeah. So it's a lot of algorithm, deterministic algorithm that we developed over the last three or four years that allow us to basically understand what transaction looks like and find unique identifiers of transaction. Even if you don't want to add a request ID along the way. And this is the core deep technology of Lumigo. So we managed to do that for you without touching code or data. And that's the magic. And we do it to all the main

  61. A

    services today. Can you double-click on that? Because I'm trying to wrap my head around it. So, okay, so I say I want to upload a photo. So your user ABCD says you want to upload a photo. The request comes in, the photo gets uploaded to some S3, you know, signed URL or something. And then now, you know, we kick off a bunch of serverless—we put a bunch of things onto a queue saying, 'You know, crop this photo 10 different ways,' you know, look for faces in the photo, right? And so I feel like if you don't put, and so those serverless functions, because of the encapsulation we want from—we talked about earlier—they don't necessarily even have the user ID who wanted to upload the photo in them. They just get a request, 'Here's a photo.' And so I feel like, yeah, if you don't put the request ID, it seems almost impossible to connect the dots, right?

  62. B

    Yeah, you're absolutely right. So first of all, that's the magic. And let me now take the charm of the magic and explain how we do that. Okay. But don't tell anyone.

  63. A

    All right, yeah,

  64. B

    No one's listening. Just kidding. The main concept is, and by the way, just before I hit that, think of that: if let's zoom in on what you mentioned—writing the image to S3—and that triggers some Lambda to start working. Even if you want to get a request ID across, you can't, because that's a file. Where do you put a request ID to go across S3? Right? Ah, yeah, right. It's a big problem regardless, even if you want to do that in a service environment; that's really, really.

  65. A

    Yeah, just to explain it real quick. So, you know, the way things work when you upload things like photos and videos from your phone, it doesn't go through a server. So the server that's serving you this website or whatever—they're not actually taking your entire video and moving it into S3 for you. They're giving you this what they call a signed URL. And so they're basically giving you permission to directly upload something to Amazon. And so, and then the Lambda, you know, something we didn't cover, but Lambdas are triggered. And so the trigger can be based off a message that's sent by something else, or they can also be triggered off changes to your S3 or changes to your environment. They can be triggered off a change to your database. And so, you know, as Erez was saying, you know, this Lambda fired because it saw a file in S3 and it has no idea how that file got there.

  66. B

    Exactly. And even if you want getting a request ID to us—it's not your API, it's not your server; you cannot implement that. Yeah. And the way we do it, you know, we have a lot of cybersecurity expertise and backgrounds, and we found a way to identify that the request, you know, the file that was written has some attribute as part of it. There are metadata of the request. There are actual data points going in. And all of this exists also and available for the Lambda that gets triggered from the fact that that file was written to S3. So that information is available from both sides of S3 for someone, you know, some platform like Lumigo, and through algorithms that we develop, we were able to infer just by looking on the existing data, metadata, and other signals that this is the same request. Okay. So we infer that we kind of build this, call it virtual request ID that doesn't exist anywhere, but we know that it's the same request and it's 100% deterministic. So that's, you know, it's very, very technical. So sorry for that, but that's a really—no, that's super cool. Yeah.

  67. A

    Yeah. I mean, I mean, I think like one simple way to think about it. I'm sure this is not—I'm sure what you're doing is more complicated than this, but you can imagine the system that gave that person permission to write to that file. So that request, if we have that information, then maybe that request has a user ID in it or something like that, or at least, you know, we can remember that request. And then when we see the file show up, we can sort of connect the dots that way. But yeah, it's to your point. I mean, you know, to do it in a way that it's one thing if you're building the program, but to do it for somebody else and you don't know what program they're running, that I think is really challenging. So that's pretty wild that's able to do that. Yeah.

  68. B

    Yeah. And that's, you know, it took us a lot of time. It took us almost three—more than three years to build and cover all the services. And I think that's one core of what Lumigo does. So basically simplifying this after five minutes, no code changes, no deployment, no agent. You have a full view of your let's call it AWS architecture and request end-to-end. Every request you click on it, all of a sudden you see dozens of services align and you see the request story from one end to the other end. And that's one core. The other is what you mentioned is about identifying issues. So we know to alert when things go wrong. So it's application issues, it's infrastructure issues. You mentioned the crashes that are elusive in the infrastructure, out of memory latencies—so many things that you need to care about in serverless and microservice environment. We got this out of the box. So you get alerts, you click on that, you dive to see the request end-to-end, you see the actual data passing across because we record the data. And by having this as a developer, usually it will take you minutes to figure out what the root cause and plan effects.

  69. A

    Very cool. So, so okay, so there's no agent, which is really interesting. So I guess the way that the integration here with Lumigo must be through some kind of like CloudFormation or Terraform or something like that, where we create a role for Lumigo. And then Lumigo goes in and add some services of their own or does how does how do we someone actually get it set up? Yeah.

  70. B

    Yeah. So I think you got it. The main point is a CloudFormation, including an IAM role. So basically when you onboard, Lumigo is a self-serve platform. You know, you can go to and click 'Start an account.' And it's literally four clicks to fully be connected, to connect, to be fully connected. Again, no deployment that you need to do, but what happens is though, for a click is number one, exactly what you said. You click and allow Lumigo to get information from the cloud—your logs, configuration, things like that. An IAM role wrapped in a CloudFormation, exactly like you mentioned. The second point is that Lumigo, you decide which of the Lambdas and services you want to make it observe and to monitor. And on those services, we have an integration specifically with AWS. And that is called Lambda Layer. And this allows us through code libraries to listen to the requests going in and out of every service. And through that, allow us to do the magic of connecting the dots, identifying, allowing you to see what data passes. So those two concepts are what's really building the technology, allowing us to show you all of that. Ah, cool.

  71. A

    That makes sense. And so, what about on databases? Like, can Lumigo connect the dots between Lambda and like DynamoDB requests?

  72. B

    Yeah, that's actually a pretty popular one. So think of a Lambda trying to write, you know, writing a record to a DynamoDB. And this can also trigger another Lambda to do something else. Right? Yeah. So it's exactly the same as S3 concept. It happens to be very complicated in terms of DynamoDB, but it's the same way, you know, as we figured S3, we figured DynamoDB out. And we figured all of the main AWS services: DynamoDB, S3, Kinesis, API Gateway, Step Functions, SQS, SNS, you know, everything that everybody uses—we are able to do that again automatically without the code changes or data changes.

  73. A

    Cool. This is awesome. Yeah, I'm totally going to check this out. Yeah, I have some internal projects I can try this out and report back. Actually, this is something really interesting. So what's the sort of—you know, we have a lot of folks who are, you know, students, college students, high school students, who are just getting started in the field, or who are changing careers. And so, for people who are hobbyists, what are the sort of opportunities in Lumigo? Like, what's the pricing like and all of that?

  74. B

    Yeah. So first and foremost, you know, we built Lomigo initially for the community. So we have a very generous community tier, which is absolutely free. And it's hosted by Lomigo, so you don't need to deploy anything. But if you're a student, if you have a private project, or even if you are one working within your company, and your volumes are low—less than 150,000 requests per month—you should just connect and run it. It's free. And we have many, many, many such companies and users. And that's a great way for us to contribute to the community and get connected with the community. Again, we don't think twice about whether to use this. Some use it for actually live debugging of their production. Many use it—many students, for example—use it as part of their development process. So if I want to develop something during the development, I want to run a test. And if you run it and just go to Lomigo and try to understand: was it successful? Did it fail? How did it evolve across the different services? This really gets you to debug your dev environment much faster. So, yeah, very easy to start for free.

  75. A

    No, very cool. Yeah, that's awesome. And so the free tier is—is it for like a month or is it unlimited? It's just free as long as you don't exceed the quota. Exactly. It's not limited in time.

  76. B

    It's just... Oh, very

  77. C

    Cool.

  78. A

    Cool. Yeah, I'll definitely check this out.

  79. B

    Yeah, I will

  80. A

    report back on Twitter and let people know how this goes. Yeah, this is—yeah, I have a number of side projects that are really hard to debug that are running on Lambda. This would be really cool. So let's talk about Lomigo, the company, a little bit. How long has Lomigo been around? And how many folks are at Lomigo right now?

  81. B

    Yeah, so we've been around for three and a half years. And we're around—not around. We're 30-ish people now. Most of us are developers based in Tel Aviv in Israel. And yeah, that's us.

  82. A

    Cool. And so are you looking for like interns or full-time folks? And if so, where geographically are you looking and all of that?

  83. B

    Yeah, so we're growing and we're looking for people who want to join. Mostly we're looking for full-time employees. We have the development and product team based in Tel Aviv. And we're always looking for additional people. We're now growing, opening an office or for now virtual office in the US. And we're going to have our sales organization finally starting to grow sales organization there. Cool. Yeah, it's an exciting stage. And beyond that, I am always looking for, I would call it serverless enthusiasts—people that really dig into serverless, that love what it is, the community, that want to be our representative within the community. Help the community: speak in sessions, in conferences, create blogs. A lot of our work is toward the community. We have a lot of insight to contribute to the community. So I'm always on the lookout for either people that want to do this—freelancers or full-time. But if you love serverless and you're doing something interesting, that's something that I would love to hear about. Cool.

  84. A

    Yeah, I mean, this is something that comes up in a recurring way. And so it's really good just to, you know, for people who are listening—maybe this is their first episode they've heard. But really for everybody, you know, if you want to get into this industry, build lots of cool stuff. I mean, that is, I think the eternal advice, right? Is, if you want to decide which programming language you want to learn first, well, build something. And then kind of Google around like, okay, other people have built similar things. What language should they use? Kind of always start from a goal. So if you're interested in doing monitoring and serverless, and if this stuff really fascinates you—and sort of being sort of this phantom of the opera, but instead of a million different organs or keyboards, you have a million different Lambdas. And you've sort of mastered this craft that, start building stuff. Especially with Lambda, the AWS has a very generous free tier. Lumigo has a very generous free tier. There is nothing stopping anyone out there from building something. You could build a website that could scale to handle a million people a month without having to do a whole bunch of extra work. You could build something just you and your parents like. And then if it goes viral tomorrow, it still works. As opposed to half of these Hacker News articles where they go viral and it kills the site. Your site won't do that if you build it on serverless. So, definitely, folks out there, check this technology out. I think it's awesome. So, what is something unique about Lumigo, the company? Is there something that is like a retreat that you all do that's really unique? Or is there something, maybe the way the desks are lined up or the way the company was founded? Some kind of cool tidbit about the company.

  85. B

    Well, that's a great question. I think maybe—I don't know if that's as cool as you hoped for—but I think what makes Lumigo at least today different is that almost anyone in Lumigo, in almost any service, any department, is an active or former developer. So, and that goes also to departments which relatively usually

  86. A

    are not related to engineering.

  87. B

    And that's just because that's the core community. That's the people that we interact with. That's our—so that's a really interesting, I would say, profiles that you see in Lumigo, the same type of background of people. But maybe a developer decided he wants to do try sales or try marketing or try product. And that's, I think what Lumigo is, is still a bit different. I'm not sure we can maintain that as we have 100 or 200 employees, but we're still very, very much differentiated.

  88. A

    Cool. That's awesome. Yeah. I, yeah, it totally resonates. I think that I love companies like this. They're like they are to really support developers because you really feel like you're kind of helping your own and you're sort of like dogfooding something. You're building something that you would want to have yourself, which

  89. B

    is really cool. So, exactly.

  90. A

    Great. Yeah. Thank you so much. I mean, I think we did an awesome job covering serverless. If folks out there have any questions or if they want to get on this free trial or if they want to ping you about something that you talked about and kind of follow up, what are good ways to reach Lumigo and also good ways to reach you? Yeah.

  91. B

    Yeah. So, if somebody wants to try out Lumigo, you can just go to our website and click on Start, and it's super easy. You don't need to talk to anyone, and five minutes to connect, and that's free for the free trial. So you can just go into that. If you want to ask deeper questions on serverless on Lumigo or in general on this domain, please ping me. I really enjoy talking to more and more people in our community, and we love to help where we can because we have a lot of serverless expertise in Lumigo. We have what's called Serverless Heroes by AWS within the company. And we actually managed to help from time to time not just to our customers and users. So feel free to approach with any question. The best way to reach me would be through either LinkedIn or Twitter, sending a direct message. That would probably be the easiest.

  92. A

    Cool. Yeah. And we'll post in the show notes, the website, and also your contact information and all of that. So check out the show notes for all the details. We'll also post where you could get on the trial and everything. Cool. Thank you again, Eros. This is an amazing episode. We covered a ton of really good topics here. I guess just the last bit of takeaway from my end, and then I'll hand it over to you, is definitely start with serverless. It can feel overwhelming because you don't have just a console right there. You don't see the logs right there. But I can tell you as someone who's built a lot of different things, it's so much easier to maintain. And in fact, the things that I've built on the cloud are still there. And a lot of the hobbies that I've built on my desktop—even the desktop doesn't exist anymore. It's just in a trash heap somewhere because it's 20 years old or something. So your hardware fails. Serverless stuff seems to last a long time. And operating systems change, but your serverless function is containerized. You don't have to worry about that. So check it out. Definitely, definitely good to learn. You could be a beginner. You could be intermediate. One thing I tend to be—I have a reputation of being extremely frugal. And one of the reasons I didn't get into serverless was because I didn't want to pay even like 17 cents a month or something like that. That is ridiculous. So don't be like me. Don't do that. Spend the like $1 a month or $10 a month, or to have something, have the peace of mind, have something that runs in the cloud. They handle so much for you. And for things like Lumigo that are free, I mean, it's a no-brainer. Try this out. But you will have trouble debugging. I mean, I can speak from experience when you're passing a lot of information around, it makes debugging a challenge. But it's a challenge you're going to have to learn if you're going to get a career in this industry. Well, maybe, you know, I know Patrick does a lot of embedded stuff. So he might scoff at that. But, you know, if you're building a website or building all these big services, you know, that's a skill you're going to need to learn anyways. And so definitely try this out. And Erez, I'd love to head off to you. What are your sort of closing thoughts?

  93. B

    Yeah, I really want to echo what you mentioned. You know, starting with serverless. First of all, it's fun. So go try it because it's fun. It's fun seeing how fast you can build things. There are great, great workshops out there. You know, you can take a two-hour, three-hour workshop that really takes you step by step on. And all of a sudden you have an application that, you know, order taxis or something. And it's only took two hours. Then you can. And that's simple. And that's straightforward. And then you basically, a lot of people fall in love at this stage and then start to investigate what they can do more. But start small. Try it out. You actually, when it's Lambdas, I think you have one million invocations for free from AWS. So, you know, even Jason, even you can try it without the 70s.

  94. A

    So, yes, I think,

  95. B

    That's what I want to echo. Go and try it.

  96. A

    Cool. Thank you again for coming on the show, Erez. We really appreciate it. Thank you.

  97. B

    Very much, Jason and Pratik. It was a pleasure.

  98. C

    Thank

  99. A

    you.