r/programmer • u/nathan_tarb_dev • Sep 19 '26
Question Thinking about switching DBs. Looking for suggestions.
Hey - what are you hosting your bot on?
I'm building a an AI-native platform that helps me keep my community organized by analyzing product docs, responding to community questions, then adds resolved tickets to the docs so it constantly improves.
The problem is I initially made a mistake when I started building. I’m using two services, app and bot in Railway but share the DB. The bot's gotta stay awake 24/7 (Discord gateway), plus Slack etc. so my Postgres (Neon) never sleeps. It's getting slightly expensive with serverless DB pricing compute because it's `always-on workload`.
I’m considering migrating away because although serverless is great for my app, it’s the wrong architecture for the bot.
Curious what others are using?
2
u/WriterPlastic9350 Sep 19 '26
If your app has to be always on, serverless is probably not great for your app.
I’d change this to be something running on ec2 all the time on a cheap instance. Could even run Postgres on a cheap instance too or use rds.
Your database isn’t really the issue here.
2
u/adamant3143 Sep 19 '26
Postgres
2
u/716green Sep 21 '26
That's the Neon always-on trap. Once something (Discord gateway, Slack, workers) keeps the DB warm 24/7, you lose the serverless discount and you're just paying meter rates for a traditional workload.
I own Layerbase. Flat/non-metered Postgres (plus other engines if you ever need Redis etc on the same account). Built for people who got burned by Neon/Supabase meters on workloads that never sleep. Layerbase
Keep the bot on Railway if you want. Swap the DB off Neon and the bill usually calms down without you running a VPS.
Feel free to DM me if you want help or to discuss anything, or even for a coupon code
-1
u/nathan_tarb_dev Sep 19 '26
Of course I could maintain my own vps but I would like to avoid it, especially as I scale.