Fork me on GitHub
#biff
<
2022-12-03
>
Jacob O'Bryant00:12:08

I'm gonna play around with Fly again, and I just saw this in their docs: > Fly Machines will help us ship apps that scale to zero sometime this year. This sounds extremely awesome. (and cold start is only 300ms)

šŸ˜€ 1
Jacob O'Bryant00:12:27

wait actually I forgot about the application startup time for some reason I was thinking they'd be taking a snapshot of the running system and starting that up--I must've had the recent announcement about a similar thing in aws lambda in my head

Jacob O'Bryant00:12:27

wait actually I forgot about the application startup time for some reason I was thinking they'd be taking a snapshot of the running system and starting that up--I must've had the recent announcement about a similar thing in aws lambda in my head

Jacob O'Bryant02:12:47

Well I got a fly machine to actually work this time. pretty nifty. I think this'll work really nicely for platypub themes. You could publish themes just by pushing an image to docker hub. Doesn't even need to be babashka; just needs to provide an HTTP API for generating the site files. So in the platypub UI, the value of the theme setting would be something like platypub/default, jobryant/my-custom-theme, etc. Oh, and another cool thing is that you can have the image stay running once it's started, but shut down after some activity. So even if there is some cold start delay, you won't incur the delay every time you e.g. edit a blog post and want to see the preview again. For development, you could set the theme setting to a URL. Then platypub will just use that for the site generation API instead of running a docker image for you. So you can run your theme code locally, get a public URL with ngrok, and put that in platypub. Then deploy to docker once you have it the way you want. I'm actually kind of excited about this. This seems like it'll be super smooth once it's all set up.

macrobartfast20:12:21

This is awesome! Iā€™m particularly excited about this, both in terms of Platypub but also for Biff apps in general.

šŸŽ… 1
Jacob O'Bryant02:12:42

Could even make some docker images that work with existing static site generators. The image would just be an adapter in that case--take the data from platypub, spit it out into markdown files or however the site generator wants it, then return the generated files to platypub.

1
1