docs: add OCI buckets comparison (Frontend vs MFE)
This commit is contained in:
parent
378541bb95
commit
72cfe3edf1
1 changed files with 81 additions and 0 deletions
81
inventcloud/invista/nexus/BUCKETS-COMPARISON.md
Normal file
81
inventcloud/invista/nexus/BUCKETS-COMPARISON.md
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
# OCI Buckets - Frontend vs MFE
|
||||
|
||||
## Depara
|
||||
|
||||
| Bucket | Tipo | Acesso Publico | Qtd Arquivos | Uso |
|
||||
|--------|------|----------------|--------------|-----|
|
||||
| app-front-insign-teste | Frontend simples | ✅ ObjectReadWithoutList | 1 | Site estatico teste |
|
||||
| nexus-mfe-shell-development | MFE Angular | ❌ NoPublicAccess | ~100 | Shell MFE |
|
||||
| nexus-mfe-auth-development | MFE Angular | ❌ NoPublicAccess | ~0 | Auth MFE (logs apenas) |
|
||||
| nexus-mfe-user-development | MFE Angular | ❌ NoPublicAccess | ~100 | User MFE |
|
||||
| nexus-mfe-person-development | MFE Angular | ❌ NoPublicAccess | ~100 | Person MFE |
|
||||
|
||||
## Diferencas
|
||||
|
||||
### app-front-insign-teste
|
||||
|
||||
| Caracteristica | Valor |
|
||||
|----------------|-------|
|
||||
| Tipo | Frontend simples/estatico |
|
||||
| Acesso Publico | ✅ ObjectReadWithoutList |
|
||||
| URL Direta | https://objectstorage.sa-saopaulo-1.oraclecloud.com/n/grbb7qzeuoag/b/app-front-insign-teste/o/index.html |
|
||||
| Arquivos | 1 (index.html) |
|
||||
| Conteudo | HTML simples com mensagem de teste |
|
||||
| Deploy | Manual (upload direto) |
|
||||
|
||||
**Conteudo index.html:**
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Teste OCI Static Site</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>OCI Static Site</h1>
|
||||
<p>Se voce esta vendo isso, o bucket esta funcionando.</p>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
### nexus-mfe-shell-development
|
||||
|
||||
| Caracteristica | Valor |
|
||||
|----------------|-------|
|
||||
| Tipo | MFE Angular (Micro Frontend) |
|
||||
| Acesso Publico | ❌ NoPublicAccess |
|
||||
| URL Direta | Nao disponivel (privado) |
|
||||
| Arquivos | ~100 |
|
||||
| Conteudo | JS bundles, SVGs, PNGs (Angular compilado) |
|
||||
| Deploy | Pipeline CI/CD |
|
||||
|
||||
**Arquivos principais:**
|
||||
- AuthService-QVOC76RU.js
|
||||
- EnvironmentService-TW7JL7D6.js
|
||||
- _angular_*.js (modulos Angular)
|
||||
- *.svg, *.png (assets)
|
||||
- Logo*.png (logotipos)
|
||||
|
||||
## Como acessar
|
||||
|
||||
### Frontend simples (publico)
|
||||
```bash
|
||||
# Acesso direto via URL OCI
|
||||
curl https://objectstorage.sa-saopaulo-1.oraclecloud.com/n/grbb7qzeuoag/b/app-front-insign-teste/o/index.html
|
||||
```
|
||||
|
||||
### MFE Angular (privado)
|
||||
```bash
|
||||
# Necessario OCI CLI autenticado
|
||||
oci os object get --bucket-name "nexus-mfe-shell-development" --name "AuthService-QVOC76RU.js" --file ./output.js --region sa-saopaulo-1
|
||||
```
|
||||
|
||||
## Recomendacoes
|
||||
|
||||
1. **Frontend simples**: Usar para sites estaticos, landing pages, testes
|
||||
2. **MFE Angular**: Usar para micro frontends em arquitetura distribuida
|
||||
3. **Acesso publico**: Habilitar apenas quando necessario expor URL direta
|
||||
4. **MFE em producao**: Usar CDN/Cloudflare na frente do bucket privado
|
||||
|
||||
---
|
||||
|
||||
*Atualizado em: 2026-02-21*
|
||||
Loading…
Reference in a new issue