MathJax CDN shutting down on April 30, 2017
mathjax.org
mathjax.org
180 million monthly users is a significant portion of the world's population. I'm not sure to what extent MathJax is cached, so it's possible that these are not 180 million unique users. On the other hand, this does not include all those self-hosting MathJax, using KaTeX or just using server-generated images (for example Wikipedia†).
†It's possible to force Wikipedia to use native MathML (which, at least on Firefox, looks really nice) or MathJax, but it's non-trivial.
https://bugs.chromium.org/p/chromium/issues/detail?id=6606
https://bugs.chromium.org/p/chromium/issues/detail?id=152430
https://wpdev.uservoice.com/forums/257854-microsoft-edge-dev...
I only get "what's that?" most of the time.
Native (browser) support of MathML is far more convenient for the reader and not more cumbersome for the writer.
If you don't need a fancy anycast network, you can buy a 1GbE pipe from Hurricane Electric for about $400/mo and push 192TB/mo through it. Actually they include that when you get their $400/mo server cabinets in the bay area. Probably not the best option ever, but I don't think S3 is 14.29x better than it. Dedicated server providers like OVH might be okay with it too, probably ask them first. But if you had 2-4 servers and round-robined them my guess is you would be fine. You could get one server in Europe and one in NA and GeoDNS them and get probably-good-enough close to what an anycast network can do. For ~$200/mo. Not too bad.
I've given my rant a million times so I won't do it again, but "The Cloud" heavily upcharges on bandwidth. Or they tell you it's "unlimited" (a word I've learned through experience to hate) then tell you "except for the kind of stuff you're doing" and send a bill or shut you down. If you've got to ship a ton of bandwidth, you should at least look into the alternatives.
If you really want to go future tech, look into something like IPFS (https://ipfs.io) - it was built for stuff like this and it's going to make a real dent in transit costs for heavy data sets, CDNs, package distribution and the like. I absolutely cannot wait for the distributed web.
It stuns me just how bad it upcharges and how much it could be hurting their business. I can imagine so many use-cases where reasonably priced bandwidth would drive consumption elsewhere. I use cloud storage for backups without worrying about the insane cost of a restore. I could send large video production files to cloud storage, use cloud compute to produce renders and then download the processed files again without paying a multiple of the compute cost on bandwidth.
To illustrate a bit on that video example, 4K 422 ProRes HQ is 424 GB/hr [0]. Assuming I have say 2h of footage I want processed, that's 848GB. Then if I need say 2h on 2x g2.8xlarge GPU instances to process the video, that's $2.78 * 2 * 2 = $11.12 for the entire process. Then I need to download that 848GB again, that's $76.32. The cost of retrieving the processed data is 7x the cost of processing it, that's insane.
[0]: https://ssl.apple.com/final-cut-pro/docs/Apple_ProRes_White_...
Additionally, every sponsorship may have a fixed cost to someone in the organization, some manager who would rather read a 20 line vs. 100 line report. And I doubt mathematicians and physicists drive the CF bottom line. Generosity has its limits.
If someone watching porn causes someone else to file a hostile workplace suit, you can show that you invested in whatever is the standard off the shelf tech to prevent it.
It's all kind of silly today now that most people walk around work with 4g phones with high res screens. That leaves preventing malware on company PCs as the sole actual reasoning.
The companies that use this software are checking boxes like "no porn", "no gambling". They aren't typically making URL level decisions. The stuff that sneaks by will happen because filtering isn't perfect.
The makers of the software categorize popular sites with tags (porn, file sharing, proxy avoidance, hate speech, etc). Less popular sites get content keyword filtering...so something like porn images without porn words can slip by.
Corporate systems don't care about a mythical "100% effective", they just want a porn blocking solution with acceptable false negatives. Which gets rid of imgur.
Enterprise policies don't need to be that enthusiastic before they'll block imgur. Imgur does in fact host porn.
https://github.com/davisstu/imgur-to-filmot
(Chrome plugin that rewrites imgur links to point at some kind of imgur proxy that sits on a lesser known domain. No idea if this particular one works still.)
- Only 1 month to re-route 70TB of content. I wonder if even over 10% will be re-routed, with all the other sites broken.
- Cloudflare notice could have beem some months in. Hopefully now that this got some traction they will provide some more time.
- There are a lot of situations where devs cannot change the CDN any longer. I for one won't trust CDNs (including CDNJS) for anything durable any longer, which seems a big loss for Cloudflare.
Worse, the full download is massive, so it's tempting to not local host it. There are some cryptic messages about reducing the size, which link to out of date pages. If they were going to do this, they could at least have decent docs on how to locally host in a small size.
Why? This has nothing to do with CDNs. This is a single account that can't afford to pay the bill anymore. CloudFlare itself isn't going anywhere.
You can use https://www.jsdelivr.com which is one of the best open-source hosts backed by several networks - or just host everything yourself and put a CDN in front for your own users.
A DNS redirect would break the SSL, right? Perhaps a HTTP 3xx redirect?
If that fails, I'd give a shout to FDCServers or LeaseWeb (or of that capacity) and see what they can do. I know of a handful of people who've moved 100TB monthly for less than $100/month, just because they asked.
> 179 Million monthly users and 70TB traffic last month
The post starts:
> Our CDN has been an important part of MathJax’s history. When MathJax made its first public release in 2010, hosting a library like MathJax was a complex challenge. The CDN launched a year later and helped resolve this difficulty
What is "like MathJax" alluding to? Standing up a web host to serve a single JS file sounds like the opposite of a "complex challenge", so there must be something else going on here.
After reading further down, I see that the post does mention that "A common concern with local installations is the size of a complete copy of MathJax, in particular the ~29,000 PNGs", so I guess that's what they're talking about? If so, the comments at the top make more sense and their having had their own CDN at all is more understandable in that light, but it seems needlessly confusing not to lead with that explanation.
I guess my point was that... Okay, so they took advantage of CloudFlare. Great, plenty of people do that, but not on the scale of 10s of TBs. What plan were they on with CF? The $20/month one? If I was a provider, I wouldn't want someone moving that volume of data through my pipes for $20/month (but as a developer, I'd love it)
They mentioned how Google provided free storage. Storage is so cheap! Providers make their money on bandwidth. Having said, I can't imagine what kind of price they paid for bandwidth.
Like I alluded to in my (now edited) original post: Guys, it never hurts to do your research in the hosting space and learn that there is more to hosting than just AWS/Google/Azure/Heroku/OVH/DigitalOcean/Vultr. Go to webhostingtalk.com, learn a bit, browse the offers forums, write some emails, compare providers, ask questions. Hosting isn't complicated, especially compared to some of the problems you're/we're solving.
Even with unmetered bandwidth servers, you would need quite a few of them. 100Mbps, full throttle, for a month, is less than half their 70TB/month requirement. And that's if the bandwidth needs were even across the whole day, without spikes.
Even a bare bones budget setup is going to be $300-$400/month, and that's cutting it very close and providing crap service with some users downloading from across the globe.
No, you instruct your DNS to point to one location for EU users and another location for US users, urls don't change.
The OVH 100TB CDN plan is £509.99/month. Other CDNs would be 3x that amount or more.
It wouldn't be available much cheaper even if you skipped the CDN. A $20 VPS comes with 3TB outbound, so you would need 24 of them to spread across.
Of course, there may be some opportunity to fix their cache headers, or optimize their js/CSS/images and reduce that 70TB requirement.
You can get $40 servers with 30TB outbound.
I have one that I pay $80 a month for and push 30TB monthly with no issues.
Only issue with OVH is that you aren't going to get the geographical coverage you would with a proper CDN like Cloudflare. But if you're on a budget, it's pretty good.
I'm just glad that I had the foresight to have hosted my own copy of that library.
Is there some technical reason why authors/publishers do it this way, or is it just about tooling?
Gitbook claims that it works: https://www.gitbook.com/blog/features/katex
> 1,811,496 code results.
Woof.
I love MathJax, but I'm now rendering math on the server using a latex -> dvisvgm pipeline and caching the results
Better yet, add native MathML support to Chrome, and help eliminate the need for MathJax altogether. In the meantime, sponsoring MathJax would be a Good Thing though.
Specifically, SECTION 10: LIMITATION ON NON-HTML CACHING.
Oh man, so close to
> We recommend cjdns (which is against everything CloudFlare stands for) for delivery
Could you explain this? Have I missed some big Cloudflare news?
See https://github.com/cjdelisle/cjdns , https://hyperboria.net/ , and https://www.reddit.com/r/darknetplan/