Latency when proxing api calls from my cf worker -> my vps

Hi I have an API hosted on a VPS (typesense search) and when I hit it directly I get response times of 20-45ms when I make the exact same request but put my cloudflare worker infront of it (so request to worker -> vps -> to client). I get response times of over 300ms. Both the VPS and me are situated in London. How can I get this middleman latency down to less than 50ms. (I dont believe im using smart placement)
2 Replies
James
James2mo ago
Can you share any example URLs or things we could use to test? Smart Placement might help if every request in your Worker hits your VPS that's in a single location.
Sam
SamOP2mo ago
Yes will dm you 🙏🏻 (And anyone else who needs access to this)
Want results from more Discord servers?
Add your server