Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

DO moving

Can I plan my application around the idea that DOs will move around in the future to lower latency?

I m having a strange bug with wrangler

I'm having a strange bug with wrangler in local mode working, but deploying the code or running without --local results in the DurableObject script being 'not found'

jurisdictions

Does anyone have a good domain model for how I should use data jurisdictions? Would you typically ask new users to share what their country of residence is, and store their country and derive the jurisdiction based on that? Or should we just ask if they are part of a specific subset of data jurisdiction relevant countries? Any guidance or simplified guides on this would be great!

```interface SESSIONInterface

```interface SESSIONInterface { session: TokenResponse | null; created: boolean; createdDate: Date; endOfLife: number;...

Transactional outbox

I wrote another library in the "Make building reliable DOs easier" series.. this time it is to help create DO that use the Transactional Outbox pattern: https://github.com/evanderkoogh/do-transactional-outbox. Would love any feedback about how easy it is to setup and if you come across any edge-cases I haven't thought of..

Has anyone combined trpc with durable

Has anyone combined trpc with durable objects to create a nicer wrapper around the DO API?

A DO is always active if it has a socket

A DO is always active if it has a socket connected to it so in the specific case koudelka wanted it will always be more expensive.

I am fighting the urge to write a event

I am fighting the urge to write a event-sourcing/driven framework on top of Workers and DOs 😄

Placing DOs

Definitely not a large need for this, but I had an idea for a small file-sharing service, that would allow you to input the general location of the person you are sending the file to, then it would upload the file to the nearest colo to you, transfer the file to a colo near the receiver, then wait for them to download it.

When you find the error could you let me

When you find the error could you let me know what it was? Miniflare should probably throw a similar one... 👀