I personally wouldn't use D1 as a primary due to the nature of D1 being so far from potential worker

I personally wouldn't use D1 as a primary due to the nature of D1 being so far from potential workers depending on your user base, the latency isn't good. During my own testing the extra 100-500ms latency per worker request due to multiple round trips to D1 wasn't worth it.

It forced me to use the DO SQL engine instead and refactor my app to per-user DBs which I feel is a more scalable design.
Was this page helpful?