Poor Man's Deployment

default discord avatar
Taun
last month
22

I know very little about this. Payload Cloud sounds great and I'm keen to use it for client projects. It's got me thinking about low to no revenue websites. I'm considering importing and selling a few FPV drones sporadically here in South Africa to reduce my costs.


I need to reduce the monthly expenses to a minimum for it to be worth it.



Is it possible for me to use Payload CMS and Nextjs and not pay a fee above $10 for hosting? The cheaper the better. What do you suggest?

  • default discord avatar
    Exo
    last month

    Depends on your exact requirements but you can certainly get a cheap VPS to run pre-built docker images with payload and nextjs, personally I pay 15 Euro for mine and rarely use 10% of RAM and CPU so 1Gb with 1 virtual core should be enough for a simple application.



    Vultr offers cheap servers and gives you 250$ credit to try it out www.vultr.com or, if you are new to payload, try their free cloud options (free until June, afterwards depends on your project, starting at 35 bucks but will save you quite a bit of work as backups etc are all included)

  • default discord avatar
    Taun
    last month

    Ok cool, thanks a lot Tim.

  • default discord avatar
    Exo
    last month

    any time ๐Ÿ™‚

  • default discord avatar
    Mark | Omniux
    last month

    Hi Taun. Bit of a shameless self plug but I wrote an article on Deploying on GCP for free

    https://discord.com/channels/967097582721572934/1090311570522902548
  • default discord avatar
    Taun
    last month

    Nice, sounds good, I'll try that. Thanks Mark.

  • default discord avatar
    Alessio ๐Ÿฃ
    last month

    For low revenue websites, I can also recommend railway!


    currently have 2 low/no revenue websites there and am paying 0$ a month for pretty great performance (anything <5$ a month won't be billed)



    if the server doesn't have high loads that's probably the cheapest option you can find.



    once it gets more visitors & higher load, then a VPS would prob be the cheaper option



    or that ๐Ÿ˜„ Am wondering: Do you know if GCP has a cost control nowadays? Something where I can set a limit of idk, 500$ a month, and for anything over that, it'll pause or shut down my projects?



    I always wanted to try it, but am worried about unexpected high loads driving me to bankrupcy



    e.g. a ddos attack which doesn't get blocked

    Arc_2023-04-04_at_13.35.092x.jpg
  • default discord avatar
    Mark | Omniux
    last month

    We've got budget limits setup that notify us whenever we approach certain thresholds, like 50%, 75%, and 90% budget usage in a month. Additionally, you can set the maximum compute power and number of instances that can run at one time in Cloud Run. So we set it to 2 just in case anyone decides to try to spam the login ๐Ÿ˜„

  • default discord avatar
    Alessio ๐Ÿฃ
    last month

    mh that's the thing - limits just notify you. Worried something happens while I'm asleep or away



    maximum compute power and number of instances

    That sounds more interesting though! Can you limit network ingress & engress as well?

  • default discord avatar
    Mark | Omniux
    last month

    yup! We run everything through Google load balancer for granular control



    https://cloud.google.com/run/docs/securing/ingress
  • default discord avatar
    Taun
    last month

    Rad. To clarify -using Google you can prevent attacks by setting a limit?

  • default discord avatar
    Mark | Omniux
    last month

    Well it won't prevent attacks. But it will reduce the potential cost overhead you would incur if you were attacked. If you want to protect against attacks, add a Load balancer and possibly also DDos protection with Google Cloud Armor. Ultimetly there is no way to stop attacks, but you can limit the total potential damage they may cause to the point where an attacker would most likely give up

  • default discord avatar
    Taun
    last month

    Poor Man's Deployment



    Ok cool. Yea I mean prevent losing a lot of money from an attack by setting a limit. That's simple to implement with Google?

  • default discord avatar
    Mark | Omniux
    last month

    yeah it's pretty easy ๐Ÿ™‚



    you can handle most of it from the Google Cloud Run Container page

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.