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

    Unsmart | Tech debt

    01/13/2023, 6:45 PM
    You can use the CF API to invalidate the cache which from their blog a while ago is a few seconds to purge globally. But KV's cache you cannot purge (afaik) it will be up to 60s
  • b

    Burrito

    01/14/2023, 6:15 AM
    Does that work for cache API called in workers too?
  • u

    617a7a

    01/14/2023, 10:02 AM
    What serialisation scheme and/or database does durable objects use behind the scenes for the storage API?
  • h

    HardAtWork

    01/14/2023, 1:22 PM
    The V8 Clone/Serialization algorithm
  • u

    Unsmart | Tech debt

    01/14/2023, 3:40 PM
    yeah it should work fine
  • v

    valtyr

    01/15/2023, 1:00 PM
    Hey there, is there any way to send protocol level Websocket ping-pong frames from Durable Objects. (I guess this is more of a CF Websocket question rather than a Durable Object one but I couldn't find the proper place to ask it).
    h
    • 2
    • 7
  • u

    617a7a

    01/15/2023, 5:13 PM
    how many bytes long is the DO random ID? 32?
  • u

    Unsmart | Tech debt

    01/15/2023, 5:46 PM
    Pretty sure all DO ids are 64 characters
  • u

    617a7a

    01/15/2023, 5:46 PM
    yah so as hex that's 32 bytes, ty!
  • j

    john.spurlock

    01/15/2023, 11:44 PM
    Hmm, this is a new one - just got this one in production
    Too many API requests by single worker invocation
    What does that mean exactly?
  • u

    Unsmart | Tech debt

    01/15/2023, 11:45 PM
    How many requests are you doing?
  • j

    john.spurlock

    01/15/2023, 11:45 PM
    many, everywhere, all the time
  • u

    Unsmart | Tech debt

    01/15/2023, 11:46 PM
    I'd assume the limits of 1k requests are the same for DOs as they are for kv/r2/etc
  • j

    john.spurlock

    01/15/2023, 11:47 PM
    I think this is in an eyeball worker, making DO calls
  • j

    john.spurlock

    01/15/2023, 11:47 PM
    also could be downstream DO to DO
  • j

    john.spurlock

    01/15/2023, 11:48 PM
    "API" is a little vague for me - I'd like to know exactly which limit is being hit here - seems back to normal now, with no real traffic difference
  • j

    john.spurlock

    01/15/2023, 11:52 PM
    I don't see the string in
    workerd
  • j

    john.spurlock

    01/15/2023, 11:53 PM
    But the string is in the Miniflare repo, with an additional suffix that the production error message does not have:
    1000 KV and Durable Object requests per invocation
  • u

    Unsmart | Tech debt

    01/15/2023, 11:53 PM
    Yeah thats what I thought it would be
  • j

    john.spurlock

    01/15/2023, 11:53 PM
    so might be the 1000 do calls, maybe
  • j

    john.spurlock

    01/15/2023, 11:54 PM
    i don't do kv in this path
  • j

    john.spurlock

    01/15/2023, 11:56 PM
    anyway would be awesome for someone orange to eventually confirm where that error msg is in the production runtime, thanks! we need an open source production error message list
  • u

    Unsmart | Tech debt

    01/15/2023, 11:56 PM
    As an example: does 1000 DO requests: just fine : does 1001 DO requests: the error
  • j

    john.spurlock

    01/15/2023, 11:57 PM
    ooh nice!
  • j

    john.spurlock

    01/15/2023, 11:57 PM
    caught in the act
  • u

    Unsmart | Tech debt

    01/15/2023, 11:57 PM
    All bindings have the 1k limit but it is separate (or at least should be).
  • j

    john.spurlock

    01/15/2023, 11:57 PM
    thanks!
  • j

    john.spurlock

    01/15/2023, 11:58 PM
    i will have to un ddos myself somewhere
  • j

    john.spurlock

    01/15/2023, 11:59 PM
    queues GA cannot come quickly enough
  • r

    Robin

    01/16/2023, 11:19 AM
    We have been seeing exceptions without error messages from within a durable object constructor when it is initialized from an alarm since Thursday or Friday last week. In the constructor, a new alarm has been scheduled within the state.blockConcurrencyWhile call. We were able to resolve these exceptions by checking if an alarm is already set before scheduling a new one. The problem was not clear, as the exceptions could not be caught and did not show any message in the log tail.
1...476477478...567Latest