Skip to content

Commit 443b3c4

Browse files
Adicionar documentação inicial ao README.md para descrever o projeto e suas funcionalidades
1 parent af0dab6 commit 443b3c4

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Certified Builder Notification
2+
3+
## Descrição
4+
5+
Este projeto é uma função AWS Lambda responsável por processar notificações de certificados gerados. Ele é acionado por mensagens em uma fila SQS, atualiza o status dos certificados e notifica um serviço externo sobre a conclusão.
6+
7+
## Tecnologias Utilizadas
8+
9+
- Python 3.13
10+
- AWS Lambda
11+
- AWS SQS
12+
- AWS DynamoDB
13+
- Boto3
14+
- Pydantic
15+
- HTTPX
16+
- Docker
17+
18+
## Estrutura do Evento
19+
20+
### Entrada (SQS)
21+
22+
A função Lambda é acionada por um evento SQS que contém um lote de notificações no corpo da mensagem.
23+
24+
**Exemplo de corpo da mensagem SQS:**
25+
26+
```json
27+
{
28+
"notifications": [
29+
{
30+
"order_id": 452,
31+
"product_id": 316,
32+
"product_name": "Evento de Teste",
33+
"email": "evento_teste@gmail.com",
34+
"certificate_key": "certificates/316/452/TestEvento_de_Teste_AD9-B58-BFA.png",
35+
"success": true
36+
}
37+
]
38+
}
39+
```
40+
41+
### Saída (Notificação Externa)
42+
43+
Após o processamento, o serviço envia uma notificação para um endpoint externo via POST.
44+
45+
**Exemplo de corpo da requisição POST:**
46+
47+
```json
48+
{
49+
"product_id": 316,
50+
"certificates_quantity": 1,
51+
"certificates": [
52+
{
53+
"id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
54+
"order_id": 452,
55+
"product_id": 316,
56+
"product_name": "Evento de Teste",
57+
"certificate_url": "https://example.com/certificate.png",
58+
"success": true
59+
}
60+
]
61+
}
62+
```

0 commit comments

Comments
 (0)