cmendoza
Explore posts from serversCDCloudflare Developers
•Created by cmendoza on 5/15/2024 in #pages-help
Consuming queues and defining durable objects in SvelteKit app
Hi, I have a sveltekit CF pages app that utilizes
cloudflare-adapter
. I recognize that we can access durable objects via the platform.env
, so my questions are:
1. Is it possible to define the Durable Object instance (plus be able to set up a websocket server for it) in the same app, or should I create a separate worker for that?
2. Is it possible to consume queues? (context: since my plan is that the request will go to the queue first, then the queue will be the one calling the durable object fetch
)
Thanks!3 replies