Lurker News
Release early, release often. Don't worry, be crappy. Fail fast. Iterate.

Show us your half baked, not really ready for prime time projects.
Also, if you need any help with a project, a startup, or an idea, just post it here.

Comments (820) 521 threads

Earlier comments
gwph1 reply#
https://lofichess.com

I wanted a trimmed down interface for following live chess streams. To keep the website updated I run an AWS Lambda every two minutes that does the following:
1. Pulls active streams from the Twitch API.
2. Uses the Go templates library to repackage the response as static HTML.
3. Uploads the static HTML to S3, where it is served behind CloudFront.

woutr_be1 reply#
Interesting approach to generate a static website. Is this completely free? Or do you end up paying for the Lambda task?
gwph1 reply#
Average latency for the Lambda over the last week is 4.84s and it runs with 128mb of memory. Running every two minutes, that comes to ~25,000 invocations and ~15,000 GB-seconds of compute time per month. The AWS Lambda free usage tier includes 1M free requests per month and 400,000 GB-seconds of compute time per month so the Lambda is definitely free.

The website is tiny (homepage < 20kb excluding the thumbnails which are hosted by Twitch), so I'm also inside the free tier on S3 and CloudFront. I paid $12 upfront for the domain registration.

woutr_be#
Thanks for the explanation. I was thinking about how I would do it, but always ended up reverting to Netlify. Good to have some different approaches.
headgasket#
https://github.com/francoisp/rosettable

Bringing postgres triggers and notifies to mysql.
I'm half-backing a linked mautic and davical service based on this, to automate analytics, marketing and messaging to your self-hosted contacts. end goal is de-googlify mail contacts and analytics.

Load more comments