Alp
CDCloudflare Developers
•Created by Muhymin on 9/30/2023 in #workers-help
Randomly worker requests are being canceled
Also you can try changing your workers usage model to
Unbound
from Bundled
if it is Bundled
18 replies
CDCloudflare Developers
•Created by Muhymin on 9/30/2023 in #workers-help
Randomly worker requests are being canceled
You maybe hit the cpu time limits. You can see that on the cloudflare dashboard; Workers > your worker > Metrics tab > Error tab at the bottom. There is a legend
Exceeded CPU Limits
shows this kind of errors.18 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
Thank you for the idea
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
I've never thought of this and it's a good idea.
My biggest concern is registering two users with the same username. This may solve this issue; I can spawn durable object using the username, and if the object doesn't have stored data, it means username is available.
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
Thank you all again for going into detail about the subject. Love you ❤️
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
The best solution looks like using DOs storage as it is designed for this. My concern is that using only one instance DO for user authentication may cause slow login around the world but I think it is not a big problem since for further requests I can use session data that is written to KV.
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
What I understand is, after DO shutdown, DO may spawn on another location where KV is not synced yet. So for my purposes this will not work actually 😬
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
Kv is read only for login purposes.
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
I see that, what I think about reading is workers will try to get user from KV, and on fail, it will ask to this durable object as second try.
25 replies
CDCloudflare Developers
•Created by Alp on 9/30/2023 in #workers-help
Can we use `blockConcurrencyWhile` inside `fetch` method of a Durable Object?
Thank you for your quick answer and code snippet 🙂 . So we can have consistent writes to KV. The only down side is, it is not good for high traffic routes, but for user registration it is ok I think.
25 replies