Faster route propagation by rewriting our Traefik gateway in Rust
15 points by nathanflurry
15 points by nathanflurry
Is there a possibility that it will be generalized and open sourced as a standalone library at some point?
Not unless there’s a clear use case that differentiates it from something like Pingora. it’s still so early and we’re loading so much in to it (request-based auto scaling, DoS prevention, anycast gateway, etc). If it is, it’s probably going to be related to the specialized gateway functionality we’re putting in to this thing.
What are you looking for that Pingora can’t do?
I’m interested in the fast, dynamic routing. But I don’t have a direct need for it right now.
Pingora likely would’ve met our use case with flying colors. It came down to: the MVP for what we need is not that large. rivet-guard-core is only 1,777 physical lines of code (excluding tests) and rivet-guard (which implements routing logic) is only 861 physical lines of code.
What is a physical line of code? Was it written on punch cards? ;)
I wish I was that cool.
This is the lines without comments measured by cloc
.
Context:
There are two major types of SLOC measures: physical SLOC (LOC) and logical SLOC (LLOC). Specific definitions of these two measures vary, but the most common definition of physical SLOC is a count of lines in the text of the program’s source code excluding comment lines.