ESI vs Ajax client side assemblyPosted by Max Robbins on February 27th, 2015
We get the request periodically to support (ESI) Edge Side Includes. We took a deep dive with ESI and decided against supporting it. I thought a bit of elaboration might help folks looking at options for scaling sites that need user personalization.
ESI allows you to slot in content at the Edge device, by including tags in the html code, that the edge server interprets, requests, and “includes” in the content. You can take a web page that is mostly common content and cache all the common components. Then at the point users make the request you can have unique or user specific data assembled at the edge and delivered to the browser.
At first glance it seems like a clever solution. We think it makes no sense for two reasons. First your simply moving the problem of page assembly from the origin environment to the edge. Any edge device is going to have finite processing power and the overhead of assembling pages kills performance. The whole point of edge devices is to be lightning fast. The second is that its a generally proprietary technology whose origin is in the architecture of a single network.
A fair bit of what ESI offers, is in the ESI language because customers of a large un-named CDN “with litigious tendencies” cannot configure the edge proxies any other way than “in-band”. While this is perfectly sensible for a specific business model, it is of little relevance in a aiScaler context, where the content-provider is in control of the servers.
The industry has a better smarter solution and that is replacing ESI – with Ajax; client side page assembly. We feel ESI has a short shelf life and at present is a strategic dead end.
“With Dynamic Caching you can provide all ESI functionality, using Ajax and client side page assembly. The key benefit is that using Ajax calls to assemble content at the browser moves the page assembly to the client.”
We continue to watch the specification as it evolves but have not committed to the coding until we see the more open market accepted solution, such as Ajax; client side assimilation, which we do support.
With Dynamic Caching you can provide all ESI functionality, using Ajax; client side page assembly. The key benefit is that using Ajax calls to assemble content at the browser moves the page assembly to the client. Clients have two huge advantages. First, dedicated bandwidth. There is no contention at the client with a million other requests as you have at an edge server. The second is that the processing power is local. There are a few exceptions with devices that do not support Ajax in the mobile world. We address these specifically in the mobile aiScaler product.
Developers who build their applications with Ajax based client side assembly get the best of both worlds. They get the capability for nearly unlimited scale using dynamic caching technology and they get client specific customization that does not inhibit performance.
As browser technology gets better we believe the future of web technology will be smarter and smarter clients capable of dynamic communication with the server side and edge environments.
We are focusing aiScaler to support developers in deploying this technology quickly and easily to provide fast, stable, rich web applications customized to the user.