i often need an *extremely* simple backend server, just a web socket echo server will usually do, and it does not make sense for me to stand up a $5/mo digital ocean droplet for that... are there alternatives? trying to host what amounts to a static site with a trivial backend for synchronization.

Follow

@nasser I use object storage for this. I've been using Backblaze for my password manager for like 7+ years and IDK if they have billed me 1$ yet. I just give the backblaze credential out publicly on pwm.sequentialread.com. I've never had any issues with that. The token can PUT and GET but not delete or list.

-----

For realtime stuff, my favorite has been HTTP/2 + Server Sent Events. No limit on number of client -> server event sends (each one is a POST request in HTTP/2) and no WebSocket-related-protocol-negotiation issues.

The client-side JavaScript is very simple and only uses built-in browser APIs (EventSource + fetch)

I've always implemented the backend from scratch, IDK if there's a simple "broadcast" SSE server you could just download and run.

Here's an example implementation with python-flask as the server:

github.com/pingnova/depottextl

github.com/pingnova/depottextl

Here's an example in Go:

git.sequentialread.com/forest/

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.