marko.333
marko.333
Explore posts from servers
CDCloudflare Developers
Created by marko.333 on 12/6/2024 in #workers-help
Errors Crossing RPC boundaries?
Thanks @Beginner Yes, i'm not as concerned about fetch(), that would clearly require and API that communicated serialized error info (rest, or graphql,...). Instead i'm referring to private RPC between Workers and DO's (direct function calls). RPC stubs are take care of the full serialization of input params and return values. But caught Error subtypes (Ex: ValidationError, NotFoundError, etc...) that contain extra error metadata are all being stripped to plain Error objects (losing additional error info)? For now, i am only allowing technical errors to be thrown, and anything i think that might need to be handled or recovered from by a client i will model as a formal return type. Ex:
CreateUser(input): User | UserInputError | AgeConstraintError ...
4 replies
CDCloudflare Developers
Created by marko.333 on 10/24/2024 in #durable-objects
Hello.
Thx for the tip, i came to the same conclusion. Another option i was considering is creating a hack/temp project that has a consolidated toml with all DO's and Workers (to force them into the same process). But i think the proxy idea is less intrusive.
3 replies
CDCloudflare Developers
Created by marko.333 on 10/24/2024 in #durable-objects
Hello.
OK, i mistakenly had the DO bindings in the DO toml (instead of the Worker toml). So i got past the Promise error, but now i'm getting this error...
Cannot access MyDurableObject#sayHello as Durable Object RPC is not yet supported between multiple wrangler dev sessions.
Getting a dejavu i looked it up. Seems to be a known issue... https://github.com/cloudflare/workers-sdk/issues/5918 This is frustrating on two levels.
(1) The doc suggests that Remote-Procedure-Calls work for Durable Objects, which burned a lot of my time when the issue could have at least been noted in the doc? (2) It is taking a long time to fix this, with no feedback, ETA, or workaround? Does anyone from Cloudflare have any insight? Thx.
3 replies
CDCloudflare Developers
Created by marko.333 on 9/8/2024 in #workers-help
Best practice for local development with multiple workers using RPC bindings?
Sorry, my mistake (i ran into an unrelated bug).
I am now able to use RPC to call between two Workers started with wrangler dev .
2 replies
CDCloudflare Developers
Created by marko.333 on 9/7/2024 in #workers-help
Can an external http client make an RPC call to a Worker?
That's too bad, but thanks for the response.
3 replies
RRunPod
Created by marko.333 on 9/1/2024 in #⛅|pods
How do i deploy a Worker with a Pod?
Sure. It would also be nice if the Worker API could be unified across Pod and Serverless.
16 replies
RRunPod
Created by marko.333 on 9/1/2024 in #⛅|pods
How do i deploy a Worker with a Pod?
When comparing prices I would suggest to compare pods in secure cloud to serverless as all serverless are in secure cloud.
Yes, they might be roughly close, but if i'm OK with using Community, it still does not change the fact that POD may be considerably less than Servless (for always-on). Thanks for all your suggestions and feedback, will take it all into account.
16 replies
RRunPod
Created by marko.333 on 9/1/2024 in #⛅|pods
How do i deploy a Worker with a Pod?
My eyeball inspection of pricing is that a community pod is about 1/2 the price of serverless active? Pods also have more certainty of GPU, network, location, etc?... Oh well, at least i understand the constraints now. thx.
16 replies