6 months ago
Hey there. I'm trying to use the Hobby account to run an app that uses Server-Sent Events. While this works locally, it doesn't seem to work when on the Railway servers.
I've been told about services will stop working after 5 minutes of inactivity (I'm paraphrasing) and that would mean leaving something open like an SSE service would be pointless. However, despite the 5-minute limit, I would expect it to still connect.
My question is: do I need to upgrade to a higher-level account in order to have a dedicated server so it won't spin down, and, that it will support SSE?
Thank you, in advance!
3 Replies
6 months ago
Hello,
SSE works perfectly on Hobby, and any plan for that matter - https://utilities.up.railway.app/sse (This app is ran on a Hobby account)
> I've been told about services will stop working after 5 minutes of inactivity.
This is not true, unless you have specifically enabled app sleeping, your app runs 24/7.
> do I need to upgrade to a higher-level account in order to have a dedicated server so it won't spin down, and, that it will support SSE?
Nope, from the trial to enterprise plans, services by default are not spun down (unless you run out of credits on the trial plan, but that's besides the point)
6 months ago
Thanks for the reply, brody.
I believe I found the answer: my machine is blocking the request. I'm using my work machine and it seems like something on here is blocking the requests. I tested the UP service calls on other machines and my phone: they all work.
Now I just have to find out what's causing the blockage. Some people have said it's antivirus or something similar that intercepts requests.
Thank you!
Status changed to Solved brody • 6 months ago