I wanted to make a publishing widget so minimal it would operate without fuss on a $5 digitalocean plan, and I think I almost succeeded!
I wanted to make a publishing widget so minimal it would operate without fuss on a $5 digitalocean plan, and I think I almost succeeded!
It starts with this premise: https://aws.amazon.com/articles/1434/
There is an approach I've used for years and my site never goes down with high traffic and I didn't use load balancers or anything fancy. Its very cheap to run and maintain.
1) Use Amazon S3 and Cloud Front for all your web pages, including your web app as well along with storing anything such as file uploads, etc.
2) Have a simple cheap $5 Digital Ocean Droplet (Node or Go) used only as an API.
3) JavaScript is hosted on your website front end that upon save for content then hits your API server just once to get a Just-In-Time signing request that authorizes the web browser to make an upload directly to S3 temporarily and signed to a specific namespace/bucket. This type of traffic happens very less than say viewing a web page along with it taking up very little processing and bandwidth so you really don't need to scale this.
4) The web browser's javascript literally creates the entire html page and uploads it directly to S3.
You can easily do image uploads as well or video too using this method and use the just-in-time signing method for those too.
Yes it is not secure if there is no signup etc but you can do crypto.generateRandom to put people in specific namespace path then show their URL after, controlling limited permissions and the location of where things are saved from your cheap API server.
Here's my little repo for signing to demonstrate this -> https://github.com/sebringj/siggy
Just a thought.
My server purred with hn traffic.
[1]: https://idiallo.com/blog/handling-1-million-web-request
What's the CPU utilization like with this level of usage?
What's the back-end stack?
What's the normal latency like?
I'm just wondering why it would go down due to heavy traffic, when all it serves is basic text?
Live for how long though?
Too many publishing platforms sunrise and sunset. To use one that's not self-hosted, I really think one either needs to (1) charge money, and/or (2) offer guarantees like Posthaven or Svbtle, if you want users to publish good content on your platform.
I'd worry that's an abuse of archive.org except apparently their policy is basically "the crap is important too".
http://www.theverge.com/2017/2/23/14712352/txt-fyi-minimalis...
No need for modesty.