mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
130 stars 4 forks source link

Queued assets generation #33

Closed aalin closed 1 year ago

aalin commented 1 year ago

It would be great if assets were generated asynchronously in some sort of queue.

It would be good to use Async::Semaphore to limit the number of concurrent generators...

Right now, in development mode, it seems like the same image versions are being generated at the same time. So it would be good if they could be queued (and maybe even prioritized), and that the server can wait for them to be generated before responding, i.e. they would be generated on-the-fly when requested...