Overview
Understanding rules
A rule is the fundamental unit of logic used to determine how end-user requests are handled for your application. By using rules to filter requests and trigger specific behaviors, you gain precise control over how your content is served, cached, and secured at the edge.
A rule configuration lives at the environment-level. This configuration establishes your content delivery methodology and dictates exactly how that specific environment serves your content to end users.
How rules work
Operating on a IF/THEN structure, a rule defines the specific conditions (match criteria) that the request needs to meet and the subsequent actions (behaviors) the edge should execute. An individual rule can have multiple matches and behaviors, as well as nested rules.
Rules consist of:
-
Match criteria (the "IF"): Optional filters that identify specific requests based on criteria like URL path, file type, geographic location, or request headers. A rule executes its behaviors only when a request satisfies these defined match criteria.
If you leave a rule without matches, the system treats it as unconditional. In this case, the edge applies the rule's behaviors to every incoming request.
- Behaviors (the "THEN"): These are the instructions that process the request. Common behaviors include setting cache TTLs, modifying security headers, redirecting traffic, or defining origin connectivity.
Understanding rule sets
Rule sets are modular containers that group logic based on specific use cases, team responsibilities, or security requirements. With different types of rule sets, you can build a flexible and scalable delivery configuration tailored to your organization's needs.
Rule set types
Depending on the scope of your work, you will interact with various rule set types:
- Default rule set (environment-level). Default set of rules that contains the pre-populated group of settings based on the specific Akamai product. It is executed first by Akamai edge servers and applies globally to all incoming requests.
- Custom rule set (environment-level). User-created sets of rules specific to an environment. They provide the granular control needed for unique application requirements. Custom rule sets can be used to create shared rule sets.
- *Shared rule set (contract-level). User-created sets of rules that are made accessible to all environments and workspaces within a contract. These are good for reusable policies and standardized business practices.
- *Admin rule set (account-level). High-level rules enforced across every environment in an account by administrators. These ensure global delivery standards are met without manual auditing of individual configurations.
-
*Platform rule set (platform-level). A library of curated rules provided by Akamai. These incorporate industry standards and common use cases with customizable default values.
*Not available during Delivery Manager Beta
Rule set versions
To ensure stability, Delivery Manager versions most of its components. When you activate an environment version, its rules and settings become read-only.
When you create a new draft of an environment, for example moving from v1 to v2, the existing rules remain pinned to their previous version (v1) by default. The moment you edit a match or behavior within a rule, that rule and its rule set instantly transition into a new draft state (v2). Unedited rules remain at their stable version until you modify them or activate the new environment version.
Updated 3 months ago
