Ahz
CDCloudflare Developers
•Created by sanser on 3/31/2024 in #pages-help
postgres in pages
also those libs dont work w cf workers, no fs access, there are other ways to connect to postgres, like neon
7 replies
CDCloudflare Developers
•Created by sanser on 3/31/2024 in #pages-help
postgres in pages
you'll need to connect at the request level, not app level, serverless pages can't maintain a db connect
7 replies
CDCloudflare Developers
•Created by rubberburger on 10/2/2024 in #pages-help
Easiest way of persisting function logs
i push logs to a separate service, found axiom to be cheap and easy to integrate
3 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
for added efficiency, I save the response in memory on the callee side so I don't have to reprocess it, but my RPC callee is a durable object which will maintain the state in memory for a few seconds which is enough for me
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
which in my case, is called on the RPC callee side in the response handler
`
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
on the callee side, I wrap my response in something like this if i want to stream the response
17 replies
CDCloudflare Developers
•Created by Murder Chicken on 9/24/2024 in #workers-help
Serialized RPC arguments or return values are limited to 1MiB
My code isn't suited to post here for the whole thing, but this is the key part which handles the stream processing on the caller side. Note the closure function I pass in is the actual RPC call.
17 replies