-
Notifications
You must be signed in to change notification settings - Fork 14
[EDU-6737]feat: added kv store reference #1825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,84 @@ | |||
--- | |||
title: How to manage KV Store with Edge Functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment acima
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
|
||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aqui vai alterar?
| xxx [How to xxxxx](xxxxxx/) | | ||
--- | ||
|
||
## Business rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aqui abaixo fica blank?
- Use lowercase letters, numbers, dashes, and underscores. | ||
|
||
--- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--- | ||
|
||
|
||
## Interacting with KV Store via Edge Functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- returns: string | object | ArrayBuffer | ReadableStream | ||
- delete(namespace, key) | ||
- returns: void | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previsualização | ||
</Tag> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
--- | ||
|
||
## Recursos de Implementação |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Regras de Negócio | |
## Regras de negócio |
|
||
## Regras de Negócio | ||
|
||
## Resiliência de Dados |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
--- | ||
|
||
## Interação com KV Store via Edge Functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- delete(namespace, key) | ||
- returns: void | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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