• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: July 19th, 2023

help-circle


  • Hey, I’m happy to share with you a project I’ve been dedicated to for the past few months: Fox.

    https://github.com/tigerwill90/fox

    Fox is a lightweight HTTP router that provides an API similar to well-known projects such as Gin and Echo. But Fox has a unique strength: it supports mutations on its routing tree at runtime, while concurrently handling requests. It accomplishes this using a Concurrent Radix Tree, which supports lock-free reads and concurrent writes.

    It is especially designed for applications that require changes at runtime to their routing structure based on user input, configuration changes, or other runtime events but it’s also suitable for other use cases. The routing rules are relatively flexible, and in most scenarios, Fox outperforms Gin in terms of performance.

    While the project is not yet at v1, I’ve already put it to the test. At my workplace, we use Fox for our main API gateway, handling millions of requests daily.

    I’d love to get your feedback and insights, so please feel free to check it out and let me know your thoughts.