tessera-metrics / tessera

A dashboard front-end for graphite.
http://tessera-metrics.github.io/tessera/
Apache License 2.0
1.19k stars 81 forks source link

Asynchronous templating #519

Open aalpern opened 9 years ago

aalpern commented 9 years ago

Tessera currently uses handlebars for expanding templates in items such as the markdown item, and most importantly in queries. Internal to UA (to be released eventually) we integrate that with handlebars helper functions that call clusto to build graphite queries from role-based queries to clusto (to retrieve hostnames).

Because handlebars is synchronous, that means making synchronous HTTP calls, which is no fun (mitigated by in-browser caching, but still...).

Possible approaches to mitigate this:

aalpern commented 8 years ago

Oh, this is interesting - https://github.com/nknapp/promised-handlebars