EdgeKV helps you build data-driven EdgeWorkers applications that require fast, frequent reads and infrequent writes. You can access EdgeKV data from inside an EdgeWorkers function, and administer the database using the management API or CLI.
EdgeKV, Akamai’s distributed key-value store for EdgeWorkers offers these benefits:
- Key-Value database: EdgeKV stores data in string or JSON format.
- Replicated storage: Ensures high availability of stored data by replicating it across multiple geographic locations based on the configured geoLocation of each namespace.
- Administrative API: Enables control of EdgeKV database functions outside EdgeWorkers code.
- Tokenized access: Enforces access controls to EdgeKV databases.
The diagram below illustrates the interaction between EdgeWorkers and EdgeKV. You can invoke EdgeWorkers code and utilize EdgeKV data with any of the four events in the request or response cycle.
Beta support for Standard TLS
EdgeKV support for Standard TLS in now available in Beta. To get started, you need to select Standard TLS as the delivery method for EdgeWorkers. You can then configure the data access policy in EdgeKV to also support Standard TLS.
Contact your Akamai representative for more information and instructions on how to join the Beta program.
You can access EdgeKV directly from an EdgeWorkers function. With a few lines of code, you can read from or write to an EdgeKV database using the
onOriginResponse event handler.
To get started with EdgeKV, you need entitlements for both EdgeWorkers and EdgeKV on contract. To make sure that both products are present, go to Akamai Control Center and from the the services menu and find Account Admin > Contracts. In the list of products search for EdgeKV and EdgeWorkers.
Once you've confirmed that you have the necessary contract requirements review these prerequisites that will help you design and create an EdgeKV database.
Namespace permissions. To create an EdgeKV database you need an EdgeKV-specific access token. This token authorizes an EdgeWorker ID to access data within a given namespace and ensures that only authorized IDs gain access to the data with the proper controls.
Data model and limits. Review the data model design to better understand the EdgeKV storage framework. You might also find it helpful to review the Hello world example that illustrates the data storage concepts.
Before you start designing your EdgeKV data model refer to the Product limits.
Updated about 1 month ago