Search
Setup for Free
CD
Cloudflare Developers
•
2y ago
Elia
Does GA mean we can also use it outside of workers?
Does GA mean we can also use it outside of workers
?
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
83,498
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
E
Elia
Does GA mean we can also use it outside of workers?
U
Unsmart
•
2/13/24, 12:26 AM
You technically can already with the API
(though not recommended to use
)
. Recommended is to create a worker proxy
.
Afaik there
's not any plans for
"outside of workers
" beyond what you can do today
.
U
Unsmart
You technically can already with the API (though not recommended to use). Recomm...
E
Elia
OP
•
2/13/24, 12:51 AM
As long as it
's allowed to proxy through workers that
's fine with me
E
Elia
OP
•
2/13/24, 12:52 AM
Any chance they
'll upgrade the limits before GA
?
(e
.g
. talking max storage
, SQL operators
, etc
.
)
E
Elia
As long as it's allowed to proxy through workers that's fine with me
V
Vy
•
2/13/24, 1:15 AM
We
're working on max storage
. What additional SQL operators ar eyou looking for
?
M
Max (@rozenmd)
fts5 is available
D
down
•
2/13/24, 7:11 AM
I know
, but it
's nowhere near as sophisticated as a search engine
.
Z
Ziga Zajc
What is the average latency added when we use D1 thru HTTP API?
H
Hello, I’m Allie!
•
2/13/24, 7:19 AM
Depends on where you are
H
Hello, I’m Allie!
•
2/13/24, 7:19 AM
All requests go through Core
(iirc
)
, so if you are far away then it takes longer
H
Hello, I’m Allie!
•
2/13/24, 7:20 AM
Even worse if your DB is close to you
Z
Ziga Zajc
for example Hetzner datacenter in Nuremberg and Falkenstein (Germany)
H
Hello, I’m Allie!
•
2/13/24, 7:24 AM
Run it through a Worker
, would be a lot faster
Z
Ziga Zajc
The problem is that I'm making this project open source, so it can be self-hoste...
H
Hello, I’m Allie!
•
2/13/24, 7:28 AM
I would just note that D1 really isn
’t meant to be accessed that way
, and thus I doubt it will every be very performant
Z
Ziga Zajc
wait why D1 HTTP API wasn't build on Cloudflare Workers from the start?
H
Hello, I’m Allie!
•
2/13/24, 7:29 AM
It is
, afaik
. But the entirety of api
.cloudflare
.com is routed to Core
Z
Ziga Zajc
so users / self-hosters wouldn't need to deploy their own D1 proxy on workers
H
Hello, I’m Allie!
•
2/13/24, 7:30 AM
Because D1 is a DevPlat DB
, which means it performs best when used from other DevPlat products
H
Hello, I’m Allie!
•
2/13/24, 7:30 AM
Like Workers
/Functions
Z
Ziga Zajc
I could probably completely replicate D1 HTTP API in workers. So normal self-hos...
H
Hello, I’m Allie!
•
2/13/24, 7:36 AM
Wait
, do you mean you would make requests for them
?
H
Hello, I’m Allie!
It is, afaik. But the entirety of api.cloudflare.com is routed to Core
M
Max (@rozenmd)
•
2/13/24, 7:44 AM
It isn
't
(yet
)
- it was easier to take an existing approach we used often than to start something new
, since the aim is to make the Workers platform better
, not to make a standalone db
M
Max (@rozenmd)
•
2/13/24, 7:44 AM
D1
's API will be run from Workers
:soontm
:
M
Max (@rozenmd)
It isn't (yet) - it was easier to take an existing approach we used often than t...
H
Hello, I’m Allie!
•
2/13/24, 7:46 AM
TIL
H
Hello, I’m Allie!
•
2/13/24, 7:46 AM
Might also help to be able to hit EuroCore
, even when PDX isn
't down
H
Hello, I’m Allie!
Might also help to be able to hit EuroCore, even when PDX isn't down
M
Max (@rozenmd)
•
2/13/24, 7:47 AM
It runs in both in an active
/active config
H
Hello, I’m Allie!
•
2/13/24, 7:48 AM
Nvm
M
Max (@rozenmd)
D1's API will be run from Workers :soontm:
M
Mozzy
•
2/13/24, 9:27 AM
Does this mean the HTTP API will be comparable in perfprmance to creating a proxy worker ourselves
?
M
Mozzy
Does this mean the HTTP API will be comparable in perfprmance to creating a prox...
M
Max (@rozenmd)
•
2/13/24, 9:30 AM
The API has unavoidable overhead that you can avoid by creating your own Worker
M
Max (@rozenmd)
•
2/13/24, 9:30 AM
but it
'll be a lot more comparable than now
Z
Ziga Zajc
awesome, what about maximum database size limit. Will this be completely removed...
M
Max (@rozenmd)
•
2/13/24, 9:51 AM
H
Hello, I’m Allie!
•
2/13/24, 9:52 AM
https://canary.discord.com/channels/595317990191398933/1199016695491219469/1203006777621356544
M
Max (@rozenmd)
•
2/13/24, 9:53 AM
D1 is built on Durable Objects
- it
's easy for us to support millions of databases and load them across the world quickly
. Big databases
, less so
Z
Ziga Zajc
this comes with D1 GA release?
M
Max (@rozenmd)
•
2/13/24, 10:52 AM
don
't know yet
T
Tony Leung
•
2/13/24, 2:04 PM
hi
, will D1 have error code like mysql or postgresql
(like in this document
:
https://www.postgresql.org/docs/current/errcodes-appendix.html
)
? Currently I
'm handling errors by parsing the error messages
, which is kinda intuitive
.
Ɽ
ⱤØ₥₳₦
•
2/13/24, 2:45 PM
Is it possible to build analytics system in D1
Like i have 2k
+ posts and each has unique id
.
So i want to use D1 as database for pageviews system
(hourly
)
So i can see trends hourly
, monthly and yearly
Ɽ
ⱤØ₥₳₦
Is it possible to build analytics system in D1 Like i have 2k + posts and each ...
M
Max (@rozenmd)
•
2/13/24, 3:29 PM
if you have under 400 writes per second
, yep
, but strongly recommend Workers Analytics Engine for that use case instead
M
Max (@rozenmd)
if you have under 400 writes per second, yep, but strongly recommend Workers Ana...
Ɽ
ⱤØ₥₳₦
•
2/13/24, 3:33 PM
More than 3k cause on average 3k users are live on my site
. I thought i should use google analytics with API
but that
's too complex
Ɽ
ⱤØ₥₳₦
More than 3k cause on average 3k users are live on my site. I thought i should u...
M
Max (@rozenmd)
•
2/13/24, 3:41 PM
check this out
:
https://developers.cloudflare.com/analytics/analytics-engine/
we do hundreds of millions of requests per second through it
, and you can query it with SQL
C
Chaika
•
2/13/24, 3:42 PM
could always do something silly where you have a worker with a cron trigger every hour or so to pull aggregated stats down into D1
C
Chaika
•
2/13/24, 3:43 PM
then you
'd have 90 days or nice adaptive sampled analytics for some graphs and longer term aggregated
M
Max (@rozenmd)
check this out: https://developers.cloudflare.com/analytics/analytics-engine/ we...
Ɽ
ⱤØ₥₳₦
•
2/13/24, 4:04 PM
That
's insane
. I
'll try this
thanks for reply
C
Chaika
then you'd have 90 days or nice adaptive sampled analytics for some graphs and l...
Ɽ
ⱤØ₥₳₦
•
2/13/24, 4:04 PM
Thanks ma
'am
Next page
Similar Threads
queue outside workers?
CD
Cloudflare Developers / general-help
3y ago