Pricing Medium App ( Nextjs Strapi )
Hi, i have for a client a website host on Railway
I have a traffic depending on the period of casting it's a Casting Agency.
For one month, the client have to pay 77$, it's pretty expensive
What can i do to lower the price ?
17 Replies
Project ID:
N/A
N/A
Mind sending a screenshot of their project’s pricing page?
Can’t really suggest improvements without seeing where all the cost comes from
Here all the infos !
When did you deploy the app? Generally we recommend waiting for ~48 hours before the estimated pricing is accurate. Mentioning this because your cpu seems super low
The algorithm has to see a period of regular usage before it can recommend an accurate estimate
But for starters your RAM is pretty high. What do you have loaded into memory?
Your egress seems high as well. Are you communicating with an external database?
I deploy the app 3 month ago
I have on this project :
- Save Up for the database
- postgresql Databse
- Strapi CMS
- Nextjs APP
And we retrieve data with AWS for all media ( 20 000 media)
and i deploy change like maybe 4 times a week for adding functionnality
Up ⬆️
What can i do to lower the pricenot much tbh, write efficient code, connect to any databases over the private network
Ok so it's just railway prices, I think I'll migrate elsewhere, at least the interface was good and simple!
Thanks!
@Tyron If you are still around: Do you by any chances have to deal with large media files ? If so have a look at this https://discord.com/channels/713503345364697088/1067670924385583114/1199361212408942734 or directly this https://github.com/strapi/strapi/issues/14417
GitHub
Sharp - Media Upload Memory Leak · Issue #14417 · strapi/strapi
Bug report Required System information Node.js version: 14.19.1 NPM version: 6.14.16 Strapi version: 4.3.8 Database: PostgreSQL Operating system: Linux (Heroku) Describe the bug We have a website t...
@saintcore Interesting, thank man, was wondering for month why in production with large media I got this error
and for clarity, it's not "just railways prices" there's nothing wrong with their costs for cpu and mem, it's simply that your app uses a lot of memory and you are charged accordingly
fr Strapi uses a lot of RAM, even for 3 users 💀
Ok got it with the RAM, i need to reduce the number of request with caching for example but for egress can you give me an indication for that ?
to decrease the egress usage, you could use something like Cloudflare to cache your html/css/js/imgs
not sure if it will help with your RAM usage, it looks quite stable
and also make sure to use private networking whenever you can, private networking doesn't charge egrees
examples for strapi here (prod via private url) https://github.com/railwayapp-templates/strapi/blob/main/config/database.js and here (dev via public url) https://github.com/railwayapp-templates/strapi/blob/main/config/env/development/database.js 🙂
hehe i did that