• heartlessevil@lemmy.one
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    2 years ago

    The only way to about this is to self fund and stop assuming Web apps are free.

    It’s possible to make web apps that are close to free, but that isn’t how developers work these days. Everybody has to use JavaScript, Kubernetes, Docker, and a 500-person developer/infrastructure team. When in reality, 99.999% of websites could be made without JavaScript, hosted on a single VPS with SQLite.

    A couple of my side projects run on 1GB VPS that cost $10/month, and they would easily run on a 512MB VPS if those were still offered.

    • Edgerunner Alexis@dataterm.digital
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Yeah I’m hosting a video streaming service, a Discord clone, a CMS, git web, and my blog on a $120 ThinkCentre (4 cores, 8GB RAM, 1TB SAMSUNG SSD) in my home, and it works wonderfully. Basically no upkeep costs, the extra electricity used is not even noticeable.

    • moon_matter@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 years ago

      Everybody has to use JavaScript, Kubernetes, Docker, and a 500-person developer/infrastructure team. When in reality, 99.999% of websites could be made without JavaScript, hosted on a single VPS with SQLite.

      There are legit reasons to use k8s and docker even on a small project. It ensures that your dependencies are isolated from those of the host OS. Gone are the days where you have to worry about multiple different services clashing because they all want to use the same ports, directories etc by default or different versions of the same service.

      I’m also done being called at 2AM in the morning because the security team decided to automatically update all servers and forgot we were on the exemption list. Now our install is broken and nobody remembers what the original configuration was. So we spend 8 hours in a “war room” trying to unscramble our eggs. Docker makes everything infinitely more stable and it’s not that big of a deal to get running.

        • moon_matter@kbin.social
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          2 years ago

          I don’t necessarily disagree. There are many ways to achieve the same or similar results. But docker seems to have become the popular option to the point where services are offering docker configurations out of the box. Meaning I have a standard, officially sanctioned way of doing what you described. Someone has already figured out how to properly containerize what to me is only a dependency and I can focus my efforts elsewhere. The option to get my hands dirty is still available, but it becomes a choice.

          • heartlessevil@lemmy.one
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Yup, you can definitely take shortcuts that make development easier at the cost of maintenance being harder and more expensive. That’s exactly the problem I was describing.

    • animist@lemmy.one
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      I am thinking about hosting a single user instance in which I could have communities on a Raspberry Pi 4. Do you think it is doable? Asking because if not I’ll just get a VPS.

      • heartlessevil@lemmy.one
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Yes, but you will need to put the database and static file storage on a USB or network storage device as opposed to the SD card. The networking is going to be the hard part.

        • animist@lemmy.one
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          I replaced the SD card with a 2TB SSD connected via USB, so that should probably work then. The networking will indeed be confusing. I am already using the Pi to run a Nextcloud server, Jellyfin server, and a few other smaller applications. I imagine it is possible to also have a reverse proxy on the same machine? Also the join-lemmy site and install docs keep giving me a 502 bad gateway so something in production must be wrong right now, I guess I’ll have to wait until tomorrow.