- Podcasts
- Programming Throwdown
- Reactive programming and the Actor model
Reactive programming and the Actor model
Programming Throwdown
- September 28, 2018
- 1 h 26 min
- Episode 82
About this episodeHey everyone! This episode is an absolutely fascinating interview with Jonas Bonér, creator of Akka. We dive into reactive programming…
Hey everyone! This episode is an absolutely fascinating interview with Jonas Bonér, creator of Akka. We dive into reactive programming, the actor model, and the Akka toolkit. Jonas also describes his journey as a developer that led him to create Akka and found Lightbend with Martin Odersky, the creator of Scala. Jonas brings a ton of in-depth technical discussion, so buckle up! :-) Show Notes: https://www.programmingthrowdown.com/episodes/82-reactive-programming-and
★ Support this podcast on Patreon ★Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Reactive programming and the Actor model
Programming Throwdown Episode 82: Reactive Programming and the Actor Model with Jonas Bonaire. Take it away, Jason. Hey everyone! So we have a really cool interview. I'm sure a lot of you know about Scala, and Akka—you've heard about this, we've talked about this on the show—and we have Jonas Bonaire, who is the original creator of Akka, is that right?
Excellent. Jonas is going to explain kind of reactive programming, the Actor Model. He's going to talk us through sort of that whole kind of revolution. I think it's amazing to do, especially for UI and for a lot of other kinds of processes, to have this sort of model. And Jonas is going to really—he's an expert. He's going to explain it to all of us. So, Jonas, why don't you kind of tell us your background? Why you got know how you kind of ended up getting really into this sort of programming model? Is it something, is it sort of a series of anti-patterns that you saw along the way that made you say, 'Oh, we need to build something new here?' So what was the motivation for that, and what's that journey kind of been like?
It's been, I guess, about 10 years, right? Yeah. It's—yes, it's time flies by quickly. Yeah, it actually started a bit earlier than that even. So my journey into distributed systems and concurrent systems and stuff like that, that's actually really started you know the journey towards Akka and the Actor Model there. And everything started back in I was I joined BBA Systems back in the day, and I—and well, I was working then on open source product Aspect, where as you know aspect-oriented programming work quite popular back then. I don't know if AspectJ and stuff who said Aspect was later merged with AspectJ, and and and etc, right? So there was you know a lot of like bytecode weaving, and having this dynamic capabilities to Java and then anywhere in any language that implemented AOP. But so I actually worked on that open source product while working in BBA Systems, but then I was headhunted by a small startup in 2003 or something like that that used the technology that we had built, which was of course open source—a small startup in the Valley called Terracotta. And they did distributed systems and essentially tried to cluster the JVM underneath the JVM itself to make, I mean, and maintain the programming model of sort of you know threads and locks and sort of stretch that out across a set of distributed nodes and try to do sort of all the messiness underneath to make that work. Essentially, if we should get geeky here, so that the way it actually worked was that you know the sort of locks and sort of memory barriers were sort of translated into sort of transactional scope. transactional scope so it was those transactions that was sort of maintained across across across the jvm and they did that you know completely transparently used to using aspect oriented programming so in that case and
data. Right. Exactly. Exactly. I mean, it's which when I joined the company and actually when promoting it and stuff, and we actually went quite far, you know, you know selling people on the model. But the thing is that it was a completely broken model from the start. And it's sort of like sort of that started to grow on me after you know being out of clients, you know, after a couple of years. And it's and we never really got it to work, you know, no surprise. You know, I'm now a firm believer of this sort of opposite way of approach in distributed systems where you sort of embrace the network, embrace the constraints of the network, and instead of trying to hide it, you know, you know it's it turns if you try to hide it, in my opinion, it turns into this leaky abstraction that leaks so much that it becomes more or less useless. You know, we've seen this many many many times in the past with you know with RPC and distributed objects or XA or anything like that. You know, it's actually it works to the point where it doesn't work, and when it doesn't work, everything falls apart. You know, right? Where you have network disconnection and partial failures, you have really no idea how you can recover from, etc. So so that made me completely lose faith in that model, and actually in general, you know the way I was sort of doing. After that, I was doing consultancy on distributed systems in Java in general, you know embrace CORBA and all the tools that they have—EJB's and all the tools that that they have there. And it started growing, and all of this is just the wrong way of approaching the problem. And I went through this crisis in a way, and I started to sort of dig through a lot of research papers and stuff, and then it started, then you know I chatted with a friend that had been actually all the way since school being programming in Erlang. You know, he went straight to Ericsson. And Ericsson, you know, Ericsson developed this language—this is an esoteric and called quite obscure language called Erlang. And I just when talking with him, I sort of realized that wow, this is the model I've been looking for. I mean, we're we're communication or distributed communication is first class where we have true isolation. You know, failure can't cascade across you know components or across nodes, as we've even seen in often in Java and things like that. And that sort of set me on the path, set me on the path first learning Erlang for real. So I've been tinkering with it back in school, and I of course knew what it was being Swedish and having friends using it, but I've never really took it seriously. But I felt like, of course, I can't program Erlang day in and day out. All my clients, you know, my whole life is served on the JVM. You know, I then okay, then I better find a way to port that model because essentially the model, the principles, they're so good over to Java, and that's why that's how I started Akka, and back in 2008 was that. So oh, I see.
So are there any sort of did you encounter any sort of really fundamental limitations of or say differences between the JVM and Erlang that were like serious roadblocks for Akka? Or was it more of like a just a mechanical like you know day in day out let's get it done? Like were there any like real technical hurdles there?
One of the one of the things that people always tend to point out when they come from Erlang and they're absolutely right about that is that you can't have any—you can't have such a thing as true isolation on the JVM because it is a shared heap. So sort of isolation is only by convention, but so trying to have a program and that sets up the boundaries, and then you serve and tries to make it easy to do the right thing, and regardless even if you use Akka, you can always use reflection and stuff like that to bypass that. And if you really want to shoot yourself, so that's one of the things that's hard. And also you know things like garbage collection. Erlang has a garbage collection, but it has it like per actor. So it's not—it's not that. So you have more fairness because you have control over the garbage collector while in Akka runs on the JVM, there's really no control we have over such low-level things. And sometimes you know it can be more of sort of long latency pauses and stuff like that. But but of course very often those can be mitigated by doing the right thing, you know, and we try to sort of push people in there in the direction of doing the right thing—not creating too much garbage and stuff like that. That makes sense, but still it's not the same. It's not the same thing as an Erlang, you know, where they have full control over everything and the VM is built with actors in mind, which is not the case for the JVM. So in
Yeah, let's spiral back a little bit and talk about, you know, what is the Actor Model? What is reactive programming? Um, you know, kind of how is that, you know, if someone comes, let's say they're in first year of university, they've taken System Software and they've written some code, and then they say, 'You know what is what is the Actor Model? What does'
This mean? Yeah, sure. The Actor Model is actually quite old. You know, I learned it from Erlang, but Erlang took it from papers by Carl Hewitt, you know, and that he wrote in the I think back in the like in early '70s or something like that. I remember the exact date when the first came out—very early in the '70s—and you know, and you know, the Actor Model is it is it is it is like it's a complete computation model, in mentoring complete, like Lamber Calculus or sort of foundational computational model that that has a sort of different, a little bit different take than most of the other ones. It models communication as sort of first-class and communication and behavior, and it's called it it's called the Actor Model because 'actor' is the unit of computation. It's sort of the unit of work or that you have, and and and you know actors are extremely lightweight. At least the I mean, the thing says now we get we're getting down to how how they usually are or implemented, but both both in Erlang and and most C implement implement C++ implementations that I've seen as well as as well as Acca implement actors in the way that they are extremely lightweight in terms of how and how they use resources. You know, for example, Acca can only you can run millions of them on a regular laptop, you know, and they don't consume the reason why.
For people who might not be familiar. So basically you have if you create a thread or even to a greater extent, you create a process, this is actually a lot is happening under the hood. You might say just new thread and it's it seems really quick, or std::thread or something in C++, but actually under the hood the OS is doing a ton of work there. And so you can't realistically create let's say a million processes on one computer. It's just not practical. And so a lot of these you see these green threads or these coroutines, the idea is the system creates let's say 32 threads right at the beginning, and then when you say, 'Hey, I want to do this bit of work on the side,' it just uses one of those 32 threads. It's already been created. And if you try and do 33 things at the same time, that 33rd thing just kind of sits in a queue, and once one of the threads is free, it starts, you know, offloading that.
Queue. Right. Exactly. So that's that's essentially how we implement actors in I mean nothing prevents you from implementing the actors as having one actor per process, but sort of the I think the whole the whole benefit of actors sort of falls apart in my opinion. You know, the actors are so great because they are not mapped to threads that you can easily create, you know, thousands or millions of them and sort of spread them out of the cluster. You know, the way as I tend to look at them is like very similar to how things work in nature, you know, like mapping them to how like ant colonies work, you know, like where you or bacteria or something like that, where you can where you have like you have so many, right? So if a few of them fails, it doesn't really matter because others can take over. You know, where where the failed ones started and sort of without you know sort of really affecting the overall health of the application. And that's essentially how I like to look at actors and why why I see them a really powerful model for the cloud, you know, where we have all these compute resources and all these nodes available. So so but a few other things that sort of are characteristic really important to actors is that you know that all communication is sort of first-class. It's sort of built in into the model. And and and communication is is sort of serve it is sort of it is sort of distributed by nature or by default, where local communication is just an optimization. So it is sort of a unification of distributed and local communication. It means that that means that they both look the same. It looks the same if you communicate with them with an actor that's right next to you or lives in another or another node or in another data center, it looks the same. You know, and this is what we mean what we call location transparency. And and and you know the one of the benefits of that is that if you have a reasonably advanced runtime underneath here that sort of understands, you know, actors are being used and which ones are overloaded, which are which ones are underutilized, which ones are actually failing now and stuff. You know, that runtime can optimize these things by moving the actors around. And and and so this is sort of in my opinion the key to location transparency that the cluster can can sort of re-optimize itself by by shuffling actors around on different nodes without you know the experience of from from the user perspective, the client he never really has to even even even know that that is going that is going on. You know, and that's that's a lot thanks to the dynamicity of the actor model that act that actors can serve. You know, one thing that didn't say is that the way you communicate with an actor is usually through some sort of reference. In in Erlang, you have what is called the PID, the Process ID, that you send messages to. Or can you communicate with it in aka we have what is called the ActorRef. So you never communicate with the actor directly but only through this or proxy or this reference. So this means that the actor can live anywhere, and this in this sort of level of direction also gives a runtime the opportunity to to manage failure in a transparent way by sort of failing over to other actors even on other nodes or to route messages you know to other actors of the same type and things like that. You know. So so so that's a very powerful thing, and this is you know also leveraged in the in the fail in the failure model. So that is sort of one of the one of the key things also that's that I see from from actor the vector model that it has this notion of supervision that actors watch out for each other. You know, there is completely masterless decentralized. There's no special you know notes no special actors or anything like that, but each actor can watch out for other actors, and if there if his buddy sort of dies, he will get a notification and say, 'Oh, your' buddy died. What do you want to do about it? And then he can sort of choose to escalate because it might be, you know, above his pay grade what to do. He didn't perhaps didn't sort of create the actor or and stuff like that, but then escalates up the hierarchy, or he might decide to do something about it and restart the actor or take over his work and things like that. And all that can be done you know thanks to isolation that these actors are completely self-contained or autonomous units that doesn't have any strong coupling with anything else. So so
Basically, the end user could build, let's say, some checkpointing at the Actor level. And then if they say, oh, this person that I was dependent on, you know, is supposed to give me 10 units of work and they gave me five units of work and then died, I could use my checkpoint to sort of go back to an earlier state where that person hasn't given me any work, and then and then reboot them and kind of can keep.
Going exactly, exactly. And things everything. So the way normally organized it is just like an organizational hierarchy that you have, like bosses or whatever you call it. Like we call it the Actor parent. So any actor can be a parent by simply creating workers and by escalating sort of the Actor—whether when you receive a notification message from one of your workers, then you can choose to do something about it or escalate up, you know. And you can also have this sort of sideways error notification because it might not be you that created the actor, but you might be dependent on him, right? Or something like that. So then it's also interesting to get a notification that the worker that you're dependent on, or the actor you're dependent on, failed. And you know, you need to encode this type of sort of a cursor or indexing in the protocol, of course, so you know where you were or where you when you when you when you died. But usually I mean if you retain that information, that can be sort of, you know, sort of relayed up to the parent, and the parent can then sort of kick off yet another worker or and resuming him where the other one failed, so to speak. If that makes sense? Yeah, that makes.
That's a great question that sort of leads into one of the features we have in Akka that's sort of persistent state. It's nothing that's encoded in the core Actor model. Erlang has their way of doing it; they're essentially using distributed database called Amnesia where you put information in, and now sort of a key-value store you can say, just a little bit more than that. But while we have taken sort of another route where we based our persistence on event logging. So each actor, if you choose it to be persistent, has an event log in which it stores the events that it receives. I don't know if you're familiar with Event Sourcing and versus Command Sourcing or so on, but no, I've actually never heard of that, to be honest. Yeah.
It okay. We don't need to go into those semantic details, but essentially what it does is sort of it just it simply logs the messages that come in or the events it creates representing the state change coming out of that or receiving that message actually. So so it might receive a message, it decides to—you know, actors are side-effecting; we haven't said that they're not like purely functional or or stuff. You know, the whole point of actors is to do stuff when they receive messages, so they are side-effecting. And and and so whenever you receive a message, you have the opportunity to create an event representing the state change that you did for that—for the, you know, as an effect of receiving that message. And then we have, you know, a way of logging that event representing the state change to a persistent event log that is sort of replicated and then fully durable, fully, fully decentralized, and all those things. And and since all, you know, all events representing state changes are logged in order as they happen—you know, when an actor fails, what we do is simply replay the event log, bringing the actor up to speed where it was. And the beauty of having this event log is that you can use it for a lot of more things than just bringing up the actor when it failed. You know, you can actually, you know, have other consumers of this event log, you know, for example, replicas that make sure that they sit and read events constantly so they're always hot, or, you know, for audit purposes, you have like a strong audit log everything that went on in the system. You know, you can just go in and see, or for debugging purposes, you can sort of having a survey one actor that's essentially sort of only sits and reads events and replicates them to an external system that you that that you can use for replaying things when things go wrong in. much slower. You can do like event that develop after event as we're debugging the system to find out what went wrong and things like that. So you so it opens up for a lot of interesting things in having this type of architecture with event logging. I believe. Yeah, yeah, that.
Totally makes sense. So so what's the connection between, you know, the Actor model and reactive programming? So reactive programming, as I understand it, I've used a little bit of Angular and some React JS and things like that, and basically in this environment, you have you have parts of the website are sort of just monitoring for variables to change. So for example, a very simple example: you have some Angular website, and you say at the top it's going to say 'Hello Name,' and maybe at the very beginning, you don't know the name is just empty or null or something like that. But then very quickly, you know, the name gets populated, and then as soon as that happens, the 'Hello Name' is monitoring that variable, and it says, oh, the name has changed to Jason, so let's put 'Hello Jason.' And this all happens so quickly that there's probably no rendering along the way that people don't notice that's what's going on. But under the hood, there's a lot of like monitoring and sort of triggering, and so that's that's sort of how I understand Angular. Like how does—how does that reactive model kind of compare or how does that you know work well with Actor? Yeah?
that's a great question you know first i would have to say that you know reactive is starting to become a sort of quite overloaded word it means a lot of things you know you know people have one context or one one way of uh mapping that or or it means one thing to for some web web developer another thing to to perhaps a low level uh uh systems programmer etc etc and the way and the way and the way i look at it is that it's sort of it i see it as two different categories you know the way it's sort of the whole family of reactive i see it as two different things first we have reactive programming and we can talk i can briefly explain what that means at least what i think it is but we also have what i what we usually call reactive systems and and and and and i think i see them as two different things you know and one is for local uh for programming local things you know uh while the other one is to model distributed systems or distributed community communication and and one is a subset of this i see reactive programming is a subset of reactive system but if we start i can get back to reactive systems but if we if we should start with with reactive programming and so so you know reactive programming is really about sort of i see that sort of variation or or a subset of asynchronous programming you know where where the whole idea is that the availability of new information drives the logic so you have this sort of data flow graph you know that's extremely lazy that doesn't do anything unless the information is is available and then in you know and and when as soon as it's available it flows downstream like like so triggering a bunch of behaviors or changing data flow of variables and things and things like that so it so it sort of allows you to decompose the problem into multiple sort of discrete steps they're well defined uh and each step can be executed in the fully asynchronous and non-blocking fashion which is which is great like maps where very very very well to modern hardware like multi-core and things like that and then they can be recomposed to produce a workflow or or as i said a graph and it sort of is there and and it usually you know reacts to sort of completely unbounded flow of information of like a stream of information so there's really no end to it it just reacts to to its environment so to speak and reactive programming as i said it's it's usually meant for the way i actually i see it as at least it is that it's it's for local it's a model local local computation it doesn't really have a distribution model so it's it's more event driven than than sort of message driven i i we perhaps don't need to go into all the semantic differences between them but the way i view it in short is that event driven is like you simply just sort of sort of emit sort of events to whoever is interested you know in in in can be zero can be can be 200 can be a million it doesn't really matter and and the guy emitting the event really that doesn't know and it all sort of serves or is emitted in a fully local fashion while while message driven is is really about direct communication between parties so it models sort of direct addressable communication you know who you're talking to and why etc and and that that that means that you can actually use it to to cross address boundaries while reactive programming is really all within one one address boundary that makes sense but but sort of the the the different apis if we should talk concrete in a programming model perspective so the the apis is is is you can sort of categorize into two different groups i mean one is sort of callback based that's sort of this this old node model you know or old you know it's like older than that of course but not popularized that you know we're we're absolutely this event loop uh it was our anonymous side effect and callbacks or you know the sort of reads event from event sources uh and and but the other one that's sort of becoming more popular now is is a more declarative model where you were used functions you use function composition and and and you know things like map and filter and fold and things like goodbye and you know these things and and that's sort of the approach that also most of these like like distributed streaming products have have have uh have sort of start to to to to use and and and no surprise i think because i mean i i i definitely favor the declarative model because it allows for for composition while the callback model is really hard to compose and it's really hard to do error handling with with callbacks etc so you know the callback hell and all these things so yeah so we've we've actually seen a lot of interesting products insert the declarative approach to function to to reactive programming you know one is is or none of this is new by the way you know but we've seen it you know uh being being popularized and one is for example futures and promises that's quite an old concept but it's becoming really really popular both in web development as well as systems programming and application development programming and we have them in aka of course in the and the and the other one i will retouch to upon this are streams and and and you can run these streams locally and we we have streams in aka a protocol aka streams that implements the reactive stream specification that all all runs it locally and it's a way to orchestrate workflow you know and and and and and do local data processing in a very low latency high efficient way but you can also do it this in a distributed fashion you know so that sort of sums up my view on on reactive programming i don't know if you want me to touch on reactive systems as well
So, so, React, reactive system is, as I said, I mean it's definitely a superset of React or reactive programming, but sort of tries to expand those capabilities into D Sir into a set of good design principles, I'd say for distributed systems. So we try to encode that in what's called a Reactive Manifesto. It's something I started and then I later have been having sort of evolved through contributions by others, but it's essentially you know to try to come up with the common vocabulary in the set of design principles for building modern systems already for multi-core, for cloud computing, and or you know IoT, you know data streaming, and all of these things. And I always feel inclined to say that nothing of this is new. These principles can be traced back to the '70s and '80s, the work with Jim Gray, Pat Helen, and some of my old-time heroes, and also Joe Armstrong on Erlang. And the foundation for reactive systems is message passing. It's not being event-driven if you should like true semantics because I said event-driven is all about this really doesn't have a way of doing addressing. You can't cross address boundaries while message passing; it's all about sending a message to someone, to a destination. So it's really the best way to model distributed communication, I believe. And you know because I think the key here that message passing—that what we build on when we talk about reactive systems is that message passing really creates this sort of temporal boundary between components that allows them to be fully decoupled. They can be decoupled in time and this is what allows for concurrency, you know, and they can be decoupled in space also. And this is what allows for distribution and mobility and location transparency, as we talked about. This level of indirection and this full isolation that also you know it paves the way for self-healing systems. As a system, you know, you know, you know, recover from failure without affecting other parts of the system. So the Reactive Manifesto sort of ends up with the story of that message passing, you know, can give you resilience through self-healing systems with these isolation properties, all these things as well as elasticity, you know, having to have the system to grow and shrink on demand, you know, to do living up to the promise of cloud computing, etc. So yeah.
A number of questions. I mean, so one question before I jump into a whole suite of other questions is, you talk about the sort of orchestration and of this sort of dynamical system, right? Is there any work on sort of reactive, but any work of sort of like a really advanced sort of supervision? For example, every actor type or every actor implementation, something could monitor those and say, 'Oh, you know, this particular action is very expensive,' and I've learned it's expensive because this program has been running for 10 minutes, or it ran yesterday, or something like that. And so we could plan ahead and say, 'You know, these sets of actions need to run on their own machine because they're super expensive; these other ones are really lightweight.' I mean, my guess is there's probably a lot of—I don't know if it's possible in the context of the JVM, but in general, it sounds like there's a lot of open research around sort of supervising and moving around these actors to get optimal performance.
Absolutely. And we do that to some extent in Aka. I've always been long-term you know the vision that I have. It's long term; I'd like to see fully adaptive systems leveraging AI and all these things. But that's sort of far out. So what we have in practice running today is simpler, you know, metrics-based routers for example that can act upon how sort of we more based on low-level metrics, you know, in latency and throughput and these types of things, and as you say failure rates and things like that. And we also allow us to tag certain groups of actors as high priority or low priority, or give them different roles and things like that. That though can also be taken into account in how you prioritize work across the cluster. But one thing that we haven't said is that I sort of touched a little bit upon it, but one of the really fascinating things with actors is that even if we—even though we implement it in a statically compiled language like Java for example or Scala, we mean the Actor Model by itself give you a lot of dynamicity because the actor when it receives a message, it can sort of redefine its own behavior. and sort of prior to receiving the next message. So it can completely change the way it behaves. And this means that it can actually turn itself—for example, if it feels like it is overloaded, it can itself turn itself into a router and spin up like 20 different routes on other machines even and start relaying. And once the traffic decreases, it just kills them and sort of restores the old behavior doing the work himself. So this is probably contrived example, but this is stuff that—I don't know if that is that contrived, is that things are usually more advanced than this. You know, and we have capabilities that does that, the sort of solves is better, but it tries to illustrate the dynamicity of the Actor Model that these actors are fully dynamic in the way that they greet and redefine what they are really, and as well as being moved around along with their state. So that opens for a ton of possibilities. Yeah.
Exactly. It's always a trade-off. There's no right answer; it's all contextual. Even if you have all the information, you probably can easily do the wrong call, any take the wrong call anyway. So that's why there's that dynamicity and having like where there's no fixed topology. The classic way to distribute at least the way I learned to build the distributed system was that you have to design the topology of the system up front—where things should run, etc., right? Then you need to redeploy or reboot things to change. But having this dynamicity means that the topology can evolve and will probably completely change from how you initially deployed it after being running for a
One. I mean first I'd say you know of course the—I mean MPI being native, it can be used for things like from a lot low, probably a lot more low latency that doesn't have the overhead of the garbage or the unpredictability of the garbage collector things like that. But also, I personally never used MPI, but does that map to threads directly one-to-one, or is does it do multiplexing? Because that could be one of the
Yes. I'd say that. I mean there's nothing wrong with that model. I mean that there is a certain case of use, a certain class of use cases that fits that model by having essentially one worker, you know, sitting in the same place so to speak, with all the cache is hot. There's no sort of context switching at all. You can just do all the work that you give it with the lowest latency and as possible. That model is great when you have a limited number of workers and a static number of workers where you know that you have for example 10 workers or five workers, you just want to hand out work and have them go as fast as they can possibly do. The single writer principle is really it's really a good guiding principle when it comes to modern hardware. You just keep the cache yourself right as fast as you can, and don't let go because then you might be suspended while the Actor Model, you know, it of course can do that, but a lot more inefficient because it can be being sort of rescheduled on another thread, on another core. So it's really hard. There are of course native libraries, JNI libraries that try to solve the problem of pinning threads to cores, and we can pin actors to threads and things like that, but that sort of violates the idea of the model because the idea of the model is to have hundreds of thousands of these things that give you a very different way of programming. And that fits another class of problems. So it's really comparing apples and oranges. If you're on for example if you're on the JVM, there is a great library that's even more implements more of the MPI model that's called the Disruptor. It was created by a guy called Martin Thompson working for LMAX building server high-frequency trading exchanges and stuff like that, or I'm not sure about the high frequency, but he's been involved in these type of things, but it's actually it's actually a stock exchange with, of course, extremely low latency guarantees, and where they have you know the number of workers you know fixed and where the actor model would be a really bad fit. But for a large class of problems, especially you know we talk about microservices and there's like a button in general cloud application development, streaming all these things, I think actors is a really good tool to use. Yeah, that makes
sense. I mean, I think—I mean it's hard to know what something is capable of, but it's easier to talk about how it's typically used. And the way MPI is typically used is as you said, you know one MPI node per machine usually, and you know very limited passing of data back and forth. A lot of it is really kind of done by hand. And yeah, I think the biggest thing is it sounds like with the actor model you can kind of build it on one machine and then be kind of confident that it will scale out. Whereas with MPI, it's much more tailored to your specific hardware and the specific environment. What about what about something like Spark or Hadoop or something like that? Like one of these—I don't know what you would call, like kind of like a big data ETL type library, like what would be the trade-offs? Why would somebody use let's say Spark instead of Akka, or Akka instead of Spark, or something like that?
yeah that's that's that's a great question and i think i think it composed pretty well first you can you can definitely use aka to build something like that for example flink i don't know if you know that that's that's built right right right on top of aka you're using a lot all all of these features that we talked about and and and uh and uh you know so it's so it's more of a low-level programming model when you when you only talk about the actor part of aka you know but with what what we have at it is it's a lot of things on top you know we have aka cluster for example that are sort of that does sort of peer-to-peer gossip based clustering similar to dynamo you know record or i don't know what what you're familiar with in terms of of of of of of of research research papers but but but you know similar to cassandra you know you know masterless fully decentralized uh uh uh clustering and another tool that that sort of ties into to the to the streaming as i said it's it's the aka streams library that that that gives you a great toolbox to do quite advanced streaming you know fanning out fanning in doing you know like data processing and and and things like that but but we have chosen to all only support local uh And for simple use cases, that's great. And that's why we built it for customers that love that model, but only want to be able to scale up a little bit. But if you have big needs for doing fast data processing, then you should definitely use the tools tailored for that. And then Spark Streaming or Flink or something like Google Cloud Dataflow are great models for that. And of course, I mean, they compose. You can have actors as being the services at the endpoints, the stateful endpoints receiving data from external systems, or being the application point for microservices at the endpoints of the streaming pipeline. So they absolutely compose nicely.
That makes sense. One question about the actor model. So one thing that I think makes this a little different from something like Ray or one of these other systems is I think the actors can actually send data before they have sort of terminated. So most of the time when you have these kind of systems, at least I kind of think of it as sort of this functional thing where I send inputs to some process and I get back outputs. And so that can fan out however it does. But with the actor model, something could be running maybe even perpetually. And it's sort of like a permanent thing that's getting data, sending data, getting messages, sending messages back. But it doesn't have to be just sent back on termination. I feel like that opens a lot of opportunity.
Yeah, it's really good that you point that out. I should have said it. You know, that one of the sort of the area where actors sort of shine is that it's in being long-lived, addressable, stateful objects. Long-lived meaning that they outlive sort of context, application context, or scope, stuff like that. And addressable means that you have a state of reference that you can always send message to them. And stateful is probably the most important thing how it distinguishes from a lot of these other concurrency constructs, like most data flows. I mean, they're stateful within, but they terminate, and then it's the end of that. Or futures that have one value, but they're not really stateful in the sense that they are long-lived, addressable, stateful things. So that's really how I should use them. If you only have a need for stateless, essential stateless data processing, then I would not use actors. There are better tools for that. I will use some sort of stream processing, some sort of data flow graph, or rely on futures, future promises, or something like that. Even for local computation, I wouldn't rely on actors. But as soon as you have this exact need that you point out, then actors are extremely handy.
Yeah, exactly. I mean, first, the way it works in Akka is that if you just use Akka actors, it doesn't have—it doesn't give you any DNS capabilities, but it all starts from the top-level actor that creates actor, and then you need to make sure that you pass along the references that needs to serve that each actor needs to have, as well as when an actor uses another actor its reference, its actor ref, you know, the handle is passed along. So you can just store away that and communicate back, et cetera. So that's how you can populate things. But that's, of course, very limiting. So one of the features with Akka Cluster that adds, you know, the clustering capabilities, is what we call sharding, Akka Cluster Sharding. And that essentially gives you what you ask for. You have this essentially the addresses where actors are sort of gossiped around, and that can change, you know. You can have sort of consistent hashing, sort of consistently hand out actors across the node ring, the set of distributed nodes in the cluster. And when nodes leave and go, that needs to be repartitioned. And actors will then be reallocated or moved around, and that information, or the news or DNS, or addressable information, will be gossiped around. So everyone has the latest news, so to speak.
Sounds like the whole problem of, you know, I need a shared, let's just say a key-value store. We could treat DNS as a key-value store. Like I have this sort of shared key-value store that needs to be replicated among all the actors. That sounds like a hard problem. I mean, it sounds like there's conflicts that could happen. You know, someone could just find out about an actor, and that actor's already dead, or something like that. It almost seems like there's a lot of complexity around having a consistent key-value store that's gossiped among all the actors. Like, how does that actually work?
Absolutely. You're right there. And you know, we rely on both like old and recent research there. As I said, this epidemic gossiping is based on sort of not reasonably old papers now. And then the same thing as the failure detection algorithms and things like that. But when it comes to replicating of the state, we rely first on vector clocks, which is a quite old thing invented by—was it Leslie Lamport back in the day? No, perhaps. Yeah, I don't remember. I think so. Yeah, he invented Lamport clocks and then someone else invented vector clocks and stuff like that. But anyway, that's quite old. But we also rely on quite recent research when it comes to disseminate sort of state. And that is called something called CRDTs, like Conflict-free Replicated Data Types, which is quite recent research, which actually, you know, vector clock is actually is a CRDT. But the CRDTs sort of generalizes that by giving you a way of expressing state that sort of in a fully monotonically increasing fashion with a merge function that you will always merge, so it will always sort of
It's very similar. I think it was parallel research. This CRDT was—it was, I think started by March of Europe at Microsoft where this operation transform was in Google, right? Right. I think it was sort of done more or less in parallel. But CRDTs have sort of exploded in the research arena after the initial papers. And then there's now, you know, models for modeling CRDTs that are not just, you know, the simple things that registers and counters, but also things like maps and even sets and even, to some extent, graphs. So, so you can model quite rich data structures as long as you adhere to the rules and be sure that they are eventually consistent for sure. They're not strongly consistent, but you can be guaranteed that they will always converge eventually, you know, so you have strong eventual consistency.
That makes sense. Yeah. So just to sort of tie it back to something everyone knows, if you talk about, like, Google Docs. So you have a Google Doc, you're editing it, your friend is editing it, and let's say you both go to the same cursor and you both hit delete at exactly the same time to delete some character. Now what's going to happen is one of you is going to arrive first, and that delete is going to take effect. Then the second person shows up with the delete, and basically, to sort of simplify this, there'll be some bookkeeping going on so we know that when that person hit the delete key, we know sort of their state when they did that. And so, the system can sort of modernize that delete or, you know, bring it forward in time, and when it does that, it will encounter the previous delete, and it will say, oh, this person didn't really intend to hit delete after that delete. They intended to really do the same thing, and so we'll just, we'll just not execute that second one. Or we'll figure out some way to amend it. You know, if someone deletes a letter at exactly the same time another person deletes the entire line, then we'll just delete the whole line. But all of that kind of, you know, it's almost like a Git rebase or something like that, but you can't rely on a person to do the merge. You have to come up with a set of rules that can be executed autonomously.
Right, right. And you know, these sort of like primitive ways of doing that is like last write, last write wins and stuff like that is usually not sufficient because you will have data loss. You know, and a lot of key-value stores implement it like that, which is quite fascinating. While others, you know, rely on things like Vector Clocks and even CRDTs to actually do proper merge without discarding data.
No, that's not the way. The way it works. I mean, so if the user, if you move when it's a user, if if you then mean the user of one of the actors, I mean, as I explained earlier, you have this level of direction. You have the actor that you talk to and you never really see or touch or know much about the actor unless you just monitor your software, of course, which you should. But from a programming perspective, you don't, of course, you can subscribe to, as I said, events on how the actor is doing, but you don't have to do that. But since the responsibility of recovering from failure is solely on the runtime. And, and, you know, it's on node failure or do what was the specific question you asked there?
Yes. I love this. Yeah, no, it's fine. So if an actor fails, then I guess the system will spin up a copy, but then it also has to notify actually that's an interesting thing. Like if an actor fails, we have to know like who is impacted by that because it could actually be anybody potentially. So I guess potentially everyone has to be notified of that.
Yeah, everyone that has essentially the way it works is that and it can be any number of actor refs, and sort of references to that, to that, to that actor. And you know if an actor fails, it's it can be, of course, restarted on the same machine very, very, very quickly. But the bigger problem and the more common problem or perhaps more not more common problem one is user error normally or running out of memory or something like that. But the more interesting problem is probably on node failure when where the whole machine goes down and what's happening then is that we rely on a cluster there to do to do failure detection, and that's of course a really hard problem because there's very easy to have like false positives. I mean, you might think that the actor or that the node that you're communicating with we do sort of heart beating, you know, you know, pinging around and heart beats might be delayed for various reasons. It might not be that the node failed, it might be that it's just doing garbage collection because we're on the JVM, you know, so it's just really, really slow and it's busy or it might just be overloaded with user requests or there might be a temporary network glitch that so the actor, so the node is still alive kicking. And that's really hard to do. So we have heuristics and we have ways to to sort of define certain thresholds for these heuristics and but you know if based on these heuristics we have to sort of sort of decide that that node is down, then then we have sort of different algorithms in order to how to how to resolve, resolve that. It can be that we're sort of basing it on first I have to say you know that the problem might in most cases is a problem of split brain, you know, that you actually have to it's actually only a network disconnect. You don't know but it might be that it's only a network disconnect sort of splitting up the cluster into two different halves. And and then you have another problem in which which is which sort of side of the data center you should you let let keep running, you know, and because if you if you if you like just only sort of sort of spin up all actors on both sides thinking that the other half is down, then you run into the problem that you have the duplication, you know, and you can run into all the data consistencies, right? So so you need some sort of intelligence here to do a good good sort of take a good good decision. Like one of the half of the cluster that needs to decide I'm I'm out, you know, and the other half one or or or vice versa. And there are different algorithms for that. And we have we don't need to go into specifics, right? But but but but they're all you know based on on your needs for the use case. You know, one example might be that there is a one critical actor that you absolutely need for the system to function to be on one side, you know, and then of course that system wins even though you only have two actors there or two nodes there and 200 on the other one. Sorry. It's a really it's a really it's really bad luck. Or or it's like simple majority wins, you know, where the majority of nodes you like we win some well well, this, well, the smaller cluster has to, how to reboot or, or hold, you know, so this is really a hard, a hard problem, but, but, but, but, you know, once you detect that, it's really, it's really about sort of resuming the actors on the healthy nodes, you know, and, and, and repartition the cluster to have sort of a balanced sort of allocation of actors on the, on the nodes that are still running. And, and, and sort of also sort of gossip around the new address information. So, so all the actor reps in the cluster, meaning all clients can start using the actors on their, on the new locations. And from the act, from the user of these actors, they should never find out apart from the latency, of course, it takes for these, for this whole process to, to have. It
makes sense. It seems like to sort of program in a defensive way, it seems really important to like segment the data you're receiving from each actor. So like, for example, a degenerate example is where you spin up a bunch of actors and they let's say they send messages to you and your job is to just concatenate all of these messages or accumulate all of these messages, right? Maybe they're sending back numbers and you're just adding them up. And so you've added up you're up to, you know, 1027 and then an actor dies. Well, now you're kind of in trouble because you don't necessarily know the contribute. You can't separate the contribution of that actor from the other ones. And so even if unless that one happens to unless you have some way of restarting that actor at exactly the right spot, you kind of you then that death needs to sort of cascade upwards because you're inconsistent. Right. So it seems like people have to program in a way where they're keeping track of who said what. And that way they they don't end up in this situation where they can't recover. Right.
Yeah. The way, the way it's usually sold is by, is by using event, event logging. Then, I mean, then the actor doesn't need himself to, to keep track of that. But, but, uh, but, uh, uh, you know, whatever made it to, to the actor or, or, or, or more, whatever the actor has actually done, you know, you know, is persisted. So he knows exactly where he was when he, when he, when he died, because he, he can just like bring, you know, replay the log, bring him up to speed and continue to take more requests. Oh, while the center of those, I mean, of course, knows where he was, when he sent, because he didn't get an act, an act of the message. And by the way, we have, you know, support for that, you know, guarantee delivery as, as, as well through, through, through, you know, replay, it's a recent message, deed application, and, you know, you know, at least wants delivery as well, you know, so, I think we have more or less the whole chain covered, if you layer in these things, you know, this is also one of the core philosophies of, of, of, of ACA, is that we, the bare bones actor, bare bones actor don't have any guarantees, you know, it's fire forget, you're on your own. And that's simply because that's the, that's the most performant, and that's, that's the least expensive. And, and, and some, and some might want that. So why should you pay for more than you absolutely need? But we then have, you know, layers that you can sort of layer in, in terms of reliability, reliability. For example, when it comes to, when it comes to communication, you essentially just use a, you know, sort of mix in or in a, a trade called at least wants delivery, you know, that, that, that does, you know, what it says, at least wants delivery, deduplication and, and resending, retransmission of messages, et cetera. So give that, that, that reliability when it comes to the communication. That of course costs a lot, or not a lot, but it costs, you know, what, what, what it costs, of course. Right. And, and, and you don't need to write it yourself. And, and when it comes to, you know, to on the, on the, On the consumer side, we allow you to layer in event logging, which of course also has a cost because it needs to go down to disk and commit every message. And in order to do that in a strong consistent fashion, it needs to wait until you have committed the message down to reliable medium, which is pluggable by the way, so you can plug in almost anything you like. But then that also has to cost. But you can choose then to layer in the guarantees you need when you need it.
So what about, I mean, now there's this—the whole blockchain thing is getting really popular. There are a lot of really interesting distributed technologies that are coming out that are distributed over the public sphere, I guess is a way to say it. But you have things like WebTorrent and things like that. And in this case, many clients can't actually reach each other. Like many physical nodes can't communicate with each other. But you're relying on sort of the whole system to have some sort of graph that is connected. Right? And so can Akka work over something like that? Like, does it have NAT punch through and does it—is it designed, does it design extensible to that? Or is it mostly for sort of clusters where the nodes are able to communicate with each other pretty reliably and all of that?
I, I, you know, there, there, the, the, first I've said that there are blockchain implementations on, on Arca and, and, and I haven't used them myself. I can, I can't talk about the, the, um, sort of the, yeah, the, how the quality of them, but, but, but sort of nothing prevents you from, is the actor model by itself, I think, lets us out very, very well to these types of distributed problems because it's, it's all, it's all, it's all just, you know, no, no, no, like stateful nodes and, and efficient communication between them. But, but, you know, the way we've looked at Arca and the implementation of Arca is that we've always said that it, it, it, it should ideally be used in a, in a trusted environment, I mean, thanks to, I mean, security problems and things like, you, you can tunnel it, you know, over, over, over, over T, over TLS and things like that. And, and, and, and, and we have support for, for these type of, of, of, of, yeah, of security. Uh, there are guarantees, but, but, but it's, it's not really meant for that type of, of, of, of large, uh, like super, like world, world scale, uh, systems. Um, if all, if all you used were like stateless, uh, actors, uh, then it would probably work quite well, but, you know, when, where it can, where it becomes tricky is, is with the stateful part, because if you want, if you want strong consistency, you can, you can only have one actor, you know, in charge and, and, and, and, and, and you need a full replication of that state, you know, across where, you know, everywhere, the whole world, et cetera. I mean, it's, it's, it's, it's not really meant for that, you know, then you need, you know, something like blockchain that's meant for, for being shared in, in a distributed fashion, in a fully reliable fashion, but, but marrying the two, you know, having, having the model of communication from actors and, and, and, and over Waka and, and, and having, you know, the state being blockchains, I mean, I mean, that could absolutely work, but I haven't explored it, but conceptually it would.
Yeah. It's a company that we when I started Akka by 2009, I had no intention to really start a company, but it immediately became extremely popular. And I realized I had to start doing consultancy on it and take support requests. So I started a company in 2009 called Scalable Solutions. And Akka grew out of the Scala community. So I knew a lot of people there when conferences and I met with Martin Nodersky, the creator of Scala. And so he and I sort of realized that we should do something together. Akka's built on Scala. And Scala's really getting traction. Akka's getting traction. It could be interesting to form a company together. So we did that and we launched it in 2011. And we later added the Play Framework and a bunch of tools around it. And we, the last year has been working on a fast data platform for distributed streaming, making sense in the streaming jungle and things like that. So, so it's been quite a ride.
Yeah, that's a great question. A lot of the heavy hitters unfortunately we can't talk much about. But a lot of investment banks and most banks on Wall Street are heavily invested in Scala. Oh, I didn't know that. But also, LinkedIn, for example, and a lot of the different social media and also retail, there's a ton of clients. I sort of yeah. Cool. I don't exactly know who I can mention without—that's why I'm hesitant. I can sort of list along, but then I might say something that I shouldn't say. But absolutely there's a ton of because it is even the scholars course of a source, it is its intersection between what is an just a user and what is a client. But you know, scholars really been taking off immensely. I started using it in 2006, I think. It was quite early. And back then I remember the first conference, it was in 2010, it was like small group meeting at EPFL. And it's been really growing immensely after that. And yeah.
Actually I do some Scala, mostly Spark at my job. I think it's fantastic. It's absolutely phenomenal. Sometimes I see some people using operators in a really confusing way. So I have to take a moment to say, okay, what is this? What is this operator doing? But overall, the freedom it gives you, I'm a big fan of languages that at least have the option of typing, of type safety. The Spark framework is absolutely fantastic. And so, yeah, I'm a big fan, but I probably started using it around 2013, 2014. So I've only been using it for a few years.
Yeah. I'm glad to hear that you like it. I think for the use case that you're talking about, I think is worth one where it really shines because of the functional side of Scala and the things we talked about for reactive programming initially in this chat having sort of first class combinators, like map and filter and fold and having them easily composed. These are things that are hard with the language like Java that doesn't have first class functions. But I think that's why we see a lot of these companies like Spark and Flink and Kafka, you know, it's also written in Scala.
Yeah. I mean, I've done also Java, Hadoop, and yeah, it's not pretty. It's like you know extract data function, but it's actually a class and it has a function called run or something like that. It just becomes very verbose because everything has to be a class. With Scala, it feels much more native. You can add to columns of a dataset without having to create a class. I mean, it seems in hindsight, it's very obvious that's the right design pattern, you know?
Yeah, we've been growing slowly, I'd say. I mean, we've been around for a few seven years now, and we've been sort of up to a hundred, around 140 people now, which is with a pretty sized well-sized you know engineering organization and sales and marketing and stuff like that. So, and all it takes to run a real company when you start the startup, we were just seven guys in here, not in the garage, but at our homes. We started very distributed, and we're still very distributed, which is sort of really challenging, but we sort of try to grow slowly, and only grow where we absolutely need. Yeah, when it comes to being remote and distributed, we're I think we're around 20 countries now, and we're almost at all continents, like Asia, both Australia and New Zealand, we're in Africa, we're in South America, US, Europe. We're across the whole globe, which is true, super exciting and fun, but it's also very challenging when it comes to communication and meetings and all those things.
I mean, not to go off on a tangent, but this is something that day-to-day, we've been I've been talking about a lot, dealing with sort of time zone and sort of being able to franchise in a sense the organization, right? And so how do you deal with the fact that there's people all over the world, they're all waking up, going to sleep at different times? Like do you use like Slack or something like that? I mean, what how do you sort of keep consistency there when everyone's in different parts of the world?
Yeah, that's a great question. It's we don't have it all figured out. We sort of learn as you go, but one of the guiding principles is that when building the company from the start is that there is no such thing like remote employees; it's only distributed teams. And because the distinction I make here is that it's really hard to have a team co-located and one or two guys remote, because that means that they talk over coffee and over lunch and things like that. And then they forget to pass that information on. And it becomes very split up and divided. And it's really hard on the people that are then remote. But if you talk about fully distributed teams, that means that every single one is remote. And even if they do happen to sit in the same office, they can't communicate. Of course they can talk, but if there's important information, it has to be communicated over some sort of textual form or perhaps send a screen cast around or something like, but it's more it's mainly text. So having this distinction that for team we have had teams that have been fully co-located and then that's fine, but then everyone needs to be there; else it's a fully distributed team regardless of where people are. And having that mentality sort of helps, but it also makes it hard when it comes to, makes it tedious having to write everything everything down. It takes more time to document everything thoroughly and things like that. But and also, it might be harder to do meetings. One but one of the guiding principles that we've had in the past that we actually had to go away from a little bit now, but that we tried to do is to keep all teams in the same time zone. Because that means that they can hang out on the Slack and things like that in real time and don't have to wake up and catch up on 200 messages and a really hard time figuring out the context. But as I said, we haven't managed to keep that for every team. But for example, the Akka team is was fully distributed a bit all in one, in one, or might be two time zones. So that's something that also helps. But as you know, the tools it's mainly Slack and email and Skype Hangouts or Zoom that we use now. So it's just nothing fancy.
Cool. That makes sense. I actually ran into somebody whose company had the exact opposite philosophy. They wanted each team to be distributed. And let's just say it doesn't work. Like that idea just is not a good idea. I think what you proposed is actually, I agree a hundred percent. I think it's very isolating to have and it's never going to be balanced. So it's the odds are not that it's the odds are high that it's going to be, as you said, one or two people out of 10 across the globe. And the other eight are on the other side of the globe. So it doesn't really work. But yeah, once you go to the team level. Yeah. Exactly. Cool. So if someone is so we have listeners all over the world, if someone is in university, they have a degree in let's say Computer Science or Electrical Engineering or something like that. And they're interested in and they're interested in a career at Lightbend, sort of what opportunities are there? We're actually surprisingly a number of people have reached out to us. And so they literally ended up finding jobs with people we interviewed, which I was pretty shocked. I didn't really expect that, but it turns out this is actually a really good medium for people who are especially in university, but in general, just engineers. And so what sort of opportunities do you have at Lightbend and what does that look like?
Yeah, we're very interested in people coming straight out to the university. They haven't been damaged yet. No, just kidding. But it's it's usually in we've been hiring a lot of people right from the university or very close to coming out of the university at least. And and I think that if you're interested in working on hard distributed systems type of things, multi-core concurrency related things, cloud computing, these type of things, streaming, and all this whole thing with fast data and also Machine Learning. And or if those things interest you, I mean, you should absolutely apply. And since we're also distributed, it's if you're the right guy, I mean, then we'll hire you wherever you are more or less, because we have teams that are across all time. So all the way from Japan and far far far far out of Asia, Australia, New Zealand, all the way down to South America. And then the West coast of the US. So it's all over the place.
Yeah. It's I think it's different from for different people. You know when it comes to me, I mean, me personally, I mainly work with colleagues in the US. So for me, I have meetings all starting from four and four a four in the afternoon and all the way up to nine, 10, 11 sometimes. But that's nice. I can get a lot of no sort of silent space, silent time. And in a time for myself, thinking, working on stuff without being that interrupted in the day. And then I I you know can be more social and discuss things in the afternoons. One thing also that I have to mention that when it comes to the average engineers schedule is that we have a notion of roles. We do all the support ourselves. And this is sort of one of the things that our customers love, that they we don't have a support organization per se, but it's actually the teams, if you have a problem with Akka, it's someone from the Akka team that helps solving that. That's also that's sort of quite challenging taking on that role or that hat, so to speak. But also quite fun, it can be fun to serve see how people are using your software stuff. So, and helping them with the stuff that you that that that you built last week. So, that
Exactly. I think, without them and without our open source community, I have to say, not just our customers, you know, but without the passionate community that we've had, we've never gotten this far. I wouldn't even exist, I think, but it wouldn't be where it is even without the open source community. We've been getting so much from that. So many passionate people like talking about it, encouraging things, but also, you know, rolling up your sleeves and actually sending in patches, and, you know, it's really an extremely good example of what can mean sort of, what can mean on the good side of humanity, what can be achieved with people across all cultures and actually collaborating to doing something substantial. I think it's quite heartening to see.
Cool. Yeah. That sounds absolutely amazing. So yeah, Jonas is absolutely amazing having you on the show. I actually learned a lot. This is one of the most educational episodes for me personally. And yeah, I think I appreciate it. I think people are absolutely going to love it. Can you give us some sort of what's the best way to reach you or reach Lightbend? So what serves like some good communication information there?
Yeah. I think the best way to reach me is on this problem: Twitter. I'm Jay Bonier, J B O N E R on Twitter. Just reach out, and else, you know, Jonas at Lightbend. If you want to send me emails, lightbend.com. If you want to find out, I have my personal website, JonasBonier.com, but if you want to find out more about Lightbend, then just go to lightbend.com or akka.io, a K K a.io. If you want to learn more about Akka, and we have a ton of material both on the Akka website and also on Lightbend, all kinds of this stuff, webinars, recorded webinars, and articles and all kinds of stuff. So.
Good. And so all of it is totally free to use, right? So basically you're the business model here is that people can do anything they want with Akka college projects, even commercial projects, but then you're there to help them if they need some extra functionality or they get stuck or something like that.
Absolutely. It's this open core model where, where everything, you know, in the core, uh, you know, Akka, play Scala and, and supporting tools, you know, are open source. And, and, and, and we, we try to help the community as much as our customers, but we, we, but, but then we also have, have, you know, commercial tools on top, you know, things like monetary management and, and, and, and we have a full, as I said, as I talked about the fast data platform, it's also commercial, but, but, but, but, you know, everything that we covered in this, in this podcast, in this, in this call, uh, uh, it's, it's fully open source and, and, um, and, and, yeah, we're here to help, so.
Cool. Thank you so much again. And yeah, everyone, let us know what you think about the episode where feel free to chat on the Discord. If you have any questions, feel free to at both of us, Programming Throwdown at, and Jay Bonair at, on Twitter, or ask on the Discord, and I can pass it along. But thanks again for this interview. It's fantastic. Yes. Thanks, that was awesome.
The intro music is Axo by Binar Pilot. Programming Throwdown is distributed under a Creative Commons Attribution ShareAlike 2.0 license. You're free to share, copy, distribute, transmit the work to remix, adapt the work, but you must provide attribution to Patrick and I, and ShareAlike in kind. That's great. Thank you.
