Testcontainers (Like Uber but for Integration Tests) with Sergei Egorov

About this episode
Testcontainers are one of James' favorite modern technologies and in this episode we chat with Sergei Egorov, one of the project creators. We learn about what Testcontainers are and the new Testcontainers Cloud service created by Sergei's new company, AtomicJar.
Transcript
Generated automatically by Spotify, so expect the odd misheard word. Select a timestamp to play from there. Download (.srt)
Read the transcript
0:01 Welcome to happy path programming. I'm Brew cycle. I'm James Ward. All right. Well welcome everyone. Today we have with us sir guy who's one of the creators of test containers. And I've been a huge fan of test container since I started using it a couple years ago. And I think that I was just starting to use it. When I first met you in person, may be the only time I met you in person, which was at devoxx, polar devoxx Belgium in 2019. So one of the last conferences that we probably went to and so, anyways, it's great to have you on. I am a huge Trend test containers and so I wanted to have you The chat about that and serge do you not know how to pronounce his last name or you just? I don't even know his last name. What is your last name? A surgery. You go to occur off.
0:49 Yeah, it's pretty good. Okay. Well I was imagining the spelling in my head. Yeah. So it's so funny because I don't know, I just don't even know most people's last names that we have on the podcast. There's a lot of times I have to go like, look up their last names when I create the episodes. Okay. Yeah, well I just know she's the weather. A first name, your first name kind of guy. Okay so I'm going to I you know James has talked about test containers and I go out it's probably not something that applies to me so I have never liked what problem are you solving with test containers? What's the main point? So straight to straight to the main section that I could and person would like to thanks for having me like really, really happy to be here and yesterday James was Our live show.
1:38 So it's great to have this conversation back and talk a little bit about more like of the basics, basics of test containers, and we consider yesterday, I talked a lot. Now we get to hear from from you today. Okay, sounds good to me. I'm the token, guys. So first of all, like Sergei, wonderful, test, containers team members and been with sized containers for the past, almost six years. So, I've been saying five years, but now we're getting closer to 26 and realized by Sinners is existed, that long? Yeah, it started. So I don't I feel like I'm now I'm like late into the game, like the fact that I've only been using it a couple of years, like my guy. Yeah. It's like, usually I'm bleeding edge but turns out now, I was like, not even close to bleeding edge, but you managed to catch up with everything is a test contains Community, very fast and then created the your own movements, I would say, but we can talk about it later but test continues was created.
2:37 In 2015, by Richard Norris, who is also co-founder of the company. We are in right now to make sure the company behind test containers. But he created, he created it to solve his own problem. He was having while at Deloitte digital, he needed to solve problem of integration testing because that's what they were doing at his team and they were doing consulting for others. So we're working on Many projects, but all these projects share the same problem. Like, how do we test the software that we ship? Because you have two options. Option, number one, you testing production, AKA no testing. You just ship it and then you keep your fingers crossed that everything will be working correctly.
3:22 You have to be, you know, like you have to be a genius to write code that works from first attempt and I don't think anyone in the world can do that so it's not in summarizing data get on my phone for apps. That's a bug fixes and performance. Events. I'm guessing that that. Yeah, most people don't get production, right. The first 10 Drumline second time or the hundredth time. When you say, integration testing, you mean, okay? We have the software, we think it works and now we're going to make sure that it actually works in something similar to the production environment, is that integration testing for you to biggest pointy ears, or what? I guess the biggest one here is that like since we have the stages or like levels of testing, you can do unit testing where we just test our code and nothing but code and then make a lot of assumptions about things and how they work especially when we talk about modern microservices that usually what they do. They just I don't take some data from database, run some Transformations, and return it as I know Jason to some HTTP endpoint or send it to Kafka and It seems we're talking about some Thin wrappers around data.
4:39 We need to make sure that we properly test because yes we can unit test some Transformations like how we turn these object into some detail. We can be unit test it because it's all code, but it's it's a bit challenging to unit test. External depends is like, for example, how do we test that progress? Would execute this query correctly. We cannot just say that if I send this text to the database then, And I will always get this response because that's an assumption and getting rid of assumptions. Is the best way to improve your testing like the less assumptions you have in your test better. Like you cannot assume that database will or always return this result, nor we can assume that it will turn into in timely manner, for example, like sometimes it takes longer to execute queries and so on and so forth. And let me, this is where I'm listening in another way which will be relevant to our book.
5:30 So we're writing a book about effect on your program. And in in this model we have pure functions and then we have affect full functions and so your pure functions can be tested entirely with unit tests because there's no external dependencies because they're pure your effect full functions. Can can only well, you could either create mock-mock-mock
5:58 services for the affect parts of it, but that's not actually testing that the Effect actually works against the external service and so the integration test would be to plug in your live service into your effect will functions. And that would be the integration test would be when you actually use the live service, you know, databases are typically mutable. So they are you there. Yeah. Otherwise you could just write a function to represent the database. That's how could you write a function? Yeah, exactly. So, Integration Tester, the are the effect full testing the effect full pieces. Like you could write an integration test against random, a random service that actually would test that your random is valid. All right.
6:46 Okay, I think that's clear. Yeah, I like this analogy was pure functions, actually because that's indeed the case. Like, you cannot assume side effects. You need to bring Sam, to make sure that your pure functions or your code is tested correctly, and that's is composed of pure. Ian's only but it isn't the case, sometimes? Or most of the times was, I've never seen any useful system that was only pure functions in is a coin. The coin - nothing. Cousins are distributed aspect of Bitcoin. Yeah. Interesting needle that one a little bit and that seat with jump onto webserie discussions. Right? That's right. Well, and if to you, so let's mind some Has yeah. Okay, so Okay, so we've got our integration tests and Richard one of the other co-creators of Tuscan dinners or maybe the initial creative test containers, he was not happy with how integration tests were something about integration tests.
7:50 So then what happened bags and in 2015 do Kira wasn't something that deployed to the majority of production systems but rather something new and emerging and wow. There wasn't, you know, this widespread Readiness to have do current production, people started realizing the docker is overall, great idea, and great technology and starting adopting, it more and more in virus areas and for Richards, this area was integration testing because he was liking this obstruction for running integration tests. Like you before, test contains before Docker, you had to set up local testing, environments yourself like manly and then you had to do the same when you're Systems and IQ submits.
8:35 This Jerrod ticket asking for your sysadmin to create or like to configure postgres on Jenkins node abc1 months later. You get it configured and you're ready, migrating to the next version of postgres. You submit the new kid need ticket asking that could you please update progress to that version one month later and - my mini? So, I mean consistency across to your local, Dev your CI and her production was Second Challenge that most people just said and too hard. Yeah. Okay that doesn't scale. Well yeah, and with Docker that's a different story. You just need to ask someone to provide Docker. Like as long as you have Docker, you're good to go. And doctor is a great obstruction, but it is an obstruction.
9:24 It's not as slow as using, I know jails or some other continuation, technologist, a taxi and others but then, it's still an obstruction. And as it happens with abstractions, we create more abstractions and top of obstructions and that was his idea. Why don't we create an abstraction on top of Docker for testing? And since he was a developer with developer mindset and he'd been also pretty Advanced when it comes to writing things, but also writing tests and creating them. You realize that the most flexible way would be to create this database has Brokers and What's not directly from Tas because Docker exposes an API then we can talk to http API from java.
10:11 So why do we need a CLI? Why do we need Docker compose or back then fig? And why do we need all these other Technologies? If we can talk directly to Docker because then we gain a lot of flexibility, we are starting to do starting to do this imperative approach, a programmatic approach to creating test environments versus having something Clarity of where we would describe our ideal test environment and started. And then you need a separate tool to start before your test stop after the test. Then if you need, let's say database per test. You start wondering how do I do that while with programmatic approach? It's up to you when how and what to start.
10:57 And that's that's continuous. Basically, that's your interface to Docker for testing that we Moves like adds additional abstraction on top of Docker and makes you care less about what's going on under the hood and makes as simple as having Docker available. Yeah, they're so so, so you're adapting Docker to be the test container. Is that what it is? Is, I mean, this is on top of Docker, on top of dot, on top of doctor. But, so, from my standpoint, It as okay, I'm the application I'm running inside of Docker. I want to make a, you know, I want to interact with the database.
11:42 So what I'm interacting with is the test container that looks like the database is is actually the date of, it is the database, but it's what's it doing? I mean, is it connected to the real database or is it just A cloned, the real database so that it can behave. Like, it is, it is an incense of the same database technologies that you're running a production because now is that we have Joker and all these images such as Kafka postgres, Oracle, db2, and others we can actually start and ephemeral instance, of our database that we use in production, but locally not exactly the same way. We don't need to start large clusters of were coincidences, Just if we need to query something simple from them, we can start as simple as just a single instance, as long as we are writing the same thing. Not something that quarks and do other things as my production database.
12:45 So for example, one could say that. Hey, why do we need progress progress? I could just run H2 Impostors compatibility mode, right? And while that applies to 90 90 percent of usages, you always be hitting this. The remaining 10% implementation details because I said I haven't run it everything every single time. Like, if you frame, it is a 90% problem or a ten percent problem where like I would, when I use postgres, I'm always like adding in, you know, like the gis module or adding in some some module into post-grad into my postgres database, and of course, H2 doesn't understand those postgres extensions. And so I like every time or I use the Json. Be support and postgres and so of course, H2 doesn't like understand postgres, Jason be support or you know whatever it may be.
13:41 But it seemed like every time like for me it wasn't ten percent of the time. It was every time I would I wasn't able to use h 2 as an accurate alternative to postgres. So it is so the test container somehow clones the database. It doesn't clone it just is the dock. Docker container for postgres. So all of the all of the major back in services like postgres Kafka whatever, they all have Docker containers and so you can spin those up on your local machine or in your CI environment and get a database but you still need to populate it with your schema. If it's a database and populated with test data that sort of thing and any and you're saying any add-ons that you put into the database.
14:26 Yeah, but but isn't is that part of the configuration for the test? Her to do that. It's extensions. Is there a way with the postgres container test container to add postgres extensions in actually hadn't done that? Um, we don't have this programmatic API for that, but since we are operating on obstruction of Docker images, you can build your own local image, that would include all the extensions that you need or we could do it at runtime. When you start the containers, then you deploy extensions to the running container because you have an action as know what? Through just like, like in test containers, you can run a Bosch set of bash commands after the the container is started, right? And so, then then that allows you to to add in the extensions. Even they want and I must be dreaming. It's keeping this thing running throughout your whole, local testing process.
15:20 So if you made a change, it wouldn't have to spin it up again. Is that right? Sir part of the cool thing about test containers is that it moves the lifecycle management Into your development workflow and into your code versus it being an external thing. So if you are building a database application, the traditional way that you would do is you would install your database on your machine. You would start it up. And then you're fully responsible for managing managing the lifecycle. If you the, there may be times where you have to, like, blow it away and start it back up. And in the case of test containers, that whole life cycle, is managed by your code and your program, you can it. So how it's That's right whether it's going to blow it away for every test or whether it's good. That's right there.
16:06 Okay. Yeah so the life's the life cycle management moves into your project versus it being an external. Hmm. We also have some components and test containers, that will make sure is that you never leave anything behind your test run. So we're off to your test run. Sorry. Meanings that lets say for testing I would argue that the most important thing isn't even. Starting things, but rather destroying them. And it's impression, especially important for CI environments, because there are so many ways how things may go wrong accuracy. I executor May crash. And then if you have an external abstractions, such as doaker, you may end up having dangling containers like containers that are no longer owned by anyone, yet are still running. And then you'll see a degraded performance of your CI environments, and it would be wondering what happened. And apparently, someone just killed. Open Jenkins.
17:02 And then when you kill jobs, a you've kill nine signal, meaning that your gvm for example, won't even attempt to run shut down hooks. Yeah. And that's how we initially implemented. Konami cleanup mechanism, test containers and ended up getting requires like reports by our users that hey, apparently. I have some dangling containers. Yeah. And we start thinking like what can we do about it? Because yes, We are part of the test run, which is an advantage. And in a way disadvantage, because we have no control of what's going on outside of the test life cycle where a test session, lifecycle side of the GBM, that runs the test, and we need to somehow control it, even beyond the test run.
17:48 We want to make sure that even if something happened to the test machine or test GBM, then we would still destroy the containers. This, how we ended up adding components It's called Luke to test continues. I've seen every of container running and so I have questions about that, but yeah, go on. It's a very geeky thing and I'll explain the naming and second, but the point of that container is to record every containers that we start. And as I said, it's a container. So it's not part of the GBM process, but something that we start because we already have access to the container technology and then Record everything we start and then we maintain a persistent connection between the test session and that container.
18:37 And if the connection drops and if it never gets gets read insinuated. We detect that something happen to the test host. And we start destroying every resource that got recorded two to set container. So that we are all users is a container that runs and is the coordinator of the application and what it's doing and the Containers that it is managing for that like test session. So that's what the ryoka piece. And so it's keeping track of the state, keeping track of the connection liveness and then you if you actually like, are watching your Docker containers to see what's running, you'll see the Rio process running and then you'll see, as you run your test, your postgres, container spends, up, your Kafka container, spins up whatever, and then, as soon as your test stops Rio, then goes and shuts all those down. So the unreliability of the network is a feature. In this case, That's what you use to Q to know if, you know, you go, okay, we don't know anything. Now, connections gone, connections lost Royal assume they either decided to shut down or they wanted to shut down or something went wrong.
19:45 So we're just going to shut everything down and make sure cleanup happens. Yeah, that's fascinating. So a big part of test containers is that like resource management of all of the underlying containers that you need and a really cool thing that you can do a test. Tanner's is because test containers is managing, not just the life cycle of the container but also managing the configuration of the container. So for example, usually when you run, we keep using postgres as an example. It's a good one. But usually when you start up your postgres server, it runs on port, five, four, three two. Is that right? Four, three, two. And so you can only use that Port once. And so let's say, you wanted to run multiple postgres instances in parallel that Um's challenging, you have to like go figure out how to like change the password and we're well that's containers can just say, all right, you run on this port, you run in this port, you run on this port and so it's controlling all the ports in the port mappings, and giving your test that information about what port things are running on.
20:49 So that it, your application doesn't care and we're you can test containers, have managed it? And so if you want to run things in parallel, you can't. Yeah, the number of the ports and where the party is. The level of abstraction that's inappropriate. Exactly, you have to deal with. And one could ask, why don't you call it Watchdog. And I wish you asked this question. When we were, considering the naming for this component because it's a totally appropriate name. It is a watchdog and one find Watchdogs in many other systems. But somehow that didn't come to our minds but it was a great suggestion by Richard and we are we are Geeks. Here in our test contains Court team, that consists of Richard, Kevin Whitaker, and myself, and Richard suggested, and his question was like, have you watched? That's not, and that's a manga like popular manga. Like one of the most popular ones I believe, and the point is that, I mean, it's, as I said, it's very geeky, but the point is that there was a test node and then every name that gets recorded Does does not like that person will eventually like something will happen to them.
22:06 He will either die or get killed but you know like eventually he will be terminated. Okay? And Luke was the god of death, the like that one. Who will be executing? Wow. And yes, I say that very many people. Yes that is you was so good because That's exactly what we are doing. We just recording all this containers to the death note and then eventually we like there's like it's guaranteed that they will be killed and I'm talking about container so I can use this word, but it's a bit of, you know, like our wording for this abstraction, but on the other hand was fun, and as I said, we are Geeks.
22:53 So we're still having some fun in internally. So implementation, the react node there, the that Tanner that runs that because it runs on a container is has a bunch of logic in it and it's reusable across test containers for jvm versus Go versus node versus whatever. Because test containers can be used python. Is it how's the python modules for protest containers? It's one of the earliest moment, I turned if versions of test containers so we started with Java or Richard started with Java but then test contains python got created test contains going test continues, not Jazz test. Nothing is rust even Haskell. We have test contains Haskell created by some Community member, but that's a cool thing.
23:40 And this is how we'd me for test contains going starts. One of our users, he was enjoying the Java version but then he started working on a going called base and he was lacking this experience of running tests with stats continues. So what he did, he ported the ideas from test contains Java to task through going language. And then that's how test contains going at created. Now it's second most popular version of test continues after the Java version. Cool. But it's called a Tarik piece can be reused across all the sand so you don't have to rewrite that since itself it runs and in a container which is portable and it is very lightweight. We were using going to implemented so that we aren't adding over.
24:25 Had to set of containers that are being started because we understand that Not everyone will have Docker with 16 gigs of RAM. Sam would run it on Mac and windows. They would allocate on our 4 gigs of RAM for everything and considering this limitations. We wanted to make sure that we aren't starting. Let's say, I know a Java process that requires some memory to start which is fine because then we get awesome performance. But we're performance isn't that needed? We could also go for something more lightweight. Now, we have great VM, so it would be easier if I was going to say, you've got Oleg work in there. So, Like used to work at Oracle on on girl VM native image problem stuff. But but hey we should try to rewrite this in kotlin and with girl VM native image. So I'm sure I would understand it then.
25:12 Yeah. So and the company how long has the company and what's it called again? So I don't think jar is a company was started earlier this year March actually and closed our seed round in June. And we've been working on our product for test contains users, and we just announced the private beta of test contains Cloud, which is basically the managed version of the same experience. So instead of running your containers, on your local Docker or do car available in your CI environment, you would just run it on remotely available environment that we start on demand respect sir.
25:59 I'm dropping. Buzz words here, but it's similar to serve a less approach to integration testing. There is no server to think about because Docker is a server component and not everyone feels comfortable about running Docker and there, CI, environment, for example, or even locally, or sometimes they simply cannot like, let's say when I started prototyping, our product exactly one year ago, which is funny because it was exactly 17th of December when I had my Hello World. It commits, I had asking and what? Yes, yes I had or I got myself an apple M1 machine and it's arm-based and it's super cool super fast. But then they realize that I cannot run my own a year ago, there was one support for da Korea and so you couldn't run Docker on your brand, new M1 Mac. And so, yes, that was a bomber and ever since then I was very motivated to get that contains cloud. An MVP of it just so that I can run my own test. Well yeah.
27:07 So you guys decided and there's three of you in the company 1010 of. Yeah, there's 10. Okay. And when you started it before you went and got investment, how many were there? So the thing is our team kind of like Richard Cannon and I have been working together for the past, so I've been working with Richard for the pies past five years. Kevin join us around for years ago, and we've been always, cooperating on task containers in our spare time. And we were always your hobby was was working on. Yes, containers. Yes. So, we were always working together, but not like a company trouser, just taken some spare time, we do some things and when more than one year ago decided to Explore new opportunities because I've been to voters and Giotto got acquired by VMware and VMware was too big for me. So I start thinking what would be the next thing for me? I got approached by some of test contains users and it all does that he is running his business and they migrated the whole company to test containers is so happy with the disease has value and he's also an angel investor.
28:28 And he asked me like, hey instead of trying to find New job. Don't you want to start your own company as? Like, that's an interesting idea, let's talk. And then I shared some of the product ideas. We had because I have a few, but obviously, we need to start with one and you got, you got him excited. This is how we ended up thinking about the company and later. I mean, I instantly communicated to the rest of the core maintainers team, but then we ended up calf out, Getting the team together with Richard and Kevin join us as an engineer. Once we close the received round, and then we start hiring from our existing community of test continues users. So every single team member every single engineer on our team, they've been using test continues. And there is also funny story.
29:23 When one of our non engineering team members, she learns that her landlord He is a user of test continues. Now I imagine talking to your landlord and mentioning that you're working for company behind glass contains you like, oh wow, I know this technology. I'm using it crazy. Well huh, so go ahead. Um okay so you so did you start with the angel investor? Is that what happened? We and you see, they're starting small, it's an, get some traction, get some introductions, and ended up. Up like we initially were thinking about small check from an angel investor. Then we decided we want to go this year round. And we thought like okay raising 1 million dollars would be incredibly cool because like that's 1 million dollar idea like money, right?
30:17 Yes, that's a lot of my angel investor said, no, no, go for 10 million or something like that. No, it wasn't. It wasn't his cold. But rather us talking to more and more people and eventually we were Why? So little what my God. It isn't it isn't? It isn't small amount. Like but I made a good point that we have something big here and like to implement something big, you need a decent investment. And this how we ended up closing our seed round of four million dollars. And we got very lucky because thanks to our networks. Thanks to introductions, we were able to get in contact with They both start our lead investor, who were just named the best seed investor just in general.
31:07 Not only in devtools but in general, which is kind of cool. Yeah, but I can definitely say that they are really, really good because our initial thinking about VC companies was somehow affected by public opinions about them, right? Everyone would tell you that if you go the VC roots and you always be pushed for in all like increment, your Revenue. Like increase your Revenue just you know, like I know you know there's some old stories. Downsides. I've gone through the whole process myself of initially going. Oh the event vulture capitalists also happens that our yeah. Oh yeah. They're just they're you know, they're just in it and then eventually you begin to realize. Oh well but these are different come, they're just companies and their different groups of people and they all have their own characteristics and you have to find That is a good fit for you and those them all in tell you well right rather than just go oh I have some money.
32:06 I'll put it in there and then I'll annoy you about you're not making money my money back. That's know if any you have to understand. You know, I was like, well, they're investing and if their luck if they're good at what they do, they might get one in 10 and the other nine are going to be failures. And there's all this. And and then you begin to understand and you go oh a good VC is what you Want you you don't want the one that necessarily offers the most money or anything you want, the one that works with you and helps you and as you know, shepherding you to success. Yes. Then then it's a whole different way of thinking about it. Yeah. Go. Oh it come that is down. It really helps you Wells is that's what you want. That's what you want.
32:51 You don't just yeah. Anyway yeah. Well hopefully my that you were able to find I think a real Prada. It and business model around test containers. That, that existed. Like, I've spent a lot of my time working on web jars, which I think you're familiar with web dryers and, and it's a fun hobby, and, and all that. And I've been asked a few times, like, oh, could you like creative business room with dress? And I'm like, I can't think of any like legitimate business model around this, open source project. But Tess containers it seems like there's some some pretty good and pretty obvious like like real viable, business model. And so, what is your show? So is it the the service in the cloud that you pay for? Is that the business model?
33:37 So yes, it's the model where you would pay for for execution of your tests. And by the way, if you're not running your test, you aren't paying for anything which is great because we understand that especially for developers like some may just, you know, like run tests one per week because that's how they develop, While others, they would be running. Test every hour or every minute because they're very active, was that we're listening station tests. That's yeah. And but I would think also that people would maybe want Consulting And that's something we've been considering even like some years before we even start the company because we noticed a lot of traction going on, like test continuous started growing very fast and like a lot of companies lot of Integrations like it eventually became the go-to solution for testing. It is also advertised by biggest Frameworks out there. Like spring.
34:40 For example, they were recommending test, containers, red-hot and their products they were also really project. We've also Test containers. And when you get set level of traction, you start noticing that are chaotic. There is an opportunity, but the thing with Consulting, for example, and that's another way of starting a company could bootstrap it and then start selling Consulting, may be building some products on your spare time, between the Consulting gigs, but it takes a lot of effort and it doesn't scale. Well, especially when you have a topic that is very specific, especially when you create a new category of something, and And wow, for a big company. It makes some sense to start selling support for the project selling software nowadays. So for one thing is support and other thing. Another idea is to sell software like creating subject tests, continuous Pro and wow, if you're a big company, that makes sense.
35:39 Like, let's say if that's contains was Project by, I know, VMware with hard and others and you would, of course, expect to see. You a commercial offering of the project itself, but when you're starting and as the core model, where the score is open source and you provide some value, add on top of it and you have to pay for. But what I learned when I was at zero time around is that selling software is very hard while selling services like software, as a service is much easier to start with. And that's how we end up deciding that. Our first product will be a SAS product because It's also the biggest pain of our community, like they appreciate test continuously like the model, but then they always come back to us and say, hey, I'm having issues with stoker where I cannot run Docker in my environment, or my Docker keeps getting updated and things get broken. So, what should I do?
36:35 And as an open source project, you don't have that many options and we cannot Implement our own Docker because like that's a lot of work. But what we can do, we can just take this problem away from Sam, put it in our infrastructure and by the way, due to the specifics, we aren't just a single data center somewhere in the middle of the United States. But in fact we are an edge platform so that we are bringing workloads close to the users because their test code stays on their machines. And that's a good thing because first of all, you don't need to change your existing test like you just add test containers, Cloud to your existing test container stats base. But also you keep your test called your original source code and everything. Thing on your machine and the only communicate with container started on our platform. But obviously for that to be efficient, we need to make sure that we aren't talking to the data center in the United States from Europe.
37:28 This is why also for data privacy and other reasons is better to be local and that's what we are doing and you can integrate this into whatever people are using fear their CI system. So if people are on Jenkins, great just like throw the the test containers Cloud proxy into Cans and done. You don't have to think about how those resources get spun up or managed and, but whatever, CI system people are using, I guess I need to try the test containers cloud with like GitHub actions and I don't see any reason why it wouldn't work, but but I haven't tried that yet. Give that have some private be to users who been doing that already. And yeah, what's cool about test contains Cloud? The MVP is that in unlocks? So many possibilities, like we are We were never thinking before like for example, writing integration tests in parallel, because if you would run your containers on the same machine as your test, then contains most probably will consume hundred percent of CPU if your machine because they actually are heavyweight.
38:31 And if you run your tests in parallel, then your CPU always be shared between continuous and test. So they won't be as efficient while if you move the workloads to some other machine especially High performant Hardware As Cloud that your Docker will be as close to the hardware as possible as opposed to running virtualization. Mac, for example, then, you can dedicate hungry percent of CPU to your test, or maybe not hunger percent of CPU. Maybe you want to scroll Twitter and read Facebook and do things while you're running tests, why not? Because previously, you run your tests and then find start spinning and you just wait for them to finish. Now, you are adding this load. In your machine from containers because they no longer on your machine.
39:20 And there are no, that's clown the way of forgetting. So let's say that you had 100 tests that you wanted to run isolated against their own versions of postgres or whatever and you could run all those sequential but that would take a long time. So now you can just say, all right, test containers Cloud, spin up 100 instances of postgres and run all those in parallel and and those resources are in do it. Test is running and its own instance. Yeah, huh. If you wanted isolation of your of your test well isolation. And and speed I would say. Yeah. Yeah. And sometimes you do sequential, you know, they have to be sequential like you're going to, you know, add a row to a database and then do another test to make sure it's still there. All right, but but in cases where there you can't have isolation run them in parallel and let the cloud spin up as many instances as you want to pay for.
40:14 So you said you said earlier, Sure, that you were in a company, got Acquired. And that company was too big for you and now you're starting your own company. And you have 10 people, have you thought about, I didn't, are you going to go with the normal hierarchical business structure or have you thought about, you know, maybe doing something different so you don't get that too big Feeling Again. Well, the good thing about the cool thing about being a start-up is that Can be as agile as possible and as casual as possible. So currently, we don't have any hierarchy and we just work alongside each other and the higher Arc is, I think it's something that should happen.
41:00 Essentially and not like being forced to happen. So if we see it some days that someone would want to see someone on top of them just to notice a proxy so that you're not reporting directly but you get more structured feedback from someone like Some decision-maker than like let's say Engineers the more we grow the engineering team, the more we have a need for engineering manager like head of development for example head of engineering because then if you get feedback directly from product owner than you may not be ready for this feedback is feedback, may not may be too big for you because it includes some product Vision, some strategy and everything and you need, someone who'd proxies is feedback for you. Need someone who would ignore the product.
41:46 Vision part which is important for consideration but not important for the implementation and then we turn this knowledge into actionable items for you as an engineer. But we believe that when we will need it then this will be a signal coming from the team versus something that comes from the management saying that we are introducing this manager between us and you just because we decided to do so and Of course, there will be scalability questions, like, how to scale team Takin to. We are 10 and it's an unmanageable like, when you have 10 people. It's basically a team single team, but then more products, you have more people, you have. Like, when you are, I know certain Engineers. It's impossible to manage them all at once, not to mention having direct reports, but that's something that will learn over time.
42:45 We'll see. Interesting. Because the way you described the manager's job was more of an information filter, Guardian kind of thing. And you didn't you call them and decision maker but you didn't actually describe any decisions other than being a filter. Not telling people what to do, just helping them with information formation processing and saying. Okay, I'm going to say That that I don't want to I don't want to you know, add that to their burden this particular information. Where is this information? They do need to know, I think a lot of your organizational experience comes out of Open Source and how information kind of flows and is managed and scaled, and open source.
43:37 And I think that that's influenced your perspective that it's like, let's let's go to the level of what people need and People need an information filter then you can put in information filter in place but they don't have to be a decision maker. Well the higher the engine, the engineers may say. We need somebody to make these decisions for us because we don't want to be responsible. I don't know if that's reality or not but I don't know. I guess in well, if the engineers want the hierarchy. Yeah, I mean, basically that's it. That's that's what I encountered is. Yeah, just because you don't want the hierarchy doesn't necessarily mean that the people Who are quote unquote under you. Don't want the higher are, they may feel more comfortable with having a cousin that's right now.
44:24 It's what they're used to. Yeah and I are thinking about our own company. Definitely comes from our experiences of being engineers in teams and being a lawyer's, an optic business owners because it's our first step first time experience of running a business. And while both of us Richard and I, we had an experience of running teams and working in fast-growing start. But strutting the teams and everything with we were still liking this experience of just being like the owners of the business and the best way to learn something is obviously first of all to learn from others experiences and also to kind of do thing. What, how would you like to see yourself? Like if I were a developer in this team, would I be satisfied? With me acting as CEO or there is something that I would not be happy about and you can like it's sometimes a balance between things that have to be done and things that can be avoided, and it's important to identify things that can be avoided. When we talk about some, let me not negative aspects but like, aspects, that reduce the productivity of the team. Because our biggest Focus right now and especially for me as a CEO is to make sure Is that our team as productive as we deliver that?
45:49 We have everything we need to deliver what we wanted to deliver. And that includes clear understanding of what the goals are, why we are doing things. But I mean, how we're doing things because first of all we have Richard our CTO for that but also we have an amazing set of amazing Engineers like a team of amazing Engineers or team and we trust them we believe that if we Let them be productive. Then we'll see. The return will suspect and they work remotely all of them. Yes, we are fully Global. I think first company. And we have team members in Germany and Poland in Estonia, one, Russia in UK, and I am in the United States, New York, and do you.
46:38 I've sort of, derailed this for the technical aspect. You have more technical questions you want to ask, why I wanted to. Talk a little bit about like where you're at today you have test containers cloud in private beta and test containers. Open source is still cruising along and and you all are investing in that and making it more awesome. All the time. What else is exciting are? What's upcoming? What's what, what can you talk about that? That is, you know, on the horizon for for desk containers. I guess what changed for us when we start company is that now is there, Is an entity to reach out to because previously, it was just a group of people working on project, and you cannot even stablish a commercial partnership with them because you cannot establish commercial partnership.
47:27 With is nothing, just an adequate need to have this entity. And when we started the company, we start getting some big fast. So for partnership by vendors, by as a companies who are doing similar things and our space is of testing and others. And this is great to see. Because now we have had means of establishing let's say programs. So let's say we have modules for Technologies, for databases for postgres, for elastic, search for Kafka and others. But this modules were mostly created by us and then some contributions by the community. And sometimes you would be surprised, but like, we're seeing some great contributions from the community for some commercial modules to lets a goooo. Out module was contributed, contributed by external contributor who isn't working on Google Cloud, but who's using Google Cloud himself?
48:24 And a do is an active contributor to many open source projects including a lot of spin projects. But it was in Google cloud and he decided to contribute a module to make it easy to test, Google cloud services with test containers. But one would suspect that this module would be the result of cooperation with Google out at sea. Or elasticsearch module was being wasted, a lot of contributions from elastic like some of the folks at elastic and by the way test contains going is currently being coming to in by an employee from elastic who are using it extensively and contribute back by maintaining it but it was never, it was never clear whether some of the modules are being maintained by the vendor or just by us.
49:16 Because if it's the result of a collaboration with vendors and you trust him module, right? Like you would know that this is exactly how vendor would do it with SAS containers. While if it's by us, and maybe some things won't be working, maybe we did something incorrectly because we the test continues team. We have experience with many Technologies but was not all of them. And sometimes when people were requesting, some modules to be added, we had to learn them first to implement them, which is a great experience for a software. Wilbur because we ended up knowing more Technologies than an average developer would know because we had to integrate with all of them but it's still a knowledge to keep in your head, while what we can do. Now we can establish this so partnership, we can have vendors work with us, directly on this vendor supported modules. I'm not talking about commercial support as in, you can go to them, pay them and then they will fix your issue. But rather have It's someone from Sam to work on the module together with us to make sure that their users because we have a lot of database vendors who delegate testing of their Technologies to us.
50:32 Such as now for J elastic storage couchbase, Kafka Apache, pulsar and others. Like a lot of Sam. They just recommend test contains when their users want to test their Technologies. But now we Have them and we can gain this expertise from Zam and improve sometimes even improve their Technologies there. Docker images, let's say to make them easier for testing because sometimes we apply certain optimizations to make them start faster because for testing, you don't need the persistence. Let's say, you don't need to write to the file system. If you can keep it in memory to make it faster because it's testing. And while currently, we research this flags and we Tunes. This internal settings we could have something like development mode by the database. Imagine if every database would come with development mode so that you can start it fast in a femoral State. Other than you don't need to know how to configure it based on production configuration.
51:35 But rather something for development some do provide that. Let's go. Yeah and the other thing I'm thinking of along these lines is I remember Mark flurry. Founder of JBoss here. One point said that one of the biggest values or maybe the biggest value of Open Source companies is their brand. And I was thinking about how how may be an opportunity is that with test containers, let's say the confluent they, let's say they found value in the test containers brand. If there was if test containers, Could Have A Brand like, Like organic to use the organic brand, you have to have done a number of things and you know, paid money or whatever but what if confluent could say yes, we are test container certified or whatever, and then they had to pay money and do they had responsibilities in order to use that brand?
52:35 But then you could be like, yes, like like confluent has has a test container certified can test container or something would be an interesting option for those those There's this reminds me of the tck by Oracle is that if you want to have a certified Java versions and you need to posit this again to obtain it, you need to pay Oracle. Yeah, that's something. We may consider doing the future just as an additional two to the platform. Really that we are building here because test continuous is first the first tab but then we'll have many more and our end goal would be to have tasks contains platform. Just go to Lucien for developers in only for developers, like Ryu, our developer only company like we focus on developers because that's what matters the most for us.
53:23 And we believe, there is a great opportunity there. But we want to make sure that every time a developer needs to test their code, then we'll provide them all the tools they need to make it easy to make it fast and not think about question, how do I test? But rather focus on writing the test and then getting it green and making sure that Has the correct thing. Yeah. Integration testing as a service member and that was like the hot thing is like, everybody wanted to be something as a service. Yeah. Yeah. It's not anymore. Well, now it's serverless. So, serverless integration testing. That's? Yeah, yeah, yeah. It's it's, it's on the face of like uber.
54:11 But for so, so Atomic jar. It's Uber but Or integration tests that doesn't work at all over whatever that means we're staying on it. Yeah. Yeah. They've been washing that statement if it's getting better so you abuse people as a service. Ouch chance is a service. Okay. But Jokes Aside ten years ago the majority of testing was done with selenium browser testing and QA teams of two mating browsers with selenium. When you think about it test containers to Docker is what selenium two browsers because have browsers, as the way of opening web pages, then you have selenium to control the web pages and basically test contains becomes South Slavs and browser, stack and others for selenium.
55:05 We just take this browsers from your machine because then you're no longer play. When you run, selenium testing your machines and you need your browser to be open so you're not productive while few moves. Is browsers to the cloud, then. Not only we can run into some exalting browsers such as Internet Explorer, is it? Cannot find Mac OS. But yeah, it's a, it's a similar thing here. But now that we focus on developers, now that we shifted to the left, then we also talked about the idea of developers being the ones who tests and developers are different pieces. They aren't using the same tools, they aren't doing browser testing. They need some things that is Those two what they need to do. An integration testing, is The Sweet Spot because then they understand how to perform it and they need new tools and test contains easy to hear.
55:56 Yeah, I think this is burying the lead this. That's what you need to start with test containers is to darker. As selenium is to the browser. Yeah, yeah, I can do it at that, right? That kind of is a good starting point. Yeah, so one other topic I want to head on to wrap up was that? I love using test containers for things that are like open source Services. The one Gap that I run into is when I am integrating with a SAS platform like GitHub or Salesforce or whatever it may be. And that's the place where my integration test still need to talk to you. You know, the real service because there is no like GitHub. Like I can't I can't like call the GitHub API. As our get a web hook all like without without using the like real production, SAS service.
56:54 And so I hope that in like five years somehow were able to like test containerize even though SAS services in some way you could clone GitHub to your local machine. Yeah. Like yeah. Like somehow somehow get Hub ships with a container that is API compatible with GitHub but is not GitHub. You know as an example and like you could maybe do this through like mocking their API. Like I've seen some attempts to like record API calls and then create a service interface that is based on what it saw in the past or something like that. But so how do you do that? Like, if I create say a database and then there's the test container for the database and I make some What what keeps the test container in sync with the changes there, any tooling to make sure that your make that happen automatically, so when you're writing your integration test you will just have your you're like, schema setup and then you'll have some some way to bootstrap your your test data, or something into the database.
58:08 So, usually when you write your test, you'll say, here is the setup that I need. So that then I can run my tests. And, as part of that, Set up, you will Define all of the pieces that need to go into your database and shows the user as a as an integration test developer, right. I'm talking about from their standpoint. So you know here's a tool that has been adapted for test containers and then they change their API. And do they have to just go by hand and fix the test container? Oh, I think I understand the question. Like how? We keep our definitions up-to-date with evolution of the underlying Technologies.
58:53 That's actually a good question because that's day to experience for testing, Library. How to keep it in sync with the underlying technology. And while we got lucky with most of the modules that we had, that did not require a change in what we do because we operate on this level of obstruction Docker. And most of the times they're Docker images are Compatible because exit the same way how we start them? The command is implicit so we don't need to know it. Most, probably, in some cases, we actually had a dad, some level of compatibility with both versions and there were some minor cases where we just like different environment variable. We need to set and then we can just set both because they won't be Fanning if both are sad. But sometimes you also need to go as deep as understanding what the version of the images and then Depending on the version you would do different actions.
59:49 And that's actually the good thing about test contains being programmatic being a library versus a to. Because if you had some food, let's say, Docker compose. Then there is nothing you can do because you have this declarative llamo file. And everyone loves the arm, of course, and then you cannot just do conditional logic based on the image that is being used. All right? And also Docker compose now knows nothing about the underlying She nor it nor it is testing, a rented, is general purpose solution and we are focused on testing, so we can assume things. But in plastic containers, we can, for example, check the version of the image that is being used and then if it is possible with version 3 of some database and we do X. If it's compatible version for we do y, and then this is all part of the startup pre-configuration. Definitely can do program programmatic way. And we just have this, if else, if else. So that's how we keep them compatible, with Evolutions. Container abstraction is leaking some something through the, then you have to deal with but thankfully and test containers, you have the opportunity to deal with that. Because you've got the programmatic logic to that spins.
1:01:08 That is controlling the container and its inputs and it all sounds very smart and at a good level of abstraction, could you create? Eight a build tool now please solve the build tool problem next to nothing to do with please. Yeah, yeah. But to compensate that I also should mention that we weren't always smart about what we do because sometimes we managed to leak some of those implementation. Tell something that we start doing. For example, for local stack, one of the most popular models for test continues. We were exposing a depressed. To get classes. And then what happened is it erases Decay release version to where they change the package, change some condition details. And now you literally have to bring a SS SDK version one on your class pass just so that it can start. And while it's very unfortunate, we also care a lot about backward.
1:02:06 Compatibility compatibility of test continues, I've seen people migrating from test contains one point four point two, which is four years old I think or five years old. Okay, four years old to the latest and greatest just by changing a version in their build file and nothing else. And luckily we had this expertise of how to keep things backwards compatible. But now that we have this promise and we want to keep the promise, we cannot just remove some method because it exposes say, the words has decayed. Just because we want to support what we want to get rid of it, but what we always do, we always make it so that It works with the newer version of the SDK. Just, yes. Okay. Unfortunately, you have to keep this dependency, because that's how it was.
1:02:55 But, every new modules that we create, we set it as a rule that we never expose sort party types to our public API. And there is also this famous. Most famous thing about our API is that we depend directly on June 24. Because when test contains started six years ago, Gene for was This solution for running tests. And while this dependency is optional, if you think about it, you can start those containers by just doing something like new coffee container Kafka, don't start. You don't need your unit rules for that. You need anything from G-Unit. You still have to have dreamed for on your class pass because we extend directly from one of June classes and that's unfortunate. I understand that we understand that very very well and we have integration with June 5 there is an equation with constant Test with color test and with spec something-something for Scottish a to expect. Yeah.
1:03:53 But you still have to have Jean Fournier class. Plus it's while we are working on new version of our DSL of our apis, that would not require G-Unit at all. That would be geometry. Hashtag gen3 and it will solve some other things like recursive generics and others butts. That's a result of six years of working on an API for testing and every time I hear about someone considering just, you know, like doing something like test containers but from scratch or you know, like why don't you just do it with kubernetes? Then I only have a smile on my face because I've been there. Done that. And I understand what Triad and learn your lessons. And, yes, yes.
1:04:45 What will be next for? Like the issues, they will hit next, which also gives us an advantage as library because we are so I had with all these things. But we always improve what we're always improving. Awesome. All right, well, we will wrap up on that but sir, you thank you so much. So good to learn about test containers. Thank you for making the world of integration testing better. And for those of the listeners that haven't tried test containers were Atomic jars, test containers, Cloud, yet. It's in private beta the test containers Cloud. So you can reach out via the atomic dry website and and give it a try. It's amazing. Yes, thank you.