pull down to refresh
1 sat \ 2 replies \ @theshanergy 10 Jan 2022 \ parent \ on: Daily discussion thread
Why not just cache the generated images but still generate them on demand?
btw, I am doing the exact same thing on bitcoininflationindex.com. I use netlify for my frontend and use their "On-demand builders" to generate images which are cached on the edge.
Works perfect for this use-case. You could spin up a netlify microservice specifically for this purpose and run it separate from the site.
Here is my code for reference: https://gist.github.com/theshanergy/42fd16010cc968b47f93df1a5413a6f1
reply
That’s an option I’m thinking about. I don’t use netlify but I could do something like this with AWS lambda.
reply