My web project server is in Europe but many users are in the US what do I do

Hello,
I have a PHP Client and WebSocket backend, my current setup is in Europe but my customer base is 50% EU and 50% US.
So won’t people connecting from America have slow access to my site right?
How can I make this better?
I did some research and most suggested a Serverless PHP and AWS RDS setup since they run on multiple regions but the costs are really high for my startup like 3000 dollars per month.

If I buy a server in the US and deploy my client there too while using load balancing on Cloudflare will the results be the same since my database is in Europe?

Honestly, I have been confused about this for days how do others deal with it?

Thanks!

Can you explain what you mean by slow

Remi said:
Can you explain what you mean by slow

I don’t trust those website ping test results but my Cloudflare report from the USA shows these times;

Time To First Byte 0.26 seconds
First Contentful Paint 1.08 seconds
Largest Contentful Paint 2.57 seconds
Time to Interactive 2.60 seconds
Total Blocking Time 1 millisecond
Speed Index 1.83 seconds
Cumulative Layout Shift 0.01

Are these numbers good if they are good maybe it’s related to Cloudflare servers I don’t have much experience on this.

@Hale
That wasn’t a ping, I meant actual connections.

If Cloudflare is in front, I wouldn’t worry too much about it as they handle the final connections that are closest to the user removing your concerns.

@Remi
Oh my mistake,

rtt min / avg / max
USA Atlanta - 101.1 / 101.3 / 101.5 ms
USA Chicago - 139.8 / 139.9 / 140.0 ms
USA Dallas - 118.3 / 118.3 / 118.4 ms

My server is in Frankfurt, Germany

@Hale
Those times are under a fifth of a second. If you go over 2 seconds, then you have something to worry about.

@Hale
Those numbers look good, I don’t think you need to change anything

You don’t even know if the users are experiencing slow connections Are they complaining? What’s the average speed

You’re trying to fix a problem you might not even have

I suggest you start with a benchmark exercise so you gather data for US visitors compared to EU visitors.

Is it actually slower? Is it slow enough for users to notice?

Get some numbers on this otherwise how will you know if you’ve solved the issue

After that, you can start looking at your options.

Based on what your site does, a basic CDN to cache static content might be sufficient.

Consider CDN and database replication

I faced this exact issue when scaling my previous SaaS projects and here’s what worked:

  1. Start with Cloudflare – it’s free and boosts performance globally by using their CDN. Plus you get DDoS protection which is a bonus.

  2. If you’re using Cloudflare, the next step is to use edge caching. Cache as much static content as possible at the edge. This will help your initial page load times.

  3. For your database – yes keeping it just in the EU will create latency for US users. Instead of going fully multi-region (which is expensive like you found), you could:

  • Set up read replicas in the US (cheaper than full multi-region).
  • Use Redis or Memcached caching in the US for frequently accessed data.
  • Optimize your queries and only hit the EU database when necessary.

Don’t rush into serverless and multi-region setups yet. It’s likely too much for your current stage and will use up your resources quickly. Start with basics like CDN, caching, and read replicas and scale up only when needed.

If you still have issues after trying these, feel free to message me – I can check your setup and suggest more optimizations

Try using Cloudflare it may help with the issue

Mal said:
Try using Cloudflare it may help with the issue

Cwowdflare (´・ω・`)

Mal said:
Try using Cloudflare it may help with the issue

Cloudflare is already active on my site Does its DNS routing work like this

Having a good setup is much more important than just server location. It’s good to be near customers, but if I had one thing to optimize it so wouldn’t be location.

Shan said:
Having a good setup is much more important than just server location. It’s good to be near customers, but if I had one thing to optimize it so wouldn’t be location.

Yes, that’s what I’m asking what should I focus on

@Hale
Are image sizes optimized

Is JavaScript compressed Do you have any unused JavaScript

Is the HTML too large

Do you have slow database queries

@Hale
There’s general advice for this (optimizing assets, caching strategies, and server tuning) but first, find the bottlenecks; that’s when you can build a solid optimization plan based on real evidence. Otherwise, you might waste time on things that won’t yield good results.

Use tools like Datadog, Web Page Test or Pingdom, and New Relic to check your front and back-end code for performance issues.

Can your pages be cached If so using a CDN with caching could help

Zuri said:
Can your pages be cached If so using a CDN with caching could help

My pages are fully dynamic I don’t think caching will fix my issue, and yes my client is cached and my PHP client is also using opcache jit and I’m using Cloudflare with all features so I have CDN.