5

Free Alternatives to Heroku

 2 years ago
source link: https://dev.to/daveson217/free-alternatives-to-heroku-3jh9
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Given the recent news about Heroku bringing an end to free dynos and PostgreSQL databases, what other free platforms can I use to host Django (Python) powered web applications for free.

Discussion (44)

pic

CollapseExpand

Services which come closest to Heroku's convenience with free tiers are Fly and Render. Render seems to offer Postgres on a free plan. Another option is Railway which AFAICT doesn't have a free tier, but basic usage is quite cheap.

Check out this list for more services with free tiers (not just PaaS like Heroku): github.com/ripienaar/free-for-dev

Comment button Reply

CollapseExpand

Bear in mind that free databases on Render are deleted after 90 days. That's not 90 days of inactivity, just 90 days after creation. They say it's a temporary measure and the are going to change it in the future (which I hope for), but for now it's not really a viable alternative for Heroku.

Comment button Reply

CollapseExpand

Good point! So it may be better to look at external DBaaS providers. For Postgres/relational databases there's aforementioned CockroachDB, and some others like PlanetScale, ElephantSQL, and YugabyteDB (Managed).

Comment button Reply

CollapseExpand

Damn, thanks for the tip! 👌🏻

Comment button Reply

CollapseExpand

AFAICT = As far as I can tell

Because it took me longer that it should have to figure that out.

Comment button Reply

CollapseExpand

CollapseExpand

You could try Vercel.com. It supports Node.js, Python, Go, Ruby. And you can add your own preferred language if you want. It is very similar to Heroku. You could follow the link below to setup and deploy Django to Vercel.
devmaesters.com/blog/15

Comment button Reply

CollapseExpand

Hey, David.

Specifically for Django, check out appliku.com/.

Builds are super fast for Django.
PostgreSQL, Redis.

A whole year of free hosting with AWS Free tier. As far as I know, GCP also offers a free tier.

It works with any cloud provider, so you can pick Hetzner later and save an insane amount of money compared to AWS, DO, and others.

I started working on Appliku 3 years ago and posted the story here dev.to/kostjapalovic/tired-of-depl....

Comment button Reply

CollapseExpand

Author

Sep 1

Thank you. I would look into it.

Comment button Reply

CollapseExpand

I've been working on my own cloud platform since 2 years ago because none cloud services (even heroku) is good enough to me. It has a free option (1GB storage) for everybody and it support Django and/or other languages.

Comment button Reply

CollapseExpand

I don't know anything Python related, but I have 2 database suggestions:

  • Supabase, it has a very generous Postgres free tier

  • CockroachDb Serverless, it also has a generous free tier. It is a NoSQL database with SQL query language, very similar to Postgres. I think it is worth a try.

Comment button Reply

CollapseExpand

Saw a lot of recommendations of Supabase on reddit. Gotta give a try.

Comment button Reply

CollapseExpand

The question that you should not overlook:

Will the currently free alternatives to Heroku will stay free?

I think the problem is the business model free and "Pedos, Crypto and Nazis"

Heroku is removing the free tier

That sucks especially for students who owed heroku to have a simple way to show their work to the world

Where can I find free heroku alternatives?

I understand the rush to ask this question, but this ignores the structural issue which is the dark side of the internet:

Pedos, Crypto and Nazis

Every free tier offering, every free CI service, every free cloud service, every free storage situation, ... is being targeted by people highly motivated to let the free tier offering do their super illegal things, super morally répréhensible things and super wasteful "proof of work" "get rich quick" bitcoin shit.

So your alternative which is free today might well take the same decision tomorrow.

The other important question is "how do people offering free stuff make money in the long run?".

There is no way around this question and it's especially difficult if you also have to waste a lot of resources fighting pedos, crypto and Nazis.

Comment button Reply

CollapseExpand

You have a real point here. Fighting illegal content is a problem.
At Qoddi we solved it by a strict scoring using anti-fraud API + by requesting a credit card on file to use our free tier along with automated and human moderation.
It's not perfect but we think free tier are very important for two types of people:
1/ future paying users that want to try Qoddi before using paid ressources,
2/ Students and people that wants to learn code and don't want to pay for non-production apps.

I think being able to provide a free tier for those two types of users is very important.

It costs money sure, but we provide ressources that are in line with those two usages: limited amount of RAM, shared CPU and no custom domains. If you need more you probably have a production app and our first size costs only $6 a month.

Offering a free tier is cheaper than spending a lot on Google Adwords for users that will not be able to test our service before moving prodution ressources to us, in my opinion it's worth it and we don't have any plan to suspend or remove our free plan in the future.

Alex.

Comment button Reply

CollapseExpand

By browsing this GitHub repository github.com/ripienaar/free-for-dev, I found out that this web hosting Deta offers free hosting service and unlimited applications & database. However, at the present time, it supports only Node.js and Python with micro-frameworks such as Express, Bottle.py, Flask, FastAPI etc. I did not try it yet. It is people from Germany who are building this Deta platform.

Comment button Reply

CollapseExpand

Deta is nice, but you need to specifically design your app around their platform, like their serverless containers (Micros) and NoSQL database (Base). So Django and Postgres from the original question are nonstarters.

Comment button Reply

CollapseExpand

I just want to give some clue for people who want a free alternative to Heroku, not just to host Django and Postgres.

Talking about Deta Micros, it just two lines of code, that is it.

# to create a project locally and on Deta platform
deta new --python myproject

# to deploy the updated project to Deta
deta deploy

The rest is the regular Python language and framework.

For Deta NoSQL database, there are only 6 methods to interact with the database.

put – Stores an item in the database. It will update an item if the key already exists.
insert – Stores an item in the database but raises an error if the key already exists. (2x slower than put).
get – Retrieves an item from the database by its key.
fetch – Retrieves multiple items from the database based on the provided (optional) filters.
delete – Deletes an item from the database.
update – Updates an item in the database.

Data entry in Deta Base is JavaScript object called "document" like in many other NoSQL databases.

Comment button Reply

CollapseExpandCollapseExpand

I'm actually working on a new project that's mostly desgin to support scaling products on more traditional cloud vendors. If that's the case you can check Nopeus

I'm also planning on releasing Nopeus Cloud as a vendor with a free tier soon. I would love to learn more if you have specific requirements.

Comment button Reply

CollapseExpand

If you're looking to host python apps quick and easy, I'd suggest replit.com for that. If you would like a more secure and powerful environment in terms of uptime, I'd suggest qovery.com for putting your app on AWS and hosting it in the cloud

Comment button Reply

CollapseExpand

HarperDB has a free tier available which allows you to store data, host custom Fastify-powered controllers (Custom Functions) and even host static HTML like a bundled web app. It's pretty great for full-stack projects as it can handle everything and really simplifies the project. You can also use it locally but the Cloud Instances they offer work well.

I've been using the free tier for a few months now and I don't have any complaints.

Comment button Reply

CollapseExpand

railway can free for 500 hours
I think use digitalocean is also a nice option for pay service.
If not I think use serverless, like aws lambda, digitalocean functions, google cloud functions or azure functions..these can reduce cost

Comment button Reply

CollapseExpand

When it comes to databases I'd like to point out that serverless becomes a thing. There is a serverless MongoDB (they also have a free tier) and a serverless Aurora DB (from AWS) which costs $0.22 per 1 million requests. It is not free, so it might not be what you are looking for but it's the next best thing. Hope this helps

Comment button Reply

CollapseExpand

For a database, Supabase is a great alternative with a generous free tier, it has a 7 day suspension in case of inactivity (the project can be re-enabled manually in their dashboard). For other backend services I don't really know anything.

Comment button Reply

CollapseExpandCollapseExpandCollapseExpand

I use Coolify, Is a really cool and simple self hosted solution, I even use it with my college students.

Comment button Reply

CollapseExpand

Serverless can help you utilize a free AWS tier significantly easier than using AWS directly.

Comment button Reply

CollapseExpand

I am sure that Azure and AWS offers a free plan too

Comment button Reply

CollapseExpandCollapseExpandCollapseExpand

qoddi.com is compatible with most of Heroku's buildpacks, we have databases and Django in our free tier, our apps never sleeps are not deleted. Let me know if you need help!

Comment button Reply

CollapseExpandCollapseExpand

I’ve done some research to find alternatives to heroku, and created an article based on that. If anyone interested: dmnk.hashnode.dev/free-heroku-alte...

Comment button Reply

CollapseExpand

Dokku running on a VM from any cloud

Comment button Reply

CollapseExpandCollapseExpandCollapseExpandCollapseExpand

You could try Cyclic. What Vercel is to Next.js is what Cyclic is to Node.js. Just connect you github repo and press Deploy.

Comment button Reply

CollapseExpand


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK