This summer Varnish Software decided to do something very ambitious. We decided to make the web a faster place. Now that statement may leave you scratching your head. Doesn't Varnish Cache already exist and hasn't it already made the web a lot faster?
Straight From The Lab: Introducing Edgestash
Edgestash can take that process down to tens of milliseconds, which in some cases is a 100x speed-up.
A Framework Built For Performance
How is it possible to see such a large performance gain with Edgestash?
Second, because the templates and associated JSON data are fetched from a backend and stored into cache, Edgestash can exploit this and compile both into a highly optimized byte code and store that into cache as well. So when it comes time to do the actual page assembly and delivery, it simply executes the byte code. The resulting assembly time is targeted to be under a single millisecond (compile times are also targeted to be sub-millisecond). Every time that same template is used or that same JSON is searched, Edgestash reaps the benefits of that compilation step.
Finally, all of this technology is built on the extremely high-performance core of Varnish Cache. Edgestash plays very well with VCL and any kind of custom logic required for a given website. Also, given Varnish Cache's strategic position at the edge of your data center or network, latencies will always be at a minimum. Not only does this give you the fastest possible page response and load times, fetching all those bits and pieces to assemble the page will be done on high-speed internet backbones. You also get the added bonus of not having you expose API data services directly to the browser. Edgestash can even be used to compose an API from other APIs.
Given the following Edgestash template (a simple Mustache example):