06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · Lobsters · · 32:53 runtime

Derivations to Deployments: Practical Nix in Production

Comments

In the wiki NixNixOS
Transcript 6956 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Uh, I'm John Murray. Uh, most of you probably don't know me, so a little bit about myself. Uh, I work on developer experience at Antithesis, where, uh, I help make internal tools to make our developers make software that works. So, you uh, can use our product to make your software work. Uh, I've been a Nick show for many years now. And this picture is me basically anytime I see Nicks mentioned online. I just absolutely love Nicks and I've loved talking about it. Uh, and when Isaac was telling me what I could talk about uh, here at this conference, he said, "Feel free to talk about Nicks." Uh so if any complaints the shilling gets too hard, please direct all complaints his way. Uh but to be real, this conference is about software reliability and it working. And I believe one of the best ways uh you can help yourself and your team gets working software is through reproducibility everywhere. Uh so if you have reproducibility at all layers of your stack, that helps you make better software. If you can reproduce any bug you found, you have basically infinite chances to fix it. Uh if your developer environments are reproducible, you're less likely to have the dreaded it works on my machine. Uh and if your local environment is reproducible in the cloud, you can be much more confident that your changes that you tested locally can actually work in production.

Uh and you know to hit this harder, the uh if you have a reproducible developer experience, uh devs spend more time doing the things that actually matter like you know testing, you know, going through all the processes. Uh they'll be spending less time fighting their environment. they'll get faster feedback loops and you know hopefully you have a sane golden path that all the developers are using. They're not you know relying on random readmes or old company lore of how to get something done. It's all you know checked into the repo and uh you know will be uh used by everyone. So the things I'm going to cover in this talk is you know how using Nyx we can get you know reproducible developer environments uh reproducible actions and reproducible cloud deployments. So uh just a show of hands how many people have actually used Nyx at all? Okay, sick. A good good amount. Cool. Uh, so first let's just look at some Nyx code and we can go from there. But Nyx at a high level is a uh a programming language, a package manager and an entire Linux distribution. So in this case, this is kind of all the different um you know syntax and things you can do in Nex. You can declare variables, write functions, um you know make objects, import other files. And it's basically if H hasll and JavaScript had a baby. uh you have a pure functional language uh with laziness but its type type system is basically non-existent. It's all runtime. Um and but the reason that you want to use Nyx is that it provides reproducible builds and you can use that to you know build a entire stack to make your entire process reproducible. Uh so at the bottom is very a very simple Nyx build. You just can echo an output of this is a build to a special output file and Nyx will track it all for you. But to make builds reproducible in Nyx, uh Nyx will track all of the inputs to a build, including the recipe itself. Uh each build gets its own unique immutable output that is tracked in the Nyx store, which I'll show in a second. And each build runs in a sandbox with uh very limited network access and a standardized environment.

And when you hear the word sandbox, it might be like, isn't that for security? But I think sandboxing is one of the main ways you can have a reproducible environment. the more and more you know what is uh you know what is around your code the more likely that it's going to behave the same way every time. Uh so this is like the you know how you would like use the Nyx language. What is like an output look like? Uh so in this example this is uh the git binary that you would produce with Nyx. And the first thing you can see there is a little hash. Uh and so that hash is every input that the the build of git needed. So if you change anything in that pipeline, you're going to get an entirely separate output. Uh that way you can have, you know, say 40 different copies of git on your machine and they'll all be behaving independently and won't be clobbering each other. Uh and second, Nyx makes sure that every dependency that that build is using is explicit. So if you run ldd on the git binary to see all the different dynamic dependencies it needs, uh Nyx pins them to explicit other paths in the Nix store. So it's not depending on any global state in your system. It's using explicit references so you'll always behave the same. So if it's working on my machine, it'll work on your machine.

And I think a lot of people, this is as nitty-gritty I'll get with Nyx. I'll kind of from here just showing you how you can use it to make um reproducible environments. So I think everyone's first step into Nyx is probably through Nyxos. And Nixos is really sick. So this is a very simple Nixos config which helps you have an entire Linux distribution for your system. And in this case, we are setting up Gnome, maybe getting Podman for a container runtime and installing some packages onto your system. And under the hood, we'll take this definition that's a very declarative style, very infrastructure as code kind of vibes. And it'll create systemdunits, sim link files from the next store uh for different uh config that programs might need. And it just makes this whole declarative config a reality. And one of the really cool benefits of this is that at the end of the day there is one build or derivation that defines your entire system. So one Nyx output is your entire uh you know computer. And this means you can roll back to previous versions. Uh and let me tell you this is one of the best things to do with Nyx OS. So just because your config is declarative doesn't mean it actually works. Uh you know many oftent times I'll be playing with my config and say oh I want to switch to a different desktop environment or try some new program. I go to load the the new config and then now my networking driver doesn't work or my keyboard stopped working or my GPU driver is all all screwed up. But on a normal Linux distribution that would be a giant pain in the ass and you have to, you know, edit files from uh a TTY or something.

But in Nyx, it's fine. You just turn it off, reboot, and you can go back to the old version and it's like it never even happened. And since it's all in code, um you can share config very simply and easily. At Antithesis, we have a shared module that all of our developers use and I can roll out updates to everyone and it should just kind of work on all their machines. Uh, for example, at Antithesis, we had to roll out a VPN that was kind of custom and had to hook into a lot of internal services. And I just had people pull the config, run an update, and everything just kind of worked. I didn't have to tell them to read like a 30-step document of how to do everything. It was just pull the code, rebuild, and everything just uh kind of deployed. But with that said, uh it's not a silver bullet to just use Nyxos. You know, you can't just trust that everyone in your team has the exact same Linux distribution everywhere.

People want to customize their setup and use their own different tools. So, we don't want to force them to have the same config. So, how do we actually make this work on a project level? And just to have like a basic idea of like a project you might be working on, let's just say for fun, we have like a front end in TypeScript, a back end in Rust, and maybe like a Postgress database. Nothing crazy. Don't really worry about the internals. Just know this is what we're working with. So if you take anything away from this talk if you're not a Nyx head is just set up a a nickshell. So at the end of the day a nickshell will help you specify all of the different dependencies that your project needs. So since we have you know front end in typescript we need noode.js we need uh cargo and rust c for the back end and we even have all of postgress as well in our nick shell. And uh all you have to do is when you're using this shell is when you're outside of the shell you have nothing. you don't have cargo or npm or whatever, you can activate the nyx shell and then now you have cargo and npm pointing to explicit nick store paths and then you can use the tools as normal. And this is honestly a great like 80% solution to get reproducibility everywhere. It's like using rust up or mvm or the one million different uh version managers that you might be used to, but it's all one tool to configure every tool your uh system might need and it you know will work forever. So if you come back to this project six months later, you'll have the same exact developer environment. Uh but this is great. This is just using, you know, the normal tools, you know, but how do you get the same retro boob Nyx builds for your actual project code? So in this example, Nyx packages gives you a lot of helpers to make this easy. Um so for example, we can just point at our source code for our front end and our back end and use these special builders for building node packages and building Rust packages. And that's all it is. This is just the build. There's a lot of like I think uh fear of people using Nyx because you get crazy errors and everything is kind of confusing and that can definitely happen but there are a lot of cases where you can just do simple builds and things just work. The one caveat of weirdness is these hashes. So in Nyx like I said there's a sandbox for everything. Uh Nyx restricts the the networking that builds can do so. So that way you know it doesn't just fetch random things without you knowing. So to allow network access you have to specify the hash of anything you're downloading. That way, you know, if it works, uh, if I download something and get a different hash, the build will fail. And this is how we force, you know, reproducibility while still letting, you know, network access as you might need. And this is all sick. This is great. You have builds locally now, but how do we actually deploy these guys uh to an actual, you know, production server? While you could turn this into Docker containers and then use like normal orchestration tools that you might be used to, Nyx has even uh a cooler feature that makes deployments very simple. Uh, Nyx has an idea of a Nyx copy. So that basically takes uh a build on your machine from your Nix store and sends it to a remote uh machine. And it since it knows the full closure of every build, it'll only send the things that machine doesn't have. So say you're iterating on a build over and over again, you can just send the top level build, you know, just the binary and even though it already has all the shared libraries. And this is kind of sick. It gives you the same kind of uh power of static builds for anything that Nyx is building. Uh so a really common approach that uh I use when I'm iterating on something is to nyx copy a binary to a server and then just sh in and run it. And for a lot of projects this is a really great development loop.

Uh you don't have to get clone on that on that server and do your whole build process or push containers to a registry. It all just kind of works using cool primitives. It gives it really hearkens back to like the good old days when you could SCP some PHP files to a server and then a website was live. Uh it's very very awesome and this gives a really cool extra benefit uh as well. On top of this, you can use this same tooling to get uh a build cache for free. Basically, you can have a CI server run builds on every commit, push that up to S3 as like a little binary cache and then all of your developer machines can trust that binary cache and anytime Nyx will do a build, it'll be like, "Hey, cache, you got it. Cool.

Send it my way." That way you don't have to eat, you know, a potentially hourlong Rust build uh just because uh you wanted to pull the the project. So that is kind

of where most Nyx guides would stop. Uh you know, you have Nix OS to get your whole system and you have Nyx uh shells to manage your you know, repos and some basic builds. Uh you know, we have builds for all our services. It's locally reproducible, all declared in code and it kind of just works. And that is sort of true, but I think there's a problem that a lot of Nick's uh you know guides will stop at, and that's that scripting is still annoying. Uh we have all these tools installed on our systems to get our programs built, but that's only like half the battle to get a uh some software system working. We need to make sure that all of the logic surrounding and running our system and deploying it is actually reproducible as well. So for a little example, uh this is just a screenshot from the Kubernetes repo where they have a directory called hack and it's a bunch of little scripts and uh developer tools that they have in there. So there's a lot of things in here. There's like spin up a local cluster, um update docs, run codegen,

lint, and run tests. And having these things as scripts is obviously miles better than having a readme that you're copying and pasting from. Uh but you know, there's implicit dependencies these scripts might have. say, you know, they use some random tool, so you might have to remember to update your shell next to put that tool in there. And while they're all at least in one directory, like Kubernetes at least had the foresight to do that. I've been in many many projects where scripts are scattered all over the place and it just are a discoverability mess. And there's no like, you know, there's no nice tooling on top. Like a many uh projects will use make or just files or something to kind of organize all these scripts and it just kind of sucks that it's just one giant directory you have to sort through. Uh so you can kind of address

some of these problems with more more Nix right uh so you can just write a shell script anything in Nyx uh anything to be a build in Nyx really so why not shell scripts right um so we can specify build inputs to this uh script where we can say hey use node and cargo and you can use the normal things you do and this like kind of works but then you kind of end up with uh a nick shell file with million millions and of of builds just to have all your tools in one spot and you could be smart and use the Nyx language. It is high level language to organize things but it just be kind of becomes a pain and uh a lot of scripts might be doing very specific weird builds. So for example at antithesis we will have uh certain builds of some of our programs that like you know turn on asan or turn on feature flags and if I'm not really developing those things if I like activate a nickshell where it tries to activate do all those builds uh that just kind of sucks that I have to eat that cost. Like Nyx at its core is lazy.

Why can't I have this laziness in my actual development loop? And so at antithesis, we kind of took this idea and made this idea of a command set. And all it really is is a Nyxbased CLI framework uh that is just a wrapper around Nyx builds. And we add some extra nicities on top to get like autocomplete and help text and all that good stuff. And it's just little bash snippets and we sandbox it all to give even more and more reproducibility. So at its core, you can specify a command set just like any other Nyx build and you get a little um dev CLI you can put in your shell.

And to define your builds, uh you can have a little organization of uh at the bottom you can define a command. We have a little helper. You write a bash script and it just kind of works in three lines of code. And you can do sandboxing uh to wrap each script. And in this case we're just setting the path because you know even though Nyx will add things to your path, we don't know what else is there. So we might want to restrict it to just be what we know. Uh to kind of go into more in the sandboxing uh at its core

again like uh sandboxing is our main way to give reproducibility. We want to lock down what you know is wrapped around each of these scripts. We don't want it to see more of your file system. We want to only see the parts of the project that matter. And we might even want to do some network isolation or anything like that. Uh but we can also do like kind of boilerplate things in this function. we could fetch credentials uh or you know look up different things from uh AWS and we can kind of recreate docker from first principles uh you can use tools like bubble wrap or pasta to do more isolation from these commands uh and it's just a really powerful thing to have the generic sandbox that you can wrap any command in and you can take these kind of um basic kind of scripts like I was showing before uh for and organize them in much nicer ways you can even namespace them. So in this case, you can run dev test front end to run your front-end tests and dev test backend to run your backend tests. And while these are very basic examples, it is nice to have them organized and not in some giant readme. But you can have some more complicated examples all for free. So this uh don't you don't really have to care what is actually happening.

But this lets us this is a tool we have that helps us inspect uh podman images. Uh at antithesis we'd work with a lot of uh containers from customers and it can be a pain to see what is actually going on and internally many people had send messages around on our messaging platform to how to mount a container and get a ripple in there. But it was kind of a pain that you had to remember and copy paste all these commands. But with Nyx you can just make a very reproducible script that they can just specify a podman ID and all this magic happens. is even building an inner script in line and you can do as many complicated builds as you want and you have all this templating power of Nyx to make it work. Um, and we have a lot of tools in antithesis to make this happen.

We uh for other kind of tools like this we can attach GDP to our different services, do up heat tracks, do live reloading of our front end. Basically all the random kind of things, Nyx just makes these tooling a lot easier. And while this these examples were kind of like dev and testing kind of things, you can also just do the full serving of our app. Uh so we can use the same builds we already had for building our front end and back end and just hook them up to do use the same reproducible builds in the actual running of our scripts. This way you're not relying on someone's like node modules or uh cargo or crates directory. Uh everyone's using the exact same builds to run the app. This is the exact same builds that are be running in production. Uh and I think one of the surprising things about this kind of uh setup of uh how easy it is to make different commands and scripts is that people uh made ones I wouldn't expect.

So at work we have a little command someone made to we all are all in office and there's a metro station near our office. So someone made a nice command to just say when a train is coming and I would have never expected that uh our tooling to do our reproducible builds and uh to you know serve our different uh services would be so easy that people are now hitting our metro API just for fun. Uh [laughter] so where are we again? So now we have our builds working. We have our reproducible builds and now we have declarative CLI tooling and a fully uh reproducible runtime for all of our scripts. Uh but we have yet another problem and that is that deploying a distributed system is really hard. Uh you know obviously there's the normal distributed proc distributed systems problems of like network faults, machines dying and you know network partitions anything you can think of all of those are still real and still a pain and you know if you need help with that come come talk to us at antithesis but uh what I want to focus on is how you actually deploy them and there's a lot of deployment pains when it comes to deploying distributed systems. Um, in a distributed system, there's not like one version of it all. Uh, you know, you might have a multi-reo setup, so you never quite know what is all deployed at once. Uh, and you know, locally, I might be developing with a certain, uh, check out of all these different services, but I don't quite know if that's what's going to be deployed. If you're doing rollbacks of individual services, I may have not tested that combination locally, and it can be kind of a pain to uh, reproduce exactly what happens in prodally. And I think one of the the more annoying ones that I think is a fairly hot take is that uh crosscutting changes are really tedious for no reason. Uh like API contracts are lies and they cannot hurt you. Uh [laughter] what I mean by that is like I have a few services. Why do I have to care that about backwards compatibility because they might be deployed in random orders?

Uh I have a monor repo. I see all of the services on my check out of the code. Why can't I just deploy them all at once and not have to care that I'm breaking in this weird state? Uh [laughter] like and this and I think this is kind of taking over a little bit in like the you know TypeScript JavaScript world where like things like Nex.js and spelt and all that stuff have all these serverside functions because people just hate having to think about that. They just want to look at the code and know that the front and back end is going to be talking the same language. And finally, it's just kind of hard to reproduce the exact state. you know, if something goes wrong in production, I have to look at each service and then say, "Oh, it's running this version or this version and this version." And it could be a pain to know uh how I can actually reproduce that. It'd be really great if there was like a first class way of saying this uh ID is what is deployed in production. Uh but we kind of already solved that for a local deployment, right? Or local de uh development. We have this tooling here to run our uh our nyx builds in a very consistent way. you know, we're using all of these reproducible full builds to run the front end and back end locally.

Why can't we take this uh this same tooling and use it in production and at antithesis we uh do kind of have a solution for that and that is what we call like deployment manifest. So we can take and wrap those commands we build them all uh and put and track each uh command in a little JSON file. So for example, we build the full front end thing with its sandbox and full the full backend and with its sandbox and track the next store pass in this uh JSON thing and we can upload all of these builds to a little binary cache so that way everyone shares all the builds and uh we can take a hash of this deployment to get a deployment ID and we can upload this JSON to a little registry. Uh and so if uh we can I'll just show an example at least. So basically we have a little service that can orchestrate and uh create this entire deployment. So a request will come in with an with an ID.

It'll look up that ID in our deployment registry to figure out what the JSON of each command it needs to run. It can then spin up empty boxes and tell it, hey, you're running the front end, here's the next door path. You're running the back end, here's the next door path. And each of those guys can then fetch from a binary cache uh to get

all the closure. So they'll be able to nyx copy basically the entire uh closure of what they need and run that uh from uh scratch basically. And what's cool about this is that each uh machine here knows its full deployment. So it could for example spin up more backends if it needs or spin up a random uh you know batch process background running job all in shared in the same deployment and be consistent. And what's really cool about this is that if you need a new service, say you want need a new backend service or you're spinning up another database or anything, all you need to do is add another bash script, throw it in that command set, it'll put get put in our deployment JSON and all the same infrastructure would take over. And all of this is deployed in a very consistent way. We have a JSON manifest for everything in here. And this is all sick and great and it does work as a really nice deployment mechanism. Uh but one of the unintended benefits of this is that you can have multiple copies of all of our services running with the same underlying infrastructure. Uh because all each deployment is fully self-contained. It's only talking to other things in its same deployment. You can trust that it's all, you know, fully isolated from each other. And at Antithesis, this has been super super powerful. all of our developers can develop in a production-like environment and not have to worry about clobbering each other because, you know, we're all uh can develop locally and use these same primitives to deploy in production with the same amount of pain. There's basically zero uh and we can since we're developing in production, we are very confident that, you know, when a customer starts to use these different builds that we're using, we have used it in the same environment. So, we're fairly confident that it's going to work for them. Uh and what was really cool

about this is we realized that we have you know a content address URL for each of our things. So we get things like branch previews basically for free and

uh basically if I wanted to take have you take anything away from this is that we have reproducibility all the way down on our stack. So, Nyx builds tells us what runs. Uh, command set will tell you how it runs. And our deployment manifest will tell you what runs together. And all of these are explicit. It's using the same process for your, you know, local machine, in CI, in a preview environment, and in production. They're all not using separate configuration languages, separate tooling. It's all the same thing throughout the whole stack. And this level of reproducibility and confidence is super super awesome. You know, developers, since they have this confidence that things are just going to work, they can try out new tools. They can break a whole API contract. They can do whatever they need to do just to see something working in production. And basically the more you make your processes reproducible and uh your developers can focus on the things that matter and that is you know making your software actually work and not have to worry about all these different pains and of these deployment processes. So with that any questions?

[applause]

[applause]

Uh, good talk. I'm also a fan of Nyx. I

am wondering about channel versions. So, one source of impurity in these is the specific Nyx package version that anyone installs when they run Nyx shell. Do you pin that? >> Yeah. So, in our repo, we have like a file of like, hey, here's our, you know, golden uh pin. And that way we know everyone's using the exact same thing. >> Yeah. Cool.

>> Hey, thanks for the talk. This is a bit of like a practical operational question. So, so you in in this example with the back end and the front end, let's say that we also have a database and let's say we do a schema migration and add a column to a table and all of a sudden we realize actually no, we got to roll back and we got to, you know, remove that column from that table. How do we you know this database is outside of our kind of perfect pure nyx managed world. >> How operationally in practice how do you handle that? >> How do you guys handle that?

>> Yeah. So at antithesis we kind of have two styles. So this deployment style is really uh beneficial to we have a lot of long running kind of ephemeral jobs. So we spin up multiple services for like three hours and they die. Uh we still want an API in there and a backend and all that good stuff. Uh but for the things that like need to rely on outside state, we've we actually did this very recently where we had an API server that had to talk to a database. We basically cut it in half and put the backend that talks to database outside the deployment. So that's like something managed by like Terraform that is like sort of long living and managed with a different process. That guy is the one doing schema migrations and all that good stuff. So we only have one layer of like API contract coming into this pure world. It's sort of like, you know, this is a really stupid take, but it's like wrapping your entire deployment in like an IO monad. Like it's pure in here, but over there, this is where the the pain is, basically.

>> Makes sense. Thank you.

>> Semi-related to having to deal with

things outside of the NYX uh golden sort

of column. Is there any sort of like easy tooling that you know I know the Nyx like reple exists where you you can

evaluate der derivation sort of in the shell and see what the actual inputs are to you know oh this evaluates to this

awful LD path you know like ah like is

there any sort of like existing websites

that make that more intuitive in the

sense sense of like debugging a build gone wrong or like just exploring what's going on >> or like giving developers who have to

interact with changing derivations to

get to where they need to go. Um, obviously that's like a very difficult thing. >> Yeah, if I said if there's any number one complaint with Nyx is that that is the hardest problem. But how I kind of view it is at in antithesis at least there's a few of us who kind of are the NYX heads and I I kind of take us as the painaters. We're making this beautiful world for everyone else to have hopefully nice abstractions on top. Uh but with that said I think the NYX documentation is getting better for this stuff. Its error messages are getting better. I think the last couple years the Nyx community has really you know put a lot of work into making this more of a nice experience. So hopefully that kind of helps. But and honestly AI tools are kind of go to NYX because it's so declarative and it it does make it a lot uh easier.

>> Consult the oracles. >> Yeah, basically. [laughter] >> Yeah.

>> Hey, thanks for this great piece. Um as you know, as of fiscal year um 2023, all

developers who insist on reproducible solutions were left behind. So I'm wondering if you could account for your continued existence. You don't have to take the bait if you don't want to. [laughter]

>> Hello. [laughter] >> Uh, I honestly have no idea. I guess you know, reproduce video everywhere. Why not? Yeah. [laughter] >> Okay. Thanks for the talk. Uh, I'd like to to ask you something. uh what is uh

are you running on a specific uh distribution such as Nix OS or is or do

you Nix only the Nyx package manager on a distribution of your choice? Oh, say again, sorry. >> Uh, are you using Nixxos for doing all

your configurations or Oh, Nixos. >> Um, so like we use a lot of like at Intis everyone has a Nixos config for their system at least if I'm understanding the question the question correctly. So there's like Nyx Nyx packages and Nyx OS. So like Nyx packages and Nyx is kind of like the build system and package manager and that can be used on a lot of different machines. it could be used on Macs or Linux or whatever and Nyx OS is you know the full distribution so you're bought in you're all on Nyx uh you know on Linux configuring your system that way was that kind of what you're getting >> yeah exactly that was the question just uh I was wondering whether uh this uh

all this setup is applicable to let's say ordinary distributions such as uh Red Hat Ubuntu or anything else >> yeah you can use basically most of the tooling in our repo itself could technically be used on other distributions. The fact that we're on Nixos does help a little bit more, but you could even do this on a Mac kind of. Uh, and there's even like Nyx OS like things on on Mac called like Nix Darwin to give you the same kind of power. Uh, there's a lot of tools that kind of give this same uh vibe on a lot of different systems. >> Okay, thank you very much.

>> Uh, related to that question, maybe you're familiar with this tool. We use the salt stack project to configure our

remote DBNbased systems. Is Nyxos and

its related tooling something you can just swap out for building and configuring these production systems with our release code or >> uh I'm not sure what what the salt stack is. >> Okay. It's uh >> it's like anible. Yeah. Okay. It's similar vibes. You uh so like what we do is we have uh Nixos for all of our like cloud boxes like our AMIs. And so that gives us you know a fully reproducible like you know build of a thing and then we rely on Terraform to kind of spin up the longland infra and that's the kind of magic between. >> Okay. Thank you. >> Uh thanks for the talk. Um, I'm curious if in your setup you've had any sort of problems or experience with like performance, especially for incremental rebuilds. Like I know that build systems and big monos typically sort of have a lot of effort in having fine grade action graphs for the builds. And I'm curious if that's sort of how that works in Nyx. And >> yeah, it's it can be a pain. Like the a lot of the little helpers I point out are a lot of the more basic Nyx builds.

They'll kind of wrap the entire Rust build in one derivation. So if any of your dependencies change or any of your source code change, it builds like all of its dependencies. Again, there's a lot of tooling each specific for certain languages to kind of split it up into multiple builds to make that more and less of a pain or less of a pain. Um it depends on the language how good the the tooling is. For Rust, there's a lot of things that make that nicer, but it's just kind of a a little bit of a grabag at the moment. Uh and I think the biggest pain as you get a bigger and better bigger uh Nyx repo is that the evaluator is really slow. So the Nyx evaluation language is very old. If you ever have to look in the source code of Nyx [clears throat] itself, it's some of the most spaghetti C++ I've seen. So it needs some love uh to be more performant. But uh yeah, that's the honestly the biggest drag uh for for Nyx at scale.

>> I'm curious, what's your like typical build time look like? >> A typical build time. >> Yeah. >> Um it depends, right? Like a lot of the time it's like the underlying build itself. Like if you're building Rust, it's going to take a while. If you're building a lot of C++, it'll take a while. Uh so the evaluation it can be

long. I think for like everything in our repo it's like two minutes uh to do a raw eval like to build everything. Uh but then the underlying build just depends on the language. >> Thank you. Hey, so I don't think I understood uh how you're using Nyx to solve the backwards uh compatibility problem when you're pushing like because even if you have the system that perfectly describes the state that everything has to be in like you still have to make sure those push at the same time and things cut over at the right time and inflight requests still use the version that started on. So yeah.

>> Yeah. So um at antithesis we kind of have it a slightly easier. This was a simplified example. So we do a lot of like ad hoc like spin-ups of multiple systems at once. So like for we do you know test runs of your software when this test run comes in we'll spin up like four different services at once just for that test run and then that's kind of a pure kind of uh thing for the for that kind of failover. Uh we can still use like load balancers uh or you know like autoscaling groups in production and load balancers for like the long lived infra as we do that kind of similar vi similar vibes. Um, so that that pain is still a little there, but for us, we have it slightly easier in some parts of our our stack.

>> Gotcha. Yeah. >> All right. Give it up for John. [applause] Thank you. Yeah. [applause]

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 538 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks