4 ms·
I always love when people realize the power and simplicity that can come with static serving of mostly unchanging datasets. It can vastly speed up development i
by dpeck 5y ago
I always love when people realize the power and simplicity that can come with static serving of mostly unchanging datasets. It can vastly speed up development in many cases.
If you need a simple version of this, Hugo is a great and well proven option. Push onto your CDN of choice and you’ve got a blazing fast static json api.
https://gohugo.io/templates/data-templates/ https://gohugo.io/templates/data-templates/
- distantsounds 5y agoIf you have a large dataset, Hugo will choke your clients in memory. https://github.com/gohugoio/hugo/issues/1065 https://github.com/gohugoio/hugo/issues/1065 I fail to see how this method is not "simple enough"
- dpeck 5y agoFine to use whatever tool that works for you. Using the words “clients” here with reference to Hugo is confusing though, as clients would never be effected by it. The way I read that bug, it would be Hugo itself that is effected and crashes at generation time.