Bobby Donchev
Bobby Donchev
CDCloudflare Developers
Created by Erina Nakiri on 7/23/2023 in #workers-help
Mariadb with cloudflare worker
if he already has a server running I dont see why he shouldnt use cloudflared. For me it worked really well. But yeah otherwise he'll have to wait for mysql or mysql2 support when workers tcp socket api has been implemented for those libs.
10 replies
CDCloudflare Developers
Created by ByteAlex on 7/23/2023 in #workers-help
Locking/Synchronizing Requests
I build a similar API here where I provide a lock per URL: curl https://statebin.io/lock/someNamespace/anyKey lock it: curl -XPUT https://statebin.io/lock/someNamespace/anyKey will auto unlock in 1hour or manually unlock it: curl -XDELETE https://statebin.io/lock/someNamespace/anyKey
14 replies
CDCloudflare Developers
Created by ByteAlex on 7/23/2023 in #workers-help
Locking/Synchronizing Requests
14 replies
CDCloudflare Developers
Created by Erina Nakiri on 7/23/2023 in #workers-help
Mariadb with cloudflare worker
On your server running mariadb you have to run cloudflared tunnel. From your worker you can access the mariadb with this library: https://github.com/cloudflare/worker-template-mysql
10 replies
CDCloudflare Developers
Created by ByteAlex on 7/23/2023 in #workers-help
Locking/Synchronizing Requests
but durable objects are made for this kind of stuff. Synchronising state between users.
User A sends request 1 with x = 1 User B sends request 1 with x = 2 User A sends request 2 Now user a expects his request to be fulfilled with x = 1, but x will be 2.
User A sends request and locks the state x=1 User B sends request with x = 2 and receives an error (423) User A sends request 2 and unlocks the state You can even set an alarm with durable objects to unlock the state in case User A never made request 2 after time X
14 replies
CDCloudflare Developers
Created by BenitzCoding on 7/12/2023 in #general-help
Cloudflare Websites are loading forever!!!
still works
16 replies
CDCloudflare Developers
Created by atgctg on 7/14/2023 in #workers-help
Would Cloudflare Websockets work with a Next.js + tRPC project hosted on Pages?
you can. If you dont need coordination among websockets you can do this from the worker: https://developers.cloudflare.com/workers/runtime-apis/websockets/use-websockets/
6 replies
CDCloudflare Developers
Created by atgctg on 7/14/2023 in #workers-help
Would Cloudflare Websockets work with a Next.js + tRPC project hosted on Pages?
or you can do it with durable objects
6 replies
CDCloudflare Developers
Created by atgctg on 7/14/2023 in #workers-help
Would Cloudflare Websockets work with a Next.js + tRPC project hosted on Pages?
you'll need to host the tRPC server somewhere if you want to use their subscriptions / websockets
6 replies
CDCloudflare Developers
Created by BenitzCoding on 7/12/2023 in #general-help
Cloudflare Websites are loading forever!!!
works fine from here (Germany)
16 replies
CDCloudflare Developers
Created by Gytis on 7/11/2023 in #general-help
Is there some EKS operator to configure cloudflare routing according to ingress anotations?
you might want to check out cloudflared. Run it as pod (deployment) and then forward all traffic towards your k8s service or ingress. cloudflared config: ingress: - hostname: example.com service: http://service-name.namespace.svc.cluster.local:<port> more info: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/ingress/
3 replies
CDCloudflare Developers
Created by vassbence on 6/30/2023 in #workers-help
Workers public IP address
15 replies
CDCloudflare Developers
Created by elpupper on 7/8/2023 in #general-help
Download Images from URL
you want everybody on the internet to be able to download your content from their own apps? just add your local dev environment in there: http://localhost:8787 and your app DNS: https://yourApp.com add both GET and OPTION as AllowedMethods and you should be good to go
17 replies
CDCloudflare Developers
Created by elpupper on 7/8/2023 in #general-help
Download Images from URL
AllowedOrigins is not valid. It must be in the following format: scheme://host[:port] (where port is optional)
17 replies
CDCloudflare Developers
Created by vassbence on 6/30/2023 in #workers-help
Workers public IP address
basically what you are saying is your application(s) do not work with DNS and can only handle IP addresses and thus you need a static IP for your worker?
15 replies