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

    Unsmart | Tech debt

    02/28/2023, 4:47 AM
    What are you doing that errored when they did an update 🤔
  • h

    HardAtWork

    02/28/2023, 6:24 AM
    There is a staggered rollout, in the sense that the rollout first occurs when all Workers have been evicted
  • v

    Vadim

    02/28/2023, 6:42 AM
    I am running a websocket connection in a DO and receive data constantly. But after around 5-10 minutes the DO gets evicted, any idea why?
  • z

    zegevlier

    02/28/2023, 6:42 AM
    Are you sending messages to it as well?
  • v

    Vadim

    02/28/2023, 6:43 AM
    No the DO connects to a remote server
  • v

    Vadim

    02/28/2023, 6:44 AM
    And the remote server sends data in about 0.1s intervals
  • z

    zegevlier

    02/28/2023, 6:44 AM
    So there are regular incoming messages to the DO?
  • v

    Vadim

    02/28/2023, 6:44 AM
    Yes
  • z

    zegevlier

    02/28/2023, 6:45 AM
    Okay, that's strange then. Are you seeing this regularly, or just once or twice?
  • h

    HardAtWork

    02/28/2023, 6:46 AM
    After about 30 seconds, a DO can be evicted, so it does make sense. You shouldn’t expect it to stick around indefinitely
  • v

    Vadim

    02/28/2023, 6:47 AM
    When I dont terminate the connection it happens always after max 10 minutes
  • z

    zegevlier

    02/28/2023, 6:48 AM
    But if there are incoming requests, I'm pretty sure it should stay around longer
  • h

    HardAtWork

    02/28/2023, 6:50 AM
    Yeah, but I’ve seen ~10 minute evictions are pretty standard with a single outgoing connection
  • v

    Vadim

    02/28/2023, 6:52 AM
    The strange thing is that I get evicted even faster when I have 3-10 connections open
  • s

    Skye

    02/28/2023, 10:12 AM
    if it happens faster with more connections, it sounds like you're doing something to cause it to run out of memory
  • a

    albert

    02/28/2023, 2:00 PM
    Could someone please enlighten me about the latest and hottest frameworks for building JSON APIs on Cloudflare Workers? Haven't been keeping up with the latest libraries for a while.
  • j

    James

    02/28/2023, 2:02 PM
    Hono 😀
  • k

    kian

    02/28/2023, 2:03 PM
    Yeah, probably Hono haha
  • a

    albert

    02/28/2023, 2:04 PM
    Is it just objectively the best framework at the moment? 😄
  • k

    kian

    02/28/2023, 2:05 PM
    Lots of cool middleware - CORS, Sentry, loggers, Zod validation, etc
  • a

    albert

    02/28/2023, 2:06 PM
    Alright, thanks 😁
  • d

    dave

    02/28/2023, 2:32 PM
    I use itty-router-openapi for some things, Hono for others. https://github.com/cloudflare/itty-router-openapi
  • d

    dave

    02/28/2023, 2:33 PM
    itty-router-openapi does have some limitations that are a bit annoying tbh.
  • p

    piepie

    02/28/2023, 2:51 PM
    How feasible is increasing the worker size limit from 5mb to 15mb? We have a Remix app we're trying to deploy on CF pages and it currently clocks in at 12mb minified, which is way past the 5mb limit. As you can imagine, it's a complex app. We're on the business plan.
  • k

    kian

    02/28/2023, 2:52 PM
    I suspect you'd need to be on an Enterprise plan for such a limit increase but you can always request one at https://docs.google.com/forms/d/e/1FAIpQLSd_fwAVOboH9SlutMonzbhCxuuuOmiU1L_I5O2CFbXf_XXMRg/viewform
  • d

    dave

    02/28/2023, 2:58 PM
    Could you split the app into ~3-4 different scripts, and have them use service bindings?
  • u

    Unsmart | Tech debt

    02/28/2023, 3:31 PM
    If only remix had hybrid outputs because I assume there are pages that are fully static that could easily be removed from the worker script entirely and run on pages 😛
  • t

    Tom Sherman

    02/28/2023, 3:43 PM
    i hope server components can offer a solution to this in remix
  • t

    Tom Sherman

    02/28/2023, 3:49 PM
    you might be interested in this proposal: https://github.com/remix-run/remix/discussions/5405 you wouldn't be able to use pages anymore though, and you'd need a way to atomically update the split workers. but it's feasible to split the server bundles
  • u

    Unsmart | Tech debt

    02/28/2023, 3:51 PM
    I feel like that goes way too far for cloudflare 😛 would be better to have hybrid output than 50 server exports
1...230723082309...2509Latest