You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example implements an <GlossaryTooltipterm="alarm">`alarm()`</GlossaryTooltip> handler that wakes the Durable Object once every 10 seconds to batch requests to a single Durable Object. The `alarm()` handler will delay processing until there is enough work in the queue.
18
+
This example implements an <GlossaryTooltipterm="alarm">`alarm()`</GlossaryTooltip> handler that allows batching of requests to a single Durable Object.
19
+
20
+
When a request is received and no alarm is set, it sets an alarm for 10 seconds in the future. The `alarm()` handler processes all requests received within that 10-second window.
21
+
22
+
If no new requests are received, no further alarms will be set until the next request arrives.
0 commit comments