https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • s

    sathoro

    05/08/2023, 7:44 PM
    okay so same response? well anyways I think you could just add some random
    sleep()
    calls or something right?
  • d

    dave

    05/08/2023, 7:52 PM
    yeah, my thought is my only solution is to make it a fixed time :/
  • d

    dave

    05/08/2023, 7:52 PM
    do a setTimeout and make that finish before returning
  • s

    sathoro

    05/08/2023, 7:53 PM
    we store our API key and user usage info entirely in DO which is so fast I don't think we really have this issue
  • s

    sathoro

    05/08/2023, 7:53 PM
    but I might be (probably am) missing something
  • s

    sathoro

    05/08/2023, 7:57 PM
    wouldn't they need to send a valid API key or credentials before you call AWS though?
  • d

    dave

    05/08/2023, 8:57 PM
    we are the AWS API endpoint 😛
  • d

    dave

    05/08/2023, 8:58 PM
    I figured it out, thank you! This message made me question things a bit... realized it's because you're using just an API key, while I am using an API key + username. I think I figured out how to optimize down to just 1 piece of creds that I can verify in the backend.
  • s

    Scottmas

    05/08/2023, 9:30 PM
    Should worker sites be considered deprecated? It seems like their functionality has been subsumed into Cloudflare Pages
  • j

    James

    05/08/2023, 9:32 PM
    Yes, pretty much. It still works and there's patches every now and then, but it's not actively developed anymore.
  • j

    James

    05/08/2023, 9:32 PM
    I would default to Pages, and then consider Sites if you run into a use-case that really needs it. Where Sites still has a place imo, is large complex apps with features that Pages doesn't natively support yet, like Queue consumers, Cron triggers, etc.
  • s

    Scottmas

    05/08/2023, 9:46 PM
    Is the download performance (using bucket = ./example) for users as good as the user experience provided by pages btw?
  • s

    Scottmas

    05/08/2023, 9:48 PM
    And it drives me crazy that there's no documentation for how Pages interacts with wrangler.toml! That alone is tempting me to use Sites
  • j

    James

    05/08/2023, 9:48 PM
    wrangler.toml
    is a Workers things. Pages doesn't use it at all. If it does in dev, that's not intentional.
  • j

    James

    05/08/2023, 9:49 PM
    But I agree, the lack of any real config for Pages is pretty sucky DX.
  • s

    Scottmas

    05/08/2023, 9:49 PM
    Oh, you're right. Sorry about that confusion
  • s

    Scottmas

    05/08/2023, 9:49 PM
    But yeah, I do really want a config file
  • j

    James

    05/08/2023, 9:49 PM
    Sites performance vs Pages is gonna be pretty negligible - they both use the same underlying technology which is KV.
  • s

    Scottmas

    05/08/2023, 9:50 PM
    I thought they would have used R2 and the cache api
  • s

    Scottmas

    05/08/2023, 9:50 PM
    I know it's cheaper anyhow
  • w

    Walshy | Pages

    05/08/2023, 9:51 PM
    R2 didn't exist when Pages was made 😉
  • w

    Walshy | Pages

    05/08/2023, 9:51 PM
    and KV has great hot read times
  • s

    Scottmas

    05/08/2023, 9:51 PM
    There's no way I could build my own Cloudflare Pages from scratch at the same price of essentially free
  • u

    Unsmart | Tech debt

    05/08/2023, 9:51 PM
    Cloudflare Pages: 12/17/2020 Cloudflare R2: 09/28/2021
  • u

    Unsmart | Tech debt

    05/08/2023, 9:52 PM
    from the blog post announcements
  • s

    Scottmas

    05/08/2023, 9:53 PM
    I want incremental asset updating, rather than full folder uploads, which I guess means I'd have to create on my own using KV. Only downside is the price
  • w

    Walshy | Pages

    05/08/2023, 9:53 PM
    Is there harm in just uploading all at once?
  • s

    Scottmas

    05/08/2023, 9:53 PM
    And the work hahaha
  • s

    Scottmas

    05/08/2023, 9:53 PM
    I have a slow refresh process for what I'm hosting.
  • s

    Scottmas

    05/08/2023, 9:54 PM
    I don't have all the assets all at once. It probably will be fine
1...244524462447...2509Latest