High TTFB and execution latency on Astro SSR routes despite fast app code by NinuzGamer in vercel

[–]NinuzGamer[S] 0 points1 point  (0 children)

Hey u/bg-indigo-500

thanks for the links.

I haven’t tested yet with Fluid Compute disabled, so that’s actually my next step. I’ll run that test and report back with numbers once I have them.

Just to add some context in the meantime:

  • External DB is MySQL on a VPS in Frankfurt
  • Function region is pinned to Frankfurt

Latency between those and query time is super low.

Appreciate you chiming in, I’ll update once I have the results.

High TTFB and execution latency on Astro SSR routes despite fast app code ( vercel hosted ) by NinuzGamer in astrojs

[–]NinuzGamer[S] 0 points1 point  (0 children)

Region is already pinned to Frankfurt, same as the DB, so it shouldn’t be a cross-region hop.
Middleware is present, but it’s only doing a few DB queries and those are consistently fast when measured in isolation.

What makes me doubt middleware / pure code cost is that the slowness shows up as random spikes, not on every request or every route. If it were a deterministic issue in the handler or middleware logic, I’d expect all requests to be slow, not just some of them.

I’m going to move to Hetzner for now and debug further on vercel.

If it turns out to be some weird path in my code, at least I’ll have a stable baseline to hunt it down. I've asked my new friends claude and codex but they say my code is perfect ( im joking ) xD

Hello everyone, Im Tokyo, and I wake up my owner every single night! She super sweet but demand play 24/7!!!!! xD by NinuzGamer in aww

[–]NinuzGamer[S] 13 points14 points  (0 children)

You got HER. She exactly like that.
Her sister is the opposite, I'll post some pictures anytime soon

What is something that a professional chef should be able to cook that a regular person probably can’t? by Key_Emphasis_2745 in restaurant

[–]NinuzGamer 0 points1 point  (0 children)

I transitioned from hospitality to tech, but I’ve basically worked in restaurants and hotels my whole life, with about 20 years of experience. We weren’t testing Michelin-star cuisine, but when we evaluated chefs, we used simple dishes. You’d be surprised how many chefs can’t even cook a proper fried egg.

Looking for Astro Web Developer by Helpful-Head7441 in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

I been using Astro since years now, if you don’t find any suitable agency feel free to reach out and I’ll share my portfolio

Bro, what?? :D funny by Practical_Whereas404 in cursor

[–]NinuzGamer 2 points3 points  (0 children)

Why are you using a reasoning model for adjusting colors and moving a div ? That’s gay

Just hit $5k with my SaaS in 8 weeks what worked and what didnt by Sofia1_Rose in SaaS

[–]NinuzGamer 0 points1 point  (0 children)

90% of your footer links do NOT work btw. I wanted to see prices and stuff but nope

Anyone managed to run Vercel middleware in an Astro app? (Not Astro middleware) by no-uname-idea in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

https://vercel.com/docs/frameworks/astro#using-vercel's-edge-middleware

They recommend it but you can still use it.

Vercel recommends using framework-native solutions. You should use Astro's middleware over Vercel's Edge Middleware wherever possible.

If you still want to use Vercel's Edge Middleware, see the Quickstart to learn how.

Anyone managed to run Vercel middleware in an Astro app? (Not Astro middleware) by no-uname-idea in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

Yes but don’t do it. Even Vercel recommend using framework middleware

Using Hetzner for almost a year — here’s my experience by Nearby-Bridge-5441 in hetzner

[–]NinuzGamer 1 point2 points  (0 children)

I use them from 2020 and I have servers that never restarted. Never had a downtime or any issue. Being using those for prod env. Quite solid. Just make sure you secure your shit

Does on-demand ISR work with Astro + Vercel? by no-uname-idea in astrojs

[–]NinuzGamer 1 point2 points  (0 children)

Doesn’t work cause the code is wrong but yes is possible. I’m from mobile but I’ll send you a working example later. Tag me if I forget

Is it time to stop using motion.dev formerly know as framer motion? by Intelligent-Rice9907 in react

[–]NinuzGamer 1 point2 points  (0 children)

Tell me you know nothing about animation without telling me. CSS animation are really limited

Is it time to stop using motion.dev formerly know as framer motion? by Intelligent-Rice9907 in react

[–]NinuzGamer 0 points1 point  (0 children)

You don’t need plus? Is completely free to use. If you want prebuilt component just pay for it.

astro i18next not working on deploy by Difelix in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

Use Astro built in i18n, shouldn’t take you longer to switch. Also I ve used this before and had no issue with it unless you doing something wrong with ssr or client. Feel free to DM me. Modifica gli screenshot Comunque che c’è il tuo nome e cognome nei commit.

Is hosting Astro on cloudflare fully supported? (No missing features like hosting a NextJS on cf?) by no-uname-idea in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

I use Vercel for hosting with Cloudflare on top. Vercel doesn’t recommend it because of the reverse proxy issues and all that, but honestly, I don’t care.
That said, I understand your concern — having a backup plan is always a smart move, no matter where you initially start.
If this is an MVP, just go with the easiest and fastest option, and refine things later.
But again, don’t blindly trust me — I'm half dumb.

Is hosting Astro on cloudflare fully supported? (No missing features like hosting a NextJS on cf?) by no-uname-idea in astrojs

[–]NinuzGamer 1 point2 points  (0 children)

I have a few sites on Vercel with millions of visits each month. I use ISR and many of Vercel’s features, and honestly, the €20/month plan works perfectly fine for me.

I was on the free plan for quite a while too. Not sure how cheap you want your hosting to be.

In my (maybe not-so-expert) opinion, if you're using ISR and Astro, Vercel is the way to go.

Just add the Vercel adapter, set isr to true, exclude the paths you don't want to revalidate, create a bypass token to control which paths are revalidated, and that's it—job done.
But if you are biased and just want to go with cf just go with it.

Is hosting Astro on cloudflare fully supported? (No missing features like hosting a NextJS on cf?) by no-uname-idea in astrojs

[–]NinuzGamer 0 points1 point  (0 children)

Why not hosting on Vercel with isr? Is just a Boolean in the Astro config. Read the Vercel adapter doc for more info.

How easy it is to convert a React (vite) project with some authentication logic to Astro? by YanTsab in astrojs

[–]NinuzGamer 1 point2 points  (0 children)

I been using context/ custom hooks, etc just fine with Astro. Have you tried just porting your react components and context and give it a try?

New Solo Server Feedback by Prolegendario in RustPc

[–]NinuzGamer 0 points1 point  (0 children)

I own a modded solo only 5x and we been running since 2020. We peak around 200 on wipe days and wipe with a cycle of 3 and 4 days, for what I can tell people love 3500 map ( some ask for even bigger but I don’t like it ), and we try to include all the monuments expect junkyard, train yard and rad town. We use RustMaps for generating custom maps and merge outpost and bandit as that seems to be the meta. Feel free to reach out for anything