Discussion

Ask HN: What is the most barebone back end solution?

Through sheer luck and even more stubborness I somehow ended up with a very small web game (in the realm of games like Wordle) in pure Typescript.

I want the state of the game to be shareable via following process: Player A presses save -> a JSON is saved onto my server -> A link is generated and shown to Player A -> Player A shares that link with Player B -> Player B clicks that link -> The game is loaded with the state of Player A

So the only interaction between front- and backend would be saving and loading that one JSON. My problem is: To me, the web might as well be magic, and I'm a bit overwhelmed with how I can get the ball rolling.

I think my options are:

A) Amazon Lambda + a S3 bucket (appeareantly this is somehow the cheapest and the most expensive option at the same time?)

B) Renting my own VPS and interacting with it through a REST API (I think I would need a managed server rather than a web hosting option, right?)

C) Something like Google Firebase/AWS Amplify

I feel like option B would be the old-school way of doing things and a good way for me to finally overcome my web-phobia, but do I really need to pay 50€/m to host a game that probably nobody every will play?

19 points CBarkleyU 3 years ago 48 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton