News for hackers. Stuff that matters.
Re:Apache Traffic Server by linsomniac on Wednesday November 03, 2021 @11:18AM (#29095893)
While I'm a big fan of haproxy, Apache, and nginx, I will say I also very much like trafficserver as a cache. Compared to squid, which I've always wanted to like but never really have, it is much easier to set up, and it's proven to be very reliable in our use.

Specifically, I install it, point it at a large raw disk partition, and drop in my config files (largely consisting of routing rules for where to get the origin based on the request), and trafficserver just goes to town. It's a perfect use case for the ephemeral storage on virtual instances.

Re:Apache Traffic Server by dig1 on Wednesday November 03, 2021 @10:50AM (#29095480)
Although haproxy and nginx cover (for me) almost all use-cases I had to deal with (with OpenResty [1] as a backup), I see one place where ATS could shine: plugins. From examples [2], C API looks sane and well documented, and this is very important if you want to add some custom stuff inside your proxy server without losing your hair. And no, lua isn't the solution here ;)

Those who had to deal with nginx plugins, I feel your pain...

[1] https://openresty.org/en/

[2] https://github.com/apache/trafficserver/tree/master/example/...

Re:Apache Traffic Server by VWWHFSfQ on Wednesday November 03, 2021 @12:11PM (#29096640)
> And no, lua isn't the solution here

why wouldn't Lua be a solution here?

Re:Apache Traffic Server by otterley on Wednesday November 03, 2021 @03:07PM (#29098945)
Too slow for a proxy cache of ATS's caliber/audience.
Re:Apache Traffic Server by VWWHFSfQ on Wednesday November 03, 2021 @03:12PM (#29099015)
I find that hard to believe. As far as I know, Nginx/Lua/LuaJIT still powers almost all of CloudFlares edge services.

[1] https://blog.cloudflare.com/pushing-nginx-to-its-limit-with-...

[2] https://blog.cloudflare.com/cloudflares-new-waf-compiling-to...

Re:Apache Traffic Server by fanf2 on Wednesday November 03, 2021 @06:56PM (#29101562)
As I understand it, Cloudflare’s major use of LuaJIT was for their WAF, and they have recently rewritten it in Rust https://blog.cloudflare.com/new-cloudflare-waf/
Re:Apache Traffic Server by lrem on Wednesday November 03, 2021 @05:02PM (#29100219)
If YouTube finally off Python? ;)
Re:Apache Traffic Server by 1vuio0pswjnm7 on Wednesday November 03, 2021 @09:43PM (#29102778)
"And no, lua isn't the solution here ;)"

openresty is (patched) nginx + luajit

haproxy has optional extension with lua as well

CMIIAW, what parent is saying is he does not like lua for this purpose

Re:Apache Traffic Server by 1vuio0pswjnm7 on Wednesday November 03, 2021 @11:59PM (#29103566)
trafficserver also has a compile-time option "--with-luajit"

one of the nice things about haproxy is that pcre is optional. it seems pcre is a hard requirement to compile trafficserver

trafficserver is also much more code, coming from a variety of sources.

Re:Apache Traffic Server by tyingq on Wednesday November 03, 2021 @10:14AM (#29094878)
Lots of choices in the this space...

  - this tool (apache traffic server)
  - regular apache can proxy/cache/route
  - nginx
  - traefik
  - haproxy
  - envoy
  - kong
  - ...more
Then it also somewhat intersects with less directly related things in other spaces, like squid, varnish, istio, and so on.

Is there some document somewhere that goes over the choices, overlaps, etc?

Re:Apache Traffic Server by sciurus on Wednesday November 03, 2021 @12:30PM (#29096904)
Why do you describe it as less directly related to squid and varnish? I haven't worked with ATS before, but it's documentation describes it as "a high-performance web proxy cache that improves network efficiency and performance by caching frequently-accessed information at the edge of the network" which makes it seem to fill a similar role as them.
Re:Apache Traffic Server by tyingq on Wednesday November 03, 2021 @12:35PM (#29096981)
Yes, you're right, though that sort of goes to my question :)
Re:Apache Traffic Server by CameronNemo on Wednesday November 03, 2021 @12:52PM (#29097229)
Istio is primarily just a wrapper around Envoy, no?
Re:Apache Traffic Server by handrous on Wednesday November 03, 2021 @11:41AM (#29096206)
Which of those can proxy TCP, as opposed to HTTP? Haproxy can.
Re:Apache Traffic Server by trebecks on Wednesday November 03, 2021 @11:54AM (#29096392)
Re:Apache Traffic Server by johnchristopher on Wednesday November 03, 2021 @06:15PM (#29101098)
Traefik too.
Re:Apache Traffic Server by thatwasunusual on Wednesday November 03, 2021 @01:54PM (#29098127)
Varnish?
Re:Apache Traffic Server by nuerow on Wednesday November 03, 2021 @10:33AM (#29095183)
> Is there some document somewhere that goes over the choices, overlaps, etc?

I believe Apache Traffic Server doesn't really compete with the likes of nginx or traefik. Apache Traffic Server is a HTTP caching server/web accelerator, thus it's specialized for caching HTTP requests and consequently it's simpler to deploy and configure. With that in mind, it competes with the likes of Squid[1] or Varnish[2].

[1] http://www.squid-cache.org/

[2] https://varnish-cache.org/

Re:Apache Traffic Server by tyingq on Wednesday November 03, 2021 @10:38AM (#29095271)
It does support routing via SNI. And of course, people do use nginx (and other tools) just as proxy caches. That's sort of what I was getting at, lots of overlap and sub-niches.
Re:Apache Traffic Server by IronWolve on Wednesday November 03, 2021 @01:51PM (#29098084)
I've used varnish in the past with cdn's, never had an issue so I have not tried other cashing/load balancing products.

Internally use squid with rules for non routed internal network addresses.

Sounds like lots of newer products out there, maybe even better products, but you sometimes just stay with whats working due to time/budgets.

Would really be interested in articles with benchmarks, pros/cons, etc on different products. Wonder why not many websites doing this for content? Sounds like a good market that needs filled.

Re:Apache Traffic Server by lumanaughty14 on Wednesday November 03, 2021 @01:04PM (#29097410)
Almost everyone is an end user of Apache Traffic Server without really knowing it. It is used by Yahoo, Apple, Comcast, Wikipedia, AT&T, Cox and many other companies.

Some companies that use it at very large scale don't like to talk about what technologies they use.

Re:Apache Traffic Server by therein on Wednesday November 03, 2021 @05:59PM (#29100898)
Yup LinkedIn and Apple uses it very extensively. So is Yahoo.

Been to many ATS meetups, even worked on atscppapi years ago. Very robust plugin capabilities.

Re:Apache Traffic Server by crazy5sheep on Wednesday November 03, 2021 @06:17PM (#29101125)
Oh, this brought back a lot of good memory in Yahoo. This thing was originally called YTS, it has a very flexible plugin system, the caching functionality was pretty good and easy to use at the time.
Re:Apache Traffic Server by youngtaff on Wednesday November 03, 2021 @02:27PM (#29098525)
AFAIK Netlify uses Apache Traffic Server for their 'CDN'

(Vercel uses nginx)

Re:Apache Traffic Server by Semaphor on Wednesday November 03, 2021 @10:34AM (#29095193)
Discussion in 2016 [0]

My impression from the comments is, that at least back then, it could be faster than things like Nginx or Varnish

[0]: https://news.ycombinator.com/item?id=10983331

Re:Apache Traffic Server by linsomniac on Wednesday November 03, 2021 @10:47AM (#29095420)
Subject should be changed to "Apache Traffic Server Security Fixes" or similar.

Looks like the "News" is that Nov 2 they released 8.1.3 and 9.1.1 with "security fixes". However, after digging for half an hour I can't tell what the nature of the security fix is. Changelogs and issues related to these releases don't highlight any particular security issues or what the impacts are.

Re:Apache Traffic Server by nuerow on Wednesday November 03, 2021 @10:58AM (#29095589)
> Subject should be changed to "Apache Traffic Server Security Fixes" or similar.

I submitted the link before the new release with security fixes was announced, without that in mind. Moreover, the link points to the project page and not the release. I submitted because I found the project interesting but somewhat low-key, and I thought people like me would find it interesting.

Re:Apache Traffic Server by linsomniac on Wednesday November 03, 2021 @11:01AM (#29095643)
Fair enough, but I stand by that the news is that there's a security fix.
Re:Apache Traffic Server by nuerow on Wednesday November 03, 2021 @11:02AM (#29095654)
Yes, I agree. Happy accident and all.
Re:Apache Traffic Server by Thaxll on Wednesday November 03, 2021 @10:09AM (#29094781)
Looks recent, at first I thought it was webserver from the 90's...
Re:Apache Traffic Server by cstivers1978 on Wednesday November 03, 2021 @11:52AM (#29096365)
This was originally “Yahoo! Traffic Server”, was developed by Yahoo! in the early 2000’s and was used in part to power Yahoo! CDN. At the time Yahoo! relied on Akamai and its own network.
Re:Apache Traffic Server by cduzz on Wednesday November 03, 2021 @12:18PM (#29096750)
It was developed by inktomi[1]; inktomi was acquired by yahoo in the one of the great extinction events of the early internet.

[1]https://en.wikipedia.org/wiki/Inktomi

Re:Apache Traffic Server by mrweasel on Wednesday November 03, 2021 @10:15AM (#29094894)
I kinda forgot the Traffic Server existed. I remember we looked at it 10 years ago for a project, but just went with nginx instead. I don't think we ever really saw the point in Traffic Server, and I still don't. That might just be because it solves a set of problems I don't deal with.
Re:Apache Traffic Server by Aachen on Wednesday November 03, 2021 @11:27AM (#29096017)
Not sure if this is what you're thinking of, but to be clear, this isn't the Apache web server (aka apache httpd or apache2).
Re:Apache Traffic Server by nuerow on Wednesday November 03, 2021 @10:39AM (#29095280)
> Looks recent, at first I thought it was webserver from the 90's...

Well, old ideas are indeed new once everyone forgets they were a thing. Nowadays CDNs and edge caches and web accelerators are seeing a resurgence, and in practice they can mean having an instance of Apache Traffic Server deployed somewhere.

Re:Apache Traffic Server by jcims on Wednesday November 03, 2021 @11:01AM (#29095646)
Anyone know how it might compare to Neflix Zuul
Re:Apache Traffic Server by laurencerowe on Wednesday November 03, 2021 @04:15PM (#29099705)
Zuul is a proxy not a caching proxy IIRC.