ccbikai / Sink

⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
https://Sink.Cool
GNU Affero General Public License v3.0
3.01k stars 1.62k forks source link

Data created through the API will take dozens of seconds to be accessed normally. #19

Open Quinlivanner opened 4 months ago

Quinlivanner commented 4 months ago

Data created through the API will take dozens of seconds to be accessed normally.

Suppose I create a new one through the api now. I use the returned data to request immediately and the result is 404. I can only access it normally after waiting for tens of seconds and seeing its existence on the web page.

Quinlivanner commented 4 months ago

@ccbikai Bro do u have any update for my issue?

ccbikai commented 4 months ago

This is a limitation of Cloudflare, there is currently no solution. If there is a better solution, please let us know

https://developers.cloudflare.com/kv/reference/how-kv-works/#performance

Quinlivanner commented 4 months ago

Is it possible to separate it from the cloudlfare dependency and deploy it on my own server?

realByg commented 4 months ago

This is a limitation of Cloudflare, there is currently no solution. If there is a better solution, please let us know

https://developers.cloudflare.com/kv/reference/how-kv-works/#performance

KV is stored on cloudflare worldwide endpoint which takes time to update each endpoint. Use cloudflare d1 database insetad.