ArticleslgStudy

science

Edge Side Includes

Edge Side Includes is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Edge Side Includes rather than just read about it. In short: Edge Side Includes (ESI) is a small markup language for edge level dynamic web content assembly. The purpose of ESI is to tackle the problem of web infrastructure scaling.

Key takeaways

  • Edge Side Includes belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Edge Side Includes to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Edge Side Includes from memory before moving on to harder problems.

Reference excerpt

Edge Side Includes (ESI) is a small markup language for edge level dynamic web content assembly. The purpose of ESI is to tackle the problem of web infrastructure scaling. It is an application of edge computing. It is fairly common for websites to have generated content. It could be because of changing content like catalogs or forums, or because of personalization. This creates a problem for caching systems. To overcome this problem a group of companies (Akamai, Art Technology Group, BEA Systems, Circadence Corporation, Digital Island, Inc., Interwoven, Inc., Open Market, whose ESI-related technology is now owned by FatWire Software, Oracle Corporation and Vignette Corporation) developed the ESI specification and submitted it to the W3C for approval. The proposal editor was Mark Nottingham. ESI Language Specification 1.0 was submitted to the World Wide Web Consortium (W3C) for approval in August 2001. The W3C has acknowledged receipt, but has not accepted the proposal. ESI is implemented by some content delivery networks, such as Akamai, and by some caching proxy servers such as Varnish, Squid and Mongrel ESI, although many do not implement the complete specification. Akamai also adds additional features to the version they support.

Syntax ESI element tags are inserted into HTML or other text based content during creation. Instead of being displayed to viewers, these ESI tags are directives that instruct an ESI processor to take some action. The XML based ESI tags indicate to the edge-side processing agent the action that needs to be taken to complete the page's assembly. One simple example of an ESI element is the include tag which is used to include content external to the page. An ESI include tag placed in-line within an HTML document would look like:

In this case the ESI processor would retrieve the src URL, or failing that the alt URL, or if that failed do nothing. The ESI system is usually a caching proxy server so it may have a local copy of these files which it can insert without going back to the server. Alternatively the whole page with the ESI tags may be cached, and only the ESI requests may be made to the origin server. This allows different caching times for different parts of the page, or different degrees of personalisation.

Features There are four main features in ESI:

inclusion of page fragments, as illustrated above; variables which can be set from cookies or HTTP headers and then used in other ESI statements or written into markup; conditions so that different markup can be used based on variables, for example if a cookie is set or not; error handling, so that a failover can be used if an origin server is unavailable.

Alternatives The main alternatives to ESI are:

to do assembly on the origin server using Server Side Includes and many types of server-side scripting. to use client-side scripting and techniques collectively known as Ajax (see: Dynamic web page) in the browser to establish a protocol between origin and edge such that recurring content will be included on the edge automatically, as with Cloudflare's Railgun protocol to do assembly in the browser using web components.

References

External links Akamai's ESI developer resources W3C Note "ESI Language Specification 1.0"

Worked examples

Example 1 — a first encounter with Edge Side Includes

Start with the simplest possible case. Write down what Edge Side Includes claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Edge Side Includes before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Edge Side Includes ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Edge Side Includes

In research
Edge Side Includes appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Edge Side Includes in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Edge Side Includes is common in secondary-school and first-year university syllabi. It links to neighbouring topics Proxy servers, Scripting languages, so understanding it makes those chapters shorter.
In everyday life
Look for Edge Side Includes outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Edge Side Includes” →

How to study Edge Side Includes in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Edge Side Includes means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Edge Side Includes out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Edge Side Includes in simple terms?

Edge Side Includes (ESI) is a small markup language for edge level dynamic web content assembly. The purpose of ESI is to tackle the problem of web infrastructure scaling.

Why does Edge Side Includes matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Edge Side Includes?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Edge Side Includes.

Tags

  • Proxy servers
  • Scripting languages

Keep exploring