by VikingCoder · 4y ago · 0 comments
I'm picturing a long-running server, and people wanting to run experiments on it. Like, the next time an HTTP GET comes in, please use my new code.
In my head, I had imagined that there would be a versioned method table for each function (or at least each function that I wanted to be versionable.) I would compile my new version of the code, and then dynamically link it in, and then use some experimentation flag to say which version of the system the execution should follow.
So, it's a bit like Git. Each object is versioned, and you can request a snapshot of the entire tree, at a particular version. And because you can walk the tree of function calls, you can have a root version, etc.
It's super cool to see people experimenting with this.
[0] https://joearms.github.io/published/2013-11-21-My-favorite-e...
So basically, in your example, change the code that handles GET and then trigger the CI/CD. Your code will be compiled, containerised then a rolling update is started to replace the old version of the running web server with the new one.
I'd like the server to be able to execute a code path which mimics my Git branch, and on the next request to execute a code path which mimics your Git branch.
If you and I have two different versions of f(), I'd like them both to be available to be executed, based on some flag or condition.
As we merge our branches, f() will collapse back into the CI/CD pipeline you imagine, yes.