[HN Gopher] Oxy is Cloudflare's Rust-based next generation proxy...
       ___________________________________________________________________
        
       Oxy is Cloudflare's Rust-based next generation proxy framework
        
       Author : lukastyrychtr
       Score  : 117 points
       Date   : 2023-03-10 16:35 UTC (6 hours ago)
        
 (HTM) web link (blog.cloudflare.com)
 (TXT) w3m dump (blog.cloudflare.com)
        
       | RcouF1uZ4gsC wrote:
       | > Oxy heavily relies on open-source dependencies, with hyper and
       | tokio being the backbone of the framework
       | 
       | It seems almost every single production async framework uses
       | tokio instead of async-std. Has tokio won? Is there a reason in
       | 2023 not to use tokio as the async base?
        
         | rektide wrote:
         | Deno has periodically had open github issues or ideas where
         | there's possible paths but tied to Tokio & they seem to want to
         | leave the door open for now. Just one tiny data point but I
         | find it interesting.
        
         | coppsilgold wrote:
         | Bytedance has their in-house monoio
         | <https://github.com/bytedance/monoio> (supports io-uring) but
         | it requires rust nightly. On some benchmarks & applications it
         | outperforms tokio by a significant margin. <https://github.com/
         | bytedance/monoio/blob/master/docs/en/benc...>
        
         | shidoshi wrote:
         | Tokio has won.
        
         | nindalf wrote:
         | Recent downloads on crates.io (like npm for Rust)
         | 
         | - Tokio 12.1M
         | 
         | - Async-std 1.6M
         | 
         | It's an order of magnitude difference.
        
       | jawngee wrote:
       | That's an unfortunate name.
        
         | woodruffw wrote:
         | That was my first thought as well[1].
         | 
         | [1]: https://www.urbandictionary.com/define.php?term=oxy
        
         | orangepurple wrote:
         | They need to make a complimentary service called Percs
        
           | [deleted]
        
         | SamuelAdams wrote:
         | I recently watched Dopesick on Hulu and yeah, that's the first
         | thing that came to mind.
        
         | toast0 wrote:
         | Yeah, it has no PR.
        
         | ehPReth wrote:
         | I thought the same thing! Then I was reminded that it's also
         | used prominently on acne medication I've seen in stores..
         | https://cdn11.bigcommerce.com/s-i5q5a5nhp2/images/stencil/12...
         | 
         | edit: also, for some reason - this older song came to mind:
         | https://www.youtube.com/watch?v=nEYwmfd65C8
        
       | supriyo-biswas wrote:
       | While it is interesting that they achieved a technical feat, is
       | there any reason for this article to be here? It teaches us
       | nothing apart from the fact that Cloudflare did a thing.
        
         | wmf wrote:
         | It provides "validation" (as the kids say) to Rust, Tokio, and
         | Hyper. Whether they need additional validation at this point is
         | debatable though.
        
         | BaculumMeumEst wrote:
         | Because of one word, and I think you know which it is.
        
         | jgrahamc wrote:
         | At the simplest level the answer is... someone posted this to
         | HN and other users upvoted it enough for it to reach the front
         | page.
         | 
         | We write things up for one main reason: find new employees. We
         | want people to know what sorts of things we work on. So we try
         | to explain them in a lot of detail. A secondary reason is that
         | it's sometimes helpful to learn how someone else solved a
         | problem. Real world examples can be helpful and sometimes more
         | helpful than abstract discussions.
        
         | capableweb wrote:
         | That's basically what all technical blogs from corporations
         | does. I suppose they imagine we'd learn something it.
         | 
         | I concur with the other commentator, bit disappointing it's not
         | OSS, guess they are afraid of helping the competition. I did
         | expect a "and you can give it a try here" section in the end.
        
           | jgrahamc wrote:
           | We're not afraid of helping the competition. Example: we open
           | sourced the entire runtime for Cloudflare Workers!
           | https://github.com/cloudflare/workerd
           | 
           | Open sourcing something has a cost and we mostly only open
           | source things like stand-alone libraries. We also mostly open
           | source things that are fairly mature because it's hard to
           | manage software that's rapidly changing internally and handle
           | PRs from outside.
        
             | luizfelberti wrote:
             | You did mention on your Pingora post months ago that that
             | would be open-sourced eventually though. Is that still the
             | case? Is Oxy entirely separate from those plans?
        
           | tayo42 wrote:
           | What kind of corporate but tech stuff do people find
           | interesting? Curious, im looking to write more to practice
           | but idk exactly what kind of stuff people are interested or
           | what level of technical information they want too. Interested
           | in anyones answers
        
         | sophacles wrote:
         | You're on a site with "news" in its name. The word news can be
         | defined as "information about things people did".
        
       | iou wrote:
       | It's not OSS :(
       | 
       | I figured with this type of blog post the finale would be, and
       | everyone can try it out at...
       | 
       | Hopefully they do release it OSS eventually.
        
         | dmead wrote:
         | Its not even a good name. Oxy is a drug killing lots of people.
        
           | nicoburns wrote:
           | It's also an element that keeps people alive.
        
           | zamnos wrote:
           | Hell yeah I'm using a _ton_ of Oxy at work! Hey why are you
           | all looking at me like that?
        
             | ehPReth wrote:
             | Just say you have bad acne and all will be forgiven!
        
         | capableweb wrote:
         | They mention Pingora near the end, another similar project,
         | which also isn't OSS so not sure I'd expect this project to
         | eventually end up OSS.
        
           | jgrahamc wrote:
           | Given that we open sourced the runtime for Cloudflare
           | Workers, don't despair about us eventually open sourcing
           | stuff.
        
           | swsieber wrote:
           | > Even though Oxy is a proprietary project, we try to give
           | back some love to the open-source community without which the
           | project wouldn't be possible by open-sourcing some of the
           | building blocks such as https://github.com/cloudflare/boring
           | and https://github.com/cloudflare/quiche.
           | 
           | They open sourced a few bits, but those were both mid-last
           | year. I'd say quiche is more interesting than boring.
        
       | evoncative wrote:
       | Sad to read. This is exactly what Richard Stallman warned about.
       | He would be turning in his grave if he knew about this.
        
         | throwaway5959 wrote:
         | What?
        
           | jacooper wrote:
           | Seems like an AI generated comment.
        
             | betaby wrote:
             | To the AI generated marketing post.
        
         | nindalf wrote:
         | Mate, Stallman is still alive.
        
       | AtNightWeCode wrote:
       | Does this mean that one will be able to route TCP traffic through
       | Cloudflare?
       | 
       | (I would have named it something else.)
        
         | great_wubwub wrote:
         | You can already do this with Spectrum
         | (https://developers.cloudflare.com/spectrum/).
        
           | last_responder wrote:
           | I just looked at this yesterday. The only things available to
           | me was ssh and minecraft. this is not the free tier
           | account.Maybe i'm missing something.
           | 
           | Edit: Enterprise account only .
        
             | AtNightWeCode wrote:
             | The value-based price model at Cloudflare is a big turn
             | off. Don't expect that all the Enterprise features are
             | ready to be used in your Enterprise account. I can't
             | remember that I have seen this feature in any Enterprise
             | account.
             | 
             | With GCP, Azure and AWS you at least have an idea of what
             | you are paying for. Cloudflare is more up to how lucky you
             | got with your AM.
        
           | AtNightWeCode wrote:
           | Thank you, I have somehow missed this.
        
       | shidoshi wrote:
       | Will be interested to see why I would use this instead of Envoy
       | or similar FOSS. One obvious thing would be giving the
       | operational work to Cloudflare instead of doing it myself, but
       | beyond that it reads like "we built an internal thing in Rust."
        
         | mynameisvlad wrote:
         | I mean... You wouldn't, unless you started working at
         | Cloudflare. It seems to be an internal proprietary framework.
        
       | geodel wrote:
       | Excellent! This is what a Doctor should prescribe for high perf
       | requirements.
        
       | sn_master wrote:
       | Whoever chose the name clearly never heard about the opioids
       | crisis..
        
         | twic wrote:
         | Should really have saved that name for a concurrency library,
         | so you could use Oxy-continuations.
        
       ___________________________________________________________________
       (page generated 2023-03-10 23:01 UTC)