that's not true, tbh not sure what it's referring to. I use the Cache API all the time in my Workers
that's not true, tbh not sure what it's referring to. I use the Cache API all the time in my Workers that are behind Access.
https://cache-test-behind-access-worker.ai.moda/get-cache <- this is behind Access and you can see it has cache worker.exceededCpu? We're seeing cron workers that last 500ms getting killed, but some of the logging is pointing to simultaneous network connections as a possible culprit and it's hard to figure out if that would report the same way as high CPU or memory usage (esp given cron workers have 15 minutes to complete).
exceededCpu?If the system detects that a Worker is deadlocked on open connections — for example, if the Worker has pending connection attempts but has no in-progress reads or writes on the connections that it already has open — then the least-recently-used open connection will be canceled to unblock the Worker.https://developers.cloudflare.com/workers/platform/limits/#simultaneous-open-connections
If the Worker later attempts to use a canceled connection, an exception will be thrown. These exceptions should rarely occur in practice, though, since it is uncommon for a Worker to open a connection that it does not have an immediate use for.
*.server.ts and transform it into cf workers?https://cache-test-behind-access-worker.ai.moda/get-cacheexceededCpuexceededCpu*.server.ts- web-srv # binds AuthService
- fetch routes:
- GET /todos/<todo-list-id> # get the list
- PUT /todos/<todo-list-id> # set the list
- todo-srv
- TodoService: Entrypoint # only accessible by auth-srv
- todoForUser(user_id): TodoUser
- TodoUser(user_id): RpcTarget
- get(id): string[]
- set(id, string[])
- auth-srv # binds TodoService
- AuthService: Entrypoint
- checkCookie() : User
- User(user_id): RpcTarget
- todos(): TodoUser- browser: GET /todos/x Cookie=foo
- web-srv: AuthService.checkCookie(foo) -> User
- web-srv: User.todos() -> TodoUser
- web-srv: TodoUser.get(x) # does this go directly to todo-srv or is there a hop through auth-srv?Concurrent Subrequest Limit
As of this release, we impose a limit on the number of outgoing HTTP requests that a worker can make simultaneously. For each incoming request, a worker can make up to 6 concurrent outgoing fetch() requests.await Promise.all(jobs.map(async (job_url) => await $fetch(job_url))