#I have a sensitive endpoint on my server, that needs to run instantly when requested.

22 messages · Page 1 of 1 (latest)

vestal hornetBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

finite spokeBOT
#

Project ID: 1c75cd96-f9af-4552-afd9-e563c1c8a532

weary smelt
#

1c75cd96-f9af-4552-afd9-e563c1c8a532

queen void
#

railways services are always on, there is no cold starts

weary smelt
#

thats not what I mean

queen void
#

there's no wake up time, the services are always on

weary smelt
#

it takes a while to respon... Which means he's working at the lowest possible config,

#

I know dude.

#

The goal is to save $$ and energy! I get it.

#

But it's a sensitive endpoint... needs instant response.

peak hill
#

that is simply not how it works

weary smelt
#

enlighten me

peak hill
#

your servies are always running with whatever resources your code requests (up to the plan limitations)

#

they are never spun down or "slept"

weary smelt
#

I get it

#

It happens CPU is at 0.1

#

And response time is a bit laggy... isn't because of low CPU?

peak hill
#

when your app isn't consuming CPU it isn't doing anything

#

the metrics graphs won't have an instant response time w/ regards to "i request a heavy endpoint, metrics immediately spike"

peak hill
#

polling metrics that fast would lag out your app

#

i suspect your endpoint is just slow due to a bunch of DB calls or complex logic