Hacker News new | ask | show | jobs
by christianjung 2654 days ago
Just curious, how are you providing the free api? R you eating the cost?
2 comments

The site appears to be hosted by GitHub, and the API is served by Heroku, which has a free tier with a soft bandwidth limit of 2TB/month.
Hosting the site cost nothing. Using $7/mo Heroku server for API with HTTPS and custom domain. Firebase can quickly start to cost money. Domain around $32/year. So it definitely does cost money to run, but not much at all.
If you want to reduce your costs, you can have HTTPS with a custom domain on a free Heroku app by using Cloudflare. Why are you using Firebase to serve quotes? I imagine the dataset could number just a couple thousand quotes max, which is fine to serve from memory after loading from a file at startup.

Or if you're using Firebase as a convenient interface for adding new quotes, the app could update its internal cache of quotes once a day, without having to pay Firebase for each API call.

Yeah, I realized that after it started getting a lot of traffic. The problem is I kinda just made this for fun and have no idea what I am doing. Do you want to contribute? https://github.com/ajzbc/kanye.rest
Yeah... I have a small codefund ad on the site, but that doesn't do much because this product is an API. I have a support link, but I don't expect anyone to donate for something they will likely never use seriously.