GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:01:40 JST Stuart Langridge Stuart Langridge
    • Fastly Devs

    Looking at Fastly for hosting static websites, which https://www.fastly.com/blog/no-origin-static-websites-at-the-edge/ claims it can do with "compute@edge", and I have fallen at the first hurdle. I dropped a reasonable-sized static site into a public folder and ran "fastly compute serve" and... "memory index 0 has a minimum page size of 3075 which exceeds the limit of 2048". This seems to be some sort of hardcoded limit in "viceroy", the server; someone talks in a bug about recompiling it. Do I know any fastly peeps? @devs maybe?

    In conversation about a year ago from mastodon.social permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: www.fastly.com
      No-origin, static websites at the edge!
      from @fastly
      Many of the world's websites are static, and Fastly’s content delivery network gets those pages from origin to visitors quickly. But what if we took the origin out of the equation?
    • Embed this notice
      Anil Dash (anildash@me.dm)'s status on Wednesday, 05-Jun-2024 23:01:32 JST Anil Dash Anil Dash
      in reply to
      • Robin Whittleton

      @sil @robinwhittleton Hey! I lead the compute + dev stuff at Fastly; thanks for trying it out, and for the feedback. And yep — it's a little convoluted! Obviously most folks aren't going to use all of that tech just for static pages, but we do have customers who wanted to use the platform that way, so that's why it's documented that way. We're in the midst of revamping this to be simpler as more people use it, so please do let us know how it *should* work for you. Thanks again for the feedback.

      In conversation about a year ago permalink
    • Embed this notice
      Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:01:33 JST Stuart Langridge Stuart Langridge
      in reply to
      • Robin Whittleton

      @robinwhittleton ah. But the CDN requires me to actually host the site somewhere else. https://www.fastly.com/blog/no-origin-static-websites-at-the-edge/ suggests that if I want to host it at fastly, this compute thing is the way, no? Did I misunderstand? Certainly avoiding all this wasm compilation stuff feels sensible

      In conversation about a year ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: www.fastly.com
        No-origin, static websites at the edge!
        from @fastly
        Many of the world's websites are static, and Fastly’s content delivery network gets those pages from origin to visitors quickly. But what if we took the origin out of the equation?
    • Embed this notice
      Robin Whittleton (robinwhittleton@front-end.social)'s status on Wednesday, 05-Jun-2024 23:01:39 JST Robin Whittleton Robin Whittleton
      in reply to

      @sil the goal of Compute@Edge isn’t to quickly serve some static files (they’ve got a CDN for that) but to process your data on the edge servers to personalise to users. The classic example they give is shipping a podcast episode with ads in: Fastly’s servers can geoloc the user, split the audio at defined points, insert up-to-date country-specific ads, splice the audio, and serve the file, all from the same URL. WASM (theoretically) gets them super-quick spin-up times on each request.

      In conversation about a year ago permalink
    • Embed this notice
      Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:01:40 JST Stuart Langridge Stuart Langridge
      in reply to

      It seems to compile a big WASM blob? Unsure about this. In particular, if it serves out the HTML that I actually wrote, then.... OK, I suppose? This seems a very complicated way to go about things, but whatever, it's invisible, so I'm testing it. If it serves all that wasm to the actual users then it's going straight in the bin. But... currently, the server doesn't seem to be able to even serve this wasm monstrosity it creates, so maybe it only works for a one page website. All seems v complex!

      In conversation about a year ago permalink
    • Embed this notice
      Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:01:40 JST Stuart Langridge Stuart Langridge
      in reply to

      OK, confirmation at least that all this wasm stuff is invisible server hosting; it does not appear to actual users. So instead of copying your files to a web server, you instead use their tools to compile an application which embeds all your files, and then deploy that compiled binary application on Fastly's infrastructure. That seems complex, but it maybe works (at least, on trivially small static sites). This makes problem diagnosis sound hard to me, but maybe it's OK, if complicated.

      In conversation about a year ago permalink
    • Embed this notice
      Anil Dash (anildash@me.dm)'s status on Wednesday, 05-Jun-2024 23:26:53 JST Anil Dash Anil Dash
      in reply to
      • 🎏 Glitch
      • Robin Whittleton

      @sil @robinwhittleton well, you've already discovered that, at least from a UX perspective, we're not great at it! But we do want to get better at it. This is ... something we're deep in the midst of working on. (Guess who has never worked at a publicly-traded company before and is not sure what he can say when!) I will get you a better answer asap. In the meantime, I use @glitchdotcom as origin for my stuff (that's our friendly tool) and then deliver it through Fastly.

      In conversation about a year ago permalink
    • Embed this notice
      Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:26:54 JST Stuart Langridge Stuart Langridge
      in reply to
      • Anil Dash
      • Robin Whittleton

      @anildash @robinwhittleton Thank you! My basic question is: can I use Fastly to publish a static website, the same way I might use, say, surge? That is, not publish it somewhere else and put Fastly's CDN in front of it; do it with just a Fastly account. As far as I can tell, deploying it as a big wasm binary to compute@edge is the suggested way to do that, but... at least the local server fails on moderately-sized static sites (and I fear publishing would charge for memory use and be expensive!)

      In conversation about a year ago permalink
    • Embed this notice
      Stuart Langridge (sil@mastodon.social)'s status on Wednesday, 05-Jun-2024 23:26:54 JST Stuart Langridge Stuart Langridge
      in reply to
      • Anil Dash
      • Robin Whittleton

      @anildash @robinwhittleton if the answer is "yeah, that's not really what Fastly is for, don't publish your whole big static website in compute@edge, and we don't do static hosting, so publish it somewhere else and then use our CDN to front it, our CDN's great" then I'm fine with that answer; what I don't know is whether that really is the answer or if there is a different or better way that I don't know about. I know nobody likes to say they're not best at a thing, though :-)

      In conversation about a year ago permalink
    • Embed this notice
      Anil Dash (anildash@me.dm)'s status on Wednesday, 05-Jun-2024 23:30:56 JST Anil Dash Anil Dash
      in reply to
      • 🎏 Glitch
      • Robin Whittleton

      @sil @robinwhittleton @glitchdotcom oh, and a very important personal peccadillo: it's just "Fastly Compute" now. We got rid of the weird @edge stuff, just made it simpler. First the name, next the tools!

      In conversation about a year ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.