Can i use them as normal workers? I just need the cf properties and better limits
Can i use them as normal workers? I just need the cf properties and better limits

4 Duration is billed in wall-clock time as long as the Object is active, but is shared across all requests active on an Object at once. Once your Object finishes responding to all requests, it will stop incurring duration charges. Calling accept() on a WebSocket in an Object will incur duration charges for the entire time the WebSocket is connected. If you prefer, use state.acceptWebSocket() instead, which will stop incurring duration charges once all event handlers finish running.
5 Duration billing charges for the 128 MB of memory your Durable Object is allocated, regardless of actual usage. If your account creates many instances of a single Durable Object class, Durable Objects may run in the same isolate on the same physical machine and share the 128 MB of memory. These Durable Objects are still billed as if they are allocated a full 128 MB of memory.
if they all do in practice not occupy more than that?
Duration billing charges for the 128 MB of memory your Durable Object is allocated, regardless of actual usage
sharp would be great, but that doesn't seem to work as far as I can tell.js library so I can get code completion in Pycharm?
import * as assert from 'node:assert';
const scores = await fetch('./scores.json');
const data = await scores.json() as any;
assert('weights' in data, `Failed to get weight data of scores.json`);
assert('max_scores' in data, `Failed to get max scores data of scores.json`);
export const WEIGHTS: { [key: string]: number; } = Object.freeze(data['weights']);