Conversation
| @@ -0,0 +1,84 @@ | |||
| --- | |||
| title: How to manage KV Store with Edge Functions | |||
There was a problem hiding this comment.
| title: How to manage KV Store with Edge Functions | |
| title: How to manage KV Store with Functions |
|
|
||
| import LinkButton from 'azion-webkit/linkbutton' | ||
|
|
||
| See how to retrieve data from a with KV Store and Edge Functions. |
There was a problem hiding this comment.
| See how to retrieve data from a with KV Store and Edge Functions. | |
| See how to retrieve data from a with KV Store and Functions. |
|
|
||
| ## Requirements | ||
|
|
||
| - [Azion Edge Functions enabled](/en/documentation/products/build/edge-application/edge-functions/). |
There was a problem hiding this comment.
| - [Azion Edge Functions enabled](/en/documentation/products/build/edge-application/edge-functions/). | |
| - [Azion Functions enabled](/en/documentation/products/build/edge-application/edge-functions/). |
| : | ||
| --- | ||
|
|
||
| ## Creating an edge function to communicate with KV Store |
There was a problem hiding this comment.
| ## Creating an edge function to communicate with KV Store | |
| ## Creating a function to communicate with KV Store |
| ## Creating an edge function to communicate with KV Store | ||
|
|
||
| 1. Access [Azion Console](https://console.azion.com). | ||
| 2. On the upper-left corner, select **Edge Functions** in the **Edge Libraries** section. |
There was a problem hiding this comment.
Já trocou Edge Functions no console pra mudar aqui?
|
|
||
| 1. Access [Azion Console](https://console.azion.com). | ||
| 2. On the upper-left corner, select **Edge Functions** in the **Edge Libraries** section. | ||
| 3. Click the **+ Edge Function** button. |
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
|
|
||
|
|
||
|
|
||
| <LinkButton link="/en/documentation/products/guides/build/instantiate-edge-functions/" label="go to How to instantiate edge functions in your application" severity="secondary" /> |
There was a problem hiding this comment.
| <LinkButton link="/en/documentation/products/guides/build/instantiate-edge-functions/" label="go to How to instantiate edge functions in your application" severity="secondary" /> | |
| <LinkButton link="/en/documentation/products/guides/build/instantiate-edge-functions/" label="go to How to instantiate Functions in your application" severity="secondary" /> |
| <Tag severity="info" client:only="vue"> | ||
| Preview | ||
| </Tag> | ||
|
|
There was a problem hiding this comment.
|
|
||
| | Scope | Resource | | ||
| | ----- | -------- | | ||
| | Manage KV store with Edge Functions | [How to manage KV store with Edge Functions](/en/documentation/products/guides/kv-store/manage-with-functions/) | |
There was a problem hiding this comment.
| | Manage KV store with Edge Functions | [How to manage KV store with Edge Functions](/en/documentation/products/guides/kv-store/manage-with-functions/) | | |
| | Manage KV store with Functions | [How to manage KV store with Functions](/en/documentation/products/guides/kv-store/manage-with-functions/) | |
| | Scope | Resource | | ||
| | ----- | -------- | | ||
| | Manage KV store with Edge Functions | [How to manage KV store with Edge Functions](/en/documentation/products/guides/kv-store/manage-with-functions/) | | ||
| | xxx [How to xxxxx](xxxxxx/) | |
There was a problem hiding this comment.
Aqui vai alterar?
| | xxx [How to xxxxx](xxxxxx/) | | ||
| --- | ||
|
|
||
| ## Business rules |
There was a problem hiding this comment.
Aqui abaixo fica blank?
| - Use lowercase letters, numbers, dashes, and underscores. | ||
|
|
||
| --- | ||
|
|
There was a problem hiding this comment.
| --- | ||
|
|
||
|
|
||
| ## Interacting with KV Store via Edge Functions |
There was a problem hiding this comment.
| ## Interacting with KV Store via Edge Functions | |
| ## Interacting with KV Store via Functions |
|
|
||
| (Create, Read, Update, Delete) | ||
| The examples below illustrate common patterns. | ||
|
|
There was a problem hiding this comment.
| - returns: string | object | ArrayBuffer | ReadableStream | ||
| - delete(namespace, key) | ||
| - returns: void | ||
|
|
There was a problem hiding this comment.
| - Key size: up to 512 bytes (UTF‑8). | ||
| - Metadata size: up to 1024 bytes (JSON-serialized). | ||
| - Value size: up to 25 MB per item. | ||
|
|
There was a problem hiding this comment.
| | Namespaces | 10 | 50 | 200 | 200 | | ||
| | Maximum file size | 200 MB | 500 MB | 2 GB | 2 GB | | ||
| | Maximum storage per account | 5 GB | 50 GB | 300 GB | 300 GB | | ||
|
|
There was a problem hiding this comment.
| Previsualização | ||
| </Tag> | ||
|
|
||
|
|
There was a problem hiding this comment.
|
|
||
| --- | ||
|
|
||
| ## Recursos de Implementação |
There was a problem hiding this comment.
| ## Recursos de Implementação | |
| ## Recursos de implementação |
|
|
||
| | Âmbito | Recurso | | ||
| | ----- | -------- | | ||
| | Gerenciar KV store com Edge Functions | [Como gerenciar KV store com Edge Functions](/pt-br/documentacao/produtos/guias/kv-store/gerenciar-com-funcoes/) | |
There was a problem hiding this comment.
O link vai usar "funcoes" ou functions?
| | Gerenciar KV store com Edge Functions | [Como gerenciar KV store com Edge Functions](/pt-br/documentacao/produtos/guias/kv-store/gerenciar-com-funcoes/) | | |
| | Gerenciar KV store com Functions | [Como gerenciar KV store com Functions](/pt-br/documentacao/produtos/guias/kv-store/gerenciar-com-funcoes/) | |
| | xxx [Como xxxxx](xxxxxx/) | | ||
| --- | ||
|
|
||
| ## Regras de Negócio |
There was a problem hiding this comment.
| ## Regras de Negócio | |
| ## Regras de negócio |
|
|
||
| ## Regras de Negócio | ||
|
|
||
| ## Resiliência de Dados |
There was a problem hiding this comment.
| ## Resiliência de Dados | |
| ## Resiliência de dados |
|
|
||
| ## Resiliência de Dados | ||
|
|
||
| KV Store usa uma arquitetura distribuída com replicação entre pronomes de borda da Azion. Novas gravações são aceitas na borda e propagadas para réplicas para garantir durabilidade e alta disponibilidade. Leituras são servidas da réplica saudável mais próxima para minimizar a latência. |
There was a problem hiding this comment.
A tradução não tava ok com a versão EN
| KV Store usa uma arquitetura distribuída com replicação entre pronomes de borda da Azion. Novas gravações são aceitas na borda e propagadas para réplicas para garantir durabilidade e alta disponibilidade. Leituras são servidas da réplica saudável mais próxima para minimizar a latência. | |
| KV Store usa uma arquitetura distribuída com replicação entre os edge nodes da Azion. Novas gravações são aceitas no edge e propagadas para réplicas para garantir durabilidade e alta disponibilidade. Leituras são servidas da réplica saudável mais próxima para minimizar a latência. |
| ## Resiliência de Dados | ||
|
|
||
| KV Store usa uma arquitetura distribuída com replicação entre pronomes de borda da Azion. Novas gravações são aceitas na borda e propagadas para réplicas para garantir durabilidade e alta disponibilidade. Leituras são servidas da réplica saudável mais próxima para minimizar a latência. | ||
|
|
There was a problem hiding this comment.
|
|
||
| --- | ||
|
|
||
| ## Interação com KV Store via Edge Functions |
There was a problem hiding this comment.
| ## Interação com KV Store via Edge Functions | |
| ## Interação com KV Store via Functions |
| - returns: string | object | ArrayBuffer | ReadableStream | ||
| - delete(namespace, key) | ||
| - returns: void | ||
|
|
There was a problem hiding this comment.
| - delete(namespace, key) | ||
| - returns: void | ||
|
|
||
|
|
There was a problem hiding this comment.
| - Tamanho da chave: até 512 bytes (UTF-8). | ||
| - Tamanho dos metadados: até 1024 bytes (JSON-serializado). | ||
| - Tamanho do valor: até 25 MB por item. | ||
|
|
There was a problem hiding this comment.
|
|
||
| Estes são os **limites padrão** para cada Plano de Serviço: | ||
|
|
||
| | Âmbito | Desenvolvedor | Negócios | Empresarial | Missão Crítica | |
There was a problem hiding this comment.
Os planos foram traduzidos...e normalmente se usa "âmbito" nesse contexto?
| | Âmbito | Desenvolvedor | Negócios | Empresarial | Missão Crítica | | |
| | Âmbito | Developer | Business | Enterprise | Mission Critical | | |
| -- | -- | |
| <br class="Apple-interchange-newline"> | |
Related issue:
Changes
Additional links