Simplify your stack and build anything. Or everything.
Build tomorrowโ€™s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
Itโ€™s time to take back your content infrastructure.

Poor Man's Deployment

default discord avatar
taun21602 years ago
13

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
    exo37182 years ago

    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
    taun21602 years ago

    Ok cool, thanks a lot Tim.

  • default discord avatar
    exo37182 years ago

    any time ๐Ÿ™‚

  • default discord avatar
    markatomniux2 years ago

    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
    taun21602 years ago

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

  • discord user avatar
    alessiogr
    2 years ago

    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

  • default discord avatar
    markatomniux2 years ago

    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 ๐Ÿ˜„

  • discord user avatar
    alessiogr
    2 years ago

    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
    markatomniux2 years ago

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



    https://cloud.google.com/run/docs/securing/ingress
  • default discord avatar
    taun21602 years ago

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

  • default discord avatar
    markatomniux2 years ago

    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
    taun21602 years ago

    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
    markatomniux2 years ago

    yeah it's pretty easy ๐Ÿ™‚



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

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.