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

    Deleted User

    02/03/2021, 3:49 PM
    Thanks, it's mostly scrapers that are bothering us - which causes our autoscaling to kick in and then that's another KPI missed.
  • d

    dalek_cos

    02/03/2021, 11:11 PM
    Does anyone know where can I get mock interviews for an incoming real one for internship?
  • d

    DenisTRUFFAUT

    02/04/2021, 12:54 AM
    If i use Cloudflare workers to realize a payment, but the external fetch call inside Workers code takes few seconds (2-3 seconds) to complete because, PSP, bank ...etc have to process, while the fetch is waiting, is counted as milliseconds spent by the CPU over the Workers 50 ms CPU limit ? Or is it "free" since CPU is not used ?
  • d

    DenisTRUFFAUT

    02/04/2021, 12:55 AM
    *is it
  • t

    theGagne

    02/04/2021, 1:03 AM
    yeah only compute time counts.
  • t

    theGagne

    02/04/2021, 1:07 AM
    https://developers.cloudflare.com/workers/platform/limits#cpu-runtime
  • a

    AwesomestGamer

    02/04/2021, 1:53 AM
    I’m trying to decide what platform use. Please give me at least five reasons for each: - Why serverless is better than dedicated servers or VPSs - Why I should use CloudFlare workers instead of another service
  • a

    AwesomestGamer

    02/04/2021, 1:54 AM
    Additionally, if I end up deciding/needing to move code off of Cloudflare workers, is it possible to do that without rewriting code?
  • d

    Deleted User

    02/04/2021, 3:30 AM
    One of the main advantages of serverless is that you lose all the server maintenance overhead. You focus on writing code and let the serverless platform worry about keeping it running. Most other platforms like Vercel and Netlify just wrap AWS Lambda. They only provide what Lambda provides, which is relatively limited compared to Workers. For example, if you want to build middleware that modifies incoming requests to your origin, Workers does that really well, but Lambda can't. Workers has other cool features like Durable Objects and KV (for storing stuff) and HTMLRewriter (like jQuery but before your page loads) that make it really versatile. You can do all the same things as Lambda with Workers plus a lot more.
  • b

    Bienvenu

    02/04/2021, 4:44 AM
    For me, a fantastic part of the CF Worker model is that it's billed by CPU time, not just wall clock time. In the real world, we're often waiting for some other service to return data, so that makes a huge difference to the way the billing works. And realistically, it better represents the cost of load on the server., so that's a winner all-around.
  • s

    steranevdy

    02/04/2021, 5:36 AM
    is the worker 1mb script limit after gzip compression?
  • n

    Nascode

    02/04/2021, 5:39 AM
    For those who want to use Supabase in Cloud Workers, the JS client wont work since it uses XMLHttpRequest. I tried to fix it with
    patch-package
    hope it works well on yours too. https://github.com/nascode/cloudflare-workers-supabase-fix
  • p

    Peps

    02/04/2021, 6:15 AM
    I believe so
  • p

    Peps

    02/04/2021, 6:17 AM
    Yeah
  • d

    Deleted User

    02/04/2021, 11:13 AM
    So off topic, but it's kicked off a conversation where we are in our chatops, does CF use Slack or Discord internally? or can't divulge ?
  • p

    Peps

    02/04/2021, 11:18 AM
    I was thinking that they're maybe using Atlassian's HipChat
  • p

    Peps

    02/04/2021, 11:18 AM
    No clue though
  • d

    Deleted User

    02/04/2021, 11:19 AM
    HipChat died like 2 years ago - I know, cause I was in the migration to Slack.
  • j

    joe

    02/04/2021, 11:20 AM
    they were using HipChat over VPN
  • j

    joe

    02/04/2021, 11:20 AM
    but that was 2016 https://news.ycombinator.com/item?id=12311049
  • d

    Deleted User

    02/04/2021, 11:20 AM
    But if I compare Slack to Discord (which I've only started using now) - Discord is pretty good and the Bot abilities are awesome. Only thing you might lose is like Slack Apps.
  • m

    Matt

    02/04/2021, 11:21 AM
    I wouldn't use Discord for work
  • m

    Matt

    02/04/2021, 11:21 AM
    Not the right product
  • m

    Matt

    02/04/2021, 11:21 AM
    Slack is aimed at enterprise, Discord is aimed at communities
  • p

    Peps

    02/04/2021, 11:22 AM
    It looks like they still have a active
    hipchat
    DNS record on their internal/ops domain
  • d

    Deleted User

    02/04/2021, 11:25 AM
    Good point, especially cause you would need to roll your own auth and then a lot more as well, like channel permissions. Hopefully Slack adopts the good parts from Discord and vice versa.
  • e

    eidam | SuperSaaS

    02/04/2021, 12:01 PM
    TIL/Just in case someone will want to verify Firebase/GCP JWT tokens in Workers, Firebase docs mention endpoint with PEM public keys, but it's easier to import key in JWK format. Docs https://firebase.google.com/docs/auth/admin/verify-id-tokens#verify_id_tokens_using_a_third-party_jwt_library The endpoint mentioned in docs https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com The other endpoint with JWKs instead https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com
  • h

    harris

    02/04/2021, 1:13 PM
    Not entirely off topic, actually: here's a great blog post on how to make a Google Chat bot using Workers: https://blog.cloudflare.com/rapid-development-of-serverless-chatbots-with-cloudflare-workers-and-workers-kv/ 😉
  • a

    AwesomestGamer

    02/04/2021, 2:14 PM
    Is it possible to easily migrate off of Cloudflare workers?
  • a

    AwesomestGamer

    02/04/2021, 2:14 PM
    In case I end up deciding that I don’t like serverless?
1...828384...2509Latest