I did follow the docs, but like im struggling with putting the _worker.js in the actual output dir??
Like as you can see in the first photo, running the build command generates a _worker.js file, but it is not the one that I wrote, how do I get MY worker to be in the build directory? Keep in mind I'm using svelte
yeah im kinda lost, i assumed using remix for the frontend would work and allow me to fetch from an api and send the whole response back, but the api requires the user to be logged in
I was told by multiple people that I could run langchain with Cloudflare workers & wrangler
Am I being led in the wrong direction?
The issue I’m having is that I want to run langchain in a react native mobile application but the Hermes engine does not use “readable streams” which is how langchain responds
Guys, adding Durable Objects to my code causes it to 200ms-1s additional response times, Is that expected? Was trying to replace KV for authentication management
Which Cloudflare product(s) does this pertain to? Workers/Other What version of Wrangler are you using? 2.9.0 What operating system are you using? Mac Describe the Bug Same zone worker <-> wo...
I have 400 users details like email, name, contact etc inside an array. I want to insert/update all these 400 users profiles information inside 3rd party service called klaviyo for email marketing. In adding 1 user information into this 3rd party API, it takes 2 fetch requests (max 2 for update). So for 400 users its taking 800 fetch requests at a time for inserting. I am getting error inside logs that "subrequest limit exceeds" means so many subrequest a time... What is solution of this, can anyone please help? NOTE: I am using premium version not free I have also attached a screenshot of my code with result array of 400 users and then adding them one by one into klaviyo
Either limit the number of customers you send per scheduled run (e.g. in your DB, have a column that is "sent" or whatever) and then retrieve X number per scheduler run and only pull ones where they aren't sent yet to the API. Or use https://developers.cloudflare.com/queues/, and push each customer as a message into a queue, and have a separate worker process the queue
If you change to the new billing model (Standard) you can do 1,000 fetch requests. You could also send all of them to queues instead so you can support retrying the requests over time if needed.
I tried a way called batch processing.... I first add 20 users then added delay function (Promise) wait of 60 seconds or setInterval/setTimeout and then add another 20 users... but it didn't worked, dont know why? It always adding that first 20 users only after every 60 seconds...not going to next 20 users. Added 2 screenshots of delay promise function and setTimeout, but both not worked. always adding/updating same chunk/batch. Whats reason?