At Your Serverless

What does serverless really mean? Of course there are still servers—the basics of the internet aren't changing. But what can developers accomplish when someone else handles the servers?

Serverless computing makes it easy for beginners to deploy applications and makes work more efficient for the pros. Andrea Passwater shares how convenient it can be to abstract away (or remove from view) the infrastructure components of development. But as with any convenience, going serverless has tradeoffs. Rodric Rabbah explains that going serverless can mean giving up control of your deployment and restricts your ability to respond to problems—which is why he helped create Apache OpenWhisk, an open source serverless environment framework. And Himanshu Pant considers when to use serverless services.

Serverless computing should be about developer empowerment. But we have to stay curious about the big picture—even as we simplify our toolbox.

Archival Al Gore: 00:03 But now, of course, all over the United States of America and all over the world the internet is revolutionizing our lives.
Saron Yitbarek: 00:13 It's 1998. Google just hired its first employee, and Vice President Al Gore is talking to the press.
Archival Al Gore: 00:22 This technology is still in its infancy. When president Bill Clinton and I came into the White House there were only 50 sites. And look at it now. I got a bouquet of virtual flowers on my birthday.
Saron Yitbarek: 00:37 Okay. I can sense your eyebrow arching already. Why am I playing you some bit of 20-year-old internet history? It's because I want to remind you that the basics of the internet are still the same.
Saron Yitbarek: 00:51 Sure, there are more than 50 sites now. I get it. But, we're still sending virtual flowers. And from a developer's perspective, if you strip away all our incredible advances, you've still got that same client-server model that started it all. A client-server model that allows for a distributed network.
Saron Yitbarek: 01:16 Today, developers talk a lot about going serverless, which sounds like Al Gore's client-server internet just got trashed. And if we're not careful, we can abstract away so much infrastructure that we forget there are still servers out there doing their server thing.
Saron Yitbarek: 01:37 But does serverless literally mean no servers? Really? Or is the developer's relationship with servers just evolving? In this episode, we are talking with people from around the world to explore this thing called serverless.
Saron Yitbarek: 01:54 I'm Saron Yitbarek, and this is Command Line Heroes. An original podcast from Red Hat.
Andrea Passwater: 02:03 Did you know wireless internet has wires somewhere?
Saron Yitbarek: 02:06 Andrea Passwater works for a company called ... Wait for it, Serverless. They created a popular, open source framework for developing serverless applications. Andrea is noticing how organizations are hungry for ways to abstract away infrastructure, which is what that magical word serverless is always promising.
Andrea Passwater: 02:28 I think the term is mostly just supposed to convey the fact that as a developer who works in serverless applications, that's abstracted for you. You don't have to worry about those servers. You just get to code and deploy that code up to a cloud provider and not have to worry about the administration. That's really what serverless means.
Saron Yitbarek: 02:49 For Andrea, the attractions of serverless are pretty obvious.
Andrea Passwater: 02:53 If you develop applications in a serverless way, it gives you the ability to not have to think about the mundane parts of deploying that application and maintaining that application. It just means that you can focus on business value. You can focus on being creative.
Saron Yitbarek: 03:12 And another big serverless bonus is you're less likely to find yourself reinventing the wheel.
Andrea Passwater: 03:18 Why would you create your own way to handle authentication when services like Auth0 exist that you can just use and tap into? At the end of the day, serverless is about giving developers the opportunity to be able to more easily and more rapidly build all of these ideas in their heads that they want to get out into the world.
Saron Yitbarek: 03:41 Imagine you've got your arms full of groceries, and you're stumbling toward a door. The door slides open in a simple, friendly-
03:50 Allow me.
Saron Yitbarek: 03:51 ... kind of way. That's serverless. It's opening the door for you, making development a lot less cumbersome. In fact, as organizations flock toward hybrid cloud setups and the serverless movement gets underway, the barriers toward development are vanishing.
Saron Yitbarek: 04:09 Andrea has been hearing a lot of talk about non-developer development.
Andrea Passwater: 04:15 Sort of stories from people who traditionally thought they couldn't code, and who are now actually able to get into the software engineering game because of serverless. And able to make these tools that automate their own workflows and stuff like that. It doesn't matter what job you do.
Andrea Passwater: 04:31 There's something you do on your job that is so rote, like you do it every single day and it's this thing that you're like, "You know, couldn't a computer do this for me?" I started to feel that way. I happened to work at this company called Serverless and they were like, "You realize that the product we make can help you with that. Right?"
Saron Yitbarek: 04:50 Andrea figures that pretty soon a lot of people who never considered themselves developers are going to realize they can build simple apps themselves. At essentially no cost.
Andrea Passwater: 05:02 With Lambda, I've never had to pay for any of these small applications that I've made. I can make these bots that do part of my job for me, and I can become more efficient at my job, yes. But, I also don't have to do that boring stuff anymore. I can do something that's more fun.
Saron Yitbarek: 05:17 Even for pro developers, that automatic door effect is pretty tempting in an arms-full-of-groceries kind of world.
Andrea Passwater: 05:25 I think people are very attracted to the idea that they can get prototypes working with a one- or two-person team in a very short amount of time. Like, a handful of days. They can get a prototype up and running. I think it makes it very exciting for people to start realizing that they get to just focus on what drives business value in their application, or for their product, for their company. They get to focus on that business value.
Saron Yitbarek: 05:54 I'm going to throw another term at you. Ready? Functions-as-a-service. That's the offering at serverless places like AWS Lambda, or Apache OpenWhisk. Functions-as-a-service means a single function can be executed on demand, only when triggered. And that's a lot more efficient.
Saron Yitbarek: 06:15 Plus, I'm way less worried about compute capacity and run time. End of the day, that serverless deal can be a pretty sweet setup. In fact, some folks have even started wondering, are we going all in on serverless? Does it maybe replace containers?
Michael Hausenblas: 06:34 I see the point.
Saron Yitbarek: 06:35 Michael Hausenblas is the developer advocate for the OpenShift® team over at Red Hat.
Michael Hausenblas: 06:41 If you look at all of these things we have here, OpenShift and Cloud Foundry and what not, you have essentially these abstractions. This idea that the Heroku, essentially, bent it more or less. Right? This very simple way of, don't worry about how the execution will run, don't worry about what it looks like. Just give us the code and we take care of the rest.
Saron Yitbarek: 07:03 Yeah. That sounds pretty good. It kind of sounds like that dream of a “noops”environment. Where everything is automated and abstracted away. It's like the developer's version of minimalist interior design. Nice, clean surfaces.
Saron Yitbarek: 07:21 But, Michael wants to give you a little reality check.
Michael Hausenblas: 07:25 No ops! Right? You know, it magically just will somehow go away. You see these jokes on HackerNews and Twitter, and wherever. Serverless, of course there are servers! I know, of course there are. There's operations.
Michael Hausenblas: 07:39 Someone has to do that, someone has to rackthe servers. Someone has to patch the operating system. Someone has to create containerimages, because guess where these functions are executing? Of course, in some kind of computer.
Saron Yitbarek: 07:54 It's not a zero-sum game. Functions-as-a-service don't outright replace containers. Instead, they add a tool to the tool box. And I've got some more news for you. Using that new tool, going serverless doesn't just mean the ops is somebody else's problem. You've still got ops of your own to think about.
Michael Hausenblas: 08:14 You see there is operations bits on the infrastructure side. But, also with the developers. If you're in an extreme case, using let's say Lambda, then you have zero access to any kind of administrators. Right?
Michael Hausenblas: 08:29 You cannot simply call or page an infrastructure administrator. Obviously, someone in your organization has to do it. But, I fear that many organizations only see it's so simple and cheap. We don't need to move this, and this, and this. Then forget about who is on call, and who really is on call? Do you have a strategy for that?
Michael Hausenblas: 08:52 If no, then you might want to come up with a strategy first before you go all in there.
Saron Yitbarek: 09:00 Someone needs to be on call. Even if you do go "serverless,." you still need to have your head wrapped around that bigger picture. You still need to get your operations in order.
Saron Yitbarek: 09:24 When I threw out that term earlier, functions-as-a-service, did you cringe a little? Over the last while cloud-based development has brought us an army of “as-a-service”terms. We've got infrastructure-as-a-service, we've got platform-as-a-service, we've got software-as-a-service, data-as-a-service. Database-as-a-service. You get the idea.
Saron Yitbarek: 09:48 If you're having trouble keeping the differences straight, you're not alone. That's why we tracked down Himanshu Pant. He's a tech lead at the Royal Bank of Scotland, over in Delhi, India. He spent years parsing out the differences here.
Himanshu Pant: 10:04 These other computing paradigms are so similar sounding in name to serverless that one tends to forget, or tends to get confused as to why, this is not being called serverless. Or why this is being called a serverless.
Saron Yitbarek: 10:20 So, serverless is not the same as containers. Serverless is not platform-as-a-service. But Himanshu wanted to nail it down. What can functions-as-a-service provide, exactly? And what can't it?
Saron Yitbarek: 10:35 He shared two anecdotes with us, two times when he figured out when to go with serverless and when to forgo. The first moment came during a 24-hour hackathon. Himanshu was trying to make a chat bot.
Himanshu Pant: 10:49 There were various vectors on which this was going to be a sales. For example, that coverage of logic, the cost which would be incurred and the scalability. I sat down to do this work in serverless.
Himanshu Pant: 11:04 As I did, I realized that cost aspect was one aspect, which kind of really tippedthe skill in my favor. So even though all the other participants, they had a much better ... I would say coverage, or maybe coverage of logic. The NLP situations or their scenarios.
Himanshu Pant: 11:19 But, as far as cost is concerned, and scalability, I was going hands down to win over there because with serverless it all depended on how many invocations people are doing on that chat bot. Accordingly, the functions will be triggered. This was one use case when I was very much happy to do serverless, because of the cost—there was no cost. Faster development time, and to be honest, it was not exactly a production-scale workload at that moment.
Himanshu Pant: 11:45 I could make do with the somewhat infant tooling of the platform. It was a win for me.
Saron Yitbarek: 11:52 Nice. That was a time when serverless madesense. But at the bank Himanshu is working in right now, they're migrating their systems from legacy to cloud. And that's bringing up different kinds of goals.
Himanshu Pant: 12:07 We are trying to see which workload can go on to which paradigm. I should just go into IS, BAS, FAS, obviously the ones who come down to enterprise space. You need to see that there are no aspects, like number one, let’s say vendor looking. And number two, that technology should be proven, extensively. More so for a risk-averse industry like, you know, the banking sector.
Himanshu Pant: 12:30 This is where a platform-as-a-service, but still has a better proving, and a better capability, and a better tooling kind of takes the upper hand.
Saron Yitbarek: 12:40 Himanshu is looking at his own needs, and his own comfort levels, and curating which workloads make sense in which cloud computing paradigm.
Himanshu Pant: 12:49 Let's say a listener is working on a trading shop, and he wants to build something, just an entry one. For him or her, serverless may not really be apt because the latency may not really be desirable in that kind of a machine-particular application.
Saron Yitbarek: 13:05 End of the day, it's a measured approach. Instead of throwing everything into one bucket. When we're thinking about which cloud-based architecture is actually right for the work we want to do, there's one more thing to consider. How all that abstracting, all that taking things off your hands, can end up changing not just our work lives, but the finished work itself.
Saron Yitbarek: 13:31 Abstracting away part of our workload can mean less ability to customize. Think of a car you bought off the lot. It works. It drives. But then, think of a car you built on your own. That one works the way you decided it would work.
Rania Khalaf: 13:48 It comes at a cost.
Saron Yitbarek: 13:50 Rania Khalaf is the director of AI Engineering at IBM research.
Rania Khalaf: 13:56 In using these serverless applications, you may not have full control of everything that's going on. You don't have control of scheduling, or when they'll run, or where.
Saron Yitbarek: 14:06 There's a trade off taking place, right? Fine-grain control may slip when you're using serverless.
Rania Khalaf: 14:13 It abstracts so much away from the end-user that if you do want to have more control, different scheduling, more checks and balances, different values on how long a function can run for. So on and so forth. Then you really want to be able to get in there and tinker, and maybe create your own deployments.
Saron Yitbarek: 14:32 That would require something new, though. A new kind of serverless that open source communities are already building for themselves. Rania and her team of IBMers are part of that movement.
Rania Khalaf: 14:44 We first worked on a language that was ... It’s basically JavaScript extensions to let you create these multi-threaded interactive service compositions as a starting point to give you a lighter-weight way. That was around the same time that cloud and microservices and platform-as-a-service were really picking up.
Rania Khalaf: 15:08 Just combining these two trends and saying, there is this idea of being able to build higher order function for many small pieces that may or may not come from you.
Saron Yitbarek: 15:18 Rania and her team were building Apache OpenWhisk. An open source functions platform.
Rania Khalaf: 15:23 With OpenWhisk, from the beginning, we made it open source. A big part of that was to really enable the community to participate with us. But also to peel away the covers. And give control to the people that are wanting to operate their own serverless computing environments, so that they can customize it to their needs. Maybe put in their own controls, see how it really works, and control it better.
Rania Khalaf: 15:54 But, also provide the kind of finer-grain control that people wouldn't have with it if it was only offered as a service.
Saron Yitbarek: 16:03 Giving control back to anyone who wants to operate their own serverless environment. It's next-stage serverless. Joining OpenWhisk, you've got other open source platforms like Fission and Gestalt. We start to see the serverless arena evolving into something more adaptable, and more powerful than before.
Saron Yitbarek: 16:31 To really get why an open source version of serverless matters, I got chatting with one of the founders of OpenWhisk.
Saron Yitbarek: 16:39 Hi, Rodric. How is it going?
Rodric Rabbah: 16:40 Good. How are you? Thanks for having me on.
Saron Yitbarek: 16:42 Rodric Rabbah was one of the three developers who conceived of, and founded, OpenWhisk. Here is our conversation.
Rodric Rabbah: 16:54 It tends to be confusing for others or tends to get snickers, because people tend to think, “How could you possibly compute without servers?”
Saron Yitbarek: 17:02 Right. Server is there somewhere, it's just I don't have to worry about it.
Rodric Rabbah: 17:05 Exactly. That's really the beauty of this model. When you start developing in a serverless style, you never really want to go back. You know, I've been in it for close to four years now,and I've developed some production-quality applications.
Rodric Rabbah: 17:19 This is the only way I develop now. If you tell me I have to provision a machine and install an OS, it's completely foreignto me. I'm not even sure I'd know how to do it anymore.
Saron Yitbarek: 17:29 Yeah. When you put it like that, it sounds like a huge load off,you know? Because when you initially hear of serverless, at least I think, "Man, it's yet another thing I have to learn."
Saron Yitbarek: 17:38 But, when you put it that way it sounds nice.
Rodric Rabbah: 17:41 It does sound nice. Then you have to realize that you have to take a little bit of air out of the bubble. It's not a silver bullet.
Saron Yitbarek: 17:50 What are some of the surprising risks or issues that people may not see or be aware of when they get started?
Rodric Rabbah: 17:58 I think the lack of transparency is possibly the biggest one. It's sort of reminiscent to me of sort of the technology that came about when new languages came about and raised a level of abstraction relative to the computer. It's a similar kind of, sort of, startling effect in serverless today.
Rodric Rabbah: 18:16 In that you write, typically a function, then you just deploy that function. It's instantaneously available to run, say on the web as an APIN point. It scales massively. I mean, you can run thousands of instances without any work on your part.
Rodric Rabbah: 18:32 But, if something goes wrong, it's like, how do I debug this? Or I actually want to inspect the context within which my function failed. Typically, these functions run within processes, are isolated from you—you can't even log into the machine to see where your code is running. They might run in container environments that are closed off. You don't know what's in them.
Rodric Rabbah: 18:53 It becomes hard for you to get that little bit of transparency. This is where tools will eventually help. But, the lack of tools sort of makes that pretty significant pitfall for people to get their heads around.
Saron Yitbarek: 19:05 That was really good. Okay. Let's go back to OpenWhisk, alright? Tell me about that.
Rodric Rabbah: 19:11 The project started right around the time Amazon Lambda announced their offering, which was really where serverless started to get into the nomenclature and started to gain mindshare in the space. When we saw Lambda, we started thinking, “There is a lot of technology here that has to be developed. Not just at the base layer in terms of a new cloud computer, but really in terms of your programming model that you put on top of it to make it more easily accessible to programmers.”You know, coming out of IBM research, we had pretty strong ... Instead of skills around programming language design, compiler expertise, and run time expertise.
Rodric Rabbah: 19:54 A small team of us, basically three people-
Saron Yitbarek: 19:57 Wow.
Rodric Rabbah: 19:57 ... got together to essentially do the initial development and prototyped what became, eventually, OpenWhisk, with respect to the command line tools, which is really the programming interface for serverless today. The programming model concepts, and then the actual architecture that it has to support, essentially, this function of the service model and give you all the benefits that serverless espouses.
Rodric Rabbah: 20:22 The genesis was really Amazon Lambda coming on the scene and saying there's this new model of computing. Pay attention.
Saron Yitbarek: 20:28 How long did it take? Or the first version anyway.
Rodric Rabbah: 20:30 It happened quite fast. In fact, when IBM announced ... Well, it was at the time IBM OpenWhisk. It was one year to the date from our first commit.
Saron Yitbarek: 20:39 Wow. Oh my goodness.
Rodric Rabbah: 20:41 That was quite exciting.
Saron Yitbarek: 20:43 That's really impressive. Actually, when it first started, it wasn't OpenWhisk, it was just Whisk. Right?
Rodric Rabbah: 20:49 Whisk was the internal name, that's right. I'm responsible for the name. The idea behind the name was to move quickly and nimbly.
Saron Yitbarek: 21:00 Nice.
Rodric Rabbah: 21:01 You whip up a function and there it is. You can put it in the oven and bake it.
Saron Yitbarek: 21:07 That's wonderful, because I was definitely thinking eggs when I saw that. I was thinking, let's whisk some eggs.
Rodric Rabbah: 21:12 Right. We've done some positives and some negatives on the name. When we open source a technology, and sort of put it out on GitHub, we put the open prefix on it to sort of emphasize that this is open as in open source and free to use, free to download, free to contribute to.
Saron Yitbarek: 21:32 Yeah.
Rodric Rabbah: 21:33 And our goal in putting it on open source was really to sort of raise the bar in terms of what's available to execute these days as a serverless platform. It was important to us to sort of build a platform that is not only production-ready, and share it with the world,but also to make it possible for academic research or research in general. Maybe coming out of IBM research, we cared about that a little too much.
Rodric Rabbah: 22:00 But, it sort of paid off in that I know of universities that actually use OpenWhisk for their own research—from Cornell to Princeton. I've gone to several universities like Brown, Williams College, MIT, CMU, and I've given talks with the purpose of encouraging students to really look at the problems around serverless and functions of the service. The tooling, the programming model, and get them excited about the technology.
Rodric Rabbah: 22:26 Showing them that there's a path to where if they actually contribute to the open source project, it's picked up by IBM cloud functions and run in production, usually within a week.
Saron Yitbarek: 22:34 Wow. That's so fast.
Rodric Rabbah: 22:36 That's been surprising to some people.
Saron Yitbarek: 22:38 That's a super-efficient process.
Rodric Rabbah: 22:41 It's really a testament to how we develop a lot of technology in the open. It's not an open core model where there are some components that have been held back. What's running in the IBM cloud is really what's in the Apache OpenWhisk project.
Saron Yitbarek: 22:56 When you think about the future of serverless and the options we may have moving forward, do you feel like they will inevitably be open?
Rodric Rabbah: 23:08 I think there's a raging debate these days about the value of open source, especially in the cloud.
Saron Yitbarek: 23:13 Right, yeah.
Rodric Rabbah: 23:15 If you consider why people go to the cloud, or why they might have aversions to go into the cloud, it's this whole concept of vendor lock-in being ... losing transparency. Open source has played an important role in sort of alleviating some of these issues. Then you look at efforts like Kubernetes, which is just gobbling up the cloud in terms of a container and management system. How successful that's been.
Rodric Rabbah: 23:41 If you're doing something that even touches containers, does it even warrant having a discussion about keeping it closed source, giving how dominate it is? I tend to think that openness helps. It's compelling from developers’perspectives.
Saron Yitbarek: 23:57 When you think about the future of the serverless ecosystem and tools, and projects, and services that we're going to see, what does that look like? What does the future of serverless look like for you?
Rodric Rabbah: 24:08 I think you start to think less and less about the underlying technology, and it becomes more and more about the programming experience, and the tooling around it. The tooling for debugging, the tooling for deployment management, the tooling for performance analysis, the tooling for security.
Rodric Rabbah: 24:26 All of these are sort of fundamentally important, I think. The underlying mechanics of how you run your function, whether they run in a container or some future technology, whether you can run them on one cloud, or multi-cloud, I think fades into the background. Kind of like what Kubernetes did for containers and container management.
Rodric Rabbah: 24:46 In a similar way there's a layer that's going to come on top, which is the function of the service layering to give you that kind of serverless notion. Then it's really about what's the new middleware that you're putting on top of it. How are you empowering developers to really take advantage of this new cloud computer and the toiling that you're going to put around it to make their experience pleasant.
Saron Yitbarek: 25:07 Yeah. What does that empowerment look like?
Rodric Rabbah: 25:13 Efficiency, to put it in one word. It's the ability to just focus on the things that are of value to me as a developer, or the value to my company if I'm working at a corporation. It's more rapid in evasion that, then, you beget out of that, because you freed up your brain cells to not think about infrastructure and how things scale, and how things are secured at the hardware level.
Rodric Rabbah: 25:38 Now you can really innovate in terms of rededicating that brain power to just innovating more rapidly, delivering more value to your end-users. I'd lump that all into just better efficiency.
Saron Yitbarek: 25:55 Rodric Rabbah is a founder of OpenWhisk. Remember what I said at the top of the show? That old client-server model that the internet is based on really isn't going anywhere. What's changing, and I mean radically changing, is the way we think about those servers.
Saron Yitbarek: 26:19 In a so-called serverless world, the hope is that we concentrate on the code itself and don't have to worry about infrastructure. But the level of abstraction we select, and how we maintain control over work we don't abstract away, are where that serverless world gets interesting.
Saron Yitbarek: 26:40 Serverless should, ultimately, be about developer empowerment. The freedom from patching, scaling, and infrastructure management. But, at the same time, we have to stay curious about how that big picture works even as we abstract some tasks away. We're going to be asking, what controls am I giving up and what controls do I want to take back?
Saron Yitbarek: 27:07 Next episode it's our epic season two finale. Command Line Heroes is taking a journey to Mars. We're learning how NASA's martian rover is kicking off an open source revolution of its own. And we're hanging out with the CTO at NASA's Jet Propulsion Laboratory. No biggie. To learn how open source is shaping the future of space exploration.
Saron Yitbarek: 27:39 Meantime, if you want to dive deeper into the question of serverless development, or any of the subjects we've explored this season, check out the free resources waiting for you at redhat.com/commandlineheroes. While you're there, you can even contribute to our very own Command Line Heroes game.
Saron Yitbarek: 28:00 I'm Saron Yitbarek. Thanks for listening, and keep on coding.

Keep going

Functions-as-a-Service with OpenWhisk and OpenShift

FaaS can help launch applications quickly. Get started with some open source tools and a quick tutorial.

3 implications of serverless

Serverless infrastructure is changing how people develop software. Find out how and what to consider before going serverless.

Is serverless the next phase of cloud-native application development?

Serverless computing is getting popular?OpenWhisk provides an open source platform to get started.

Featured in this episode

Andrea Passwater

Growth marketing manager at Serverless

Michael Hausenblas

Developer advocate at Red Hat

Himanshu Pant

Tech lead at the Royal Bank of Scotland

Rodric Rabbah

Apache OpenWhisk co-creator, and co-founder Nimbella Corporation

Also in this episode

Get the newsletter

After each episode drops, we'll send you commentary from the Command Line Heroes team, as well as links that help you take a closer look at the topics we cover. It's as simple as that.

Presented by Red Hat

For 25 years, Red Hat has been bringing open source technologies to the enterprise. From the operating system to containers, we believe in building better technology together—and celebrating the unsung heroes who are remaking our world from the command line up.