# apduartte/ciclo-4-babelfish-migration architecture

> Architecture diagram of the GitHub repository apduartte/ciclo-4-babelfish-migration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apduartte/ciclo-4-babelfish-migration
- Repository: https://github.com/apduartte/ciclo-4-babelfish-migration

## Overview

This repository is a documented SQL Server modernization POC: it evaluates compatibility and demonstrates a local SQL Server-to-PostgreSQL/Babelfish migration path, with a future AWS target. The graph preserves the documented assessment, migration, validation, rollback, infrastructure, security, and operations branches. Source excerpts were unavailable, so links reflect README statements only; unsampled implementation details and unverified calls are omitted.

Main entry points: [`docker-compose.yml`](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker-compose.yml) (Docker Lab), [`docker/sqlserver/docker-compose.yml`](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/sqlserver/docker-compose.yml) (SQL Server), [`docker/babelfish/docker-compose.yml`](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/babelfish/docker-compose.yml) (PostgreSQL Babelfish), [`sqlserver/backup/AdventureWorksLT2019.bak`](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/sqlserver/backup/AdventureWorksLT2019.bak) (AdventureWorks Backup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_databases["Database Environment"]
  node_local_env["Docker Lab<br/>[docker-compose.yml]"]
  node_sqlserver[("SQL Server<br/>[docker-compose.yml]")]
  node_source_backup["AdventureWorks Backup"]
  node_babelfish[("PostgreSQL Babelfish<br/>[docker-compose.yml]")]
end

subgraph group_migration["Modernization Workflow"]
  node_compass["Compatibility Assessment"]
  node_remediation["Remediation"]
  node_migration_plan["Migration Strategy"]
  node_dms["AWS DMS"]
  node_validation["Post-migration Validation"]
  node_rollback["Rollback Procedures"]
end

subgraph group_cloud["Cloud Platform"]
  node_terraform["Infrastructure as Code"]
  node_aws_target[("AWS Target")]
  node_security["Cloud Security"]
end

subgraph group_governance["Operations and Governance"]
  node_operations["Database Operations"]
  node_evidence["POC Evidence"]
  node_architecture_docs["Architecture Design"]
end

node_operator(("Engineer"))

node_operator -->|"runs locally"| node_local_env
node_local_env -->|"hosts source"| node_sqlserver
node_local_env -->|"hosts destination"| node_babelfish
node_source_backup -->|"restored into"| node_sqlserver
node_sqlserver -->|"modernization target"| node_babelfish
node_operator -->|"assesses compatibility"| node_compass
node_operator -->|"documents"| node_remediation
node_operator -->|"plans migration"| node_migration_plan
node_operator -.->|"plans data migration"| node_dms
node_operator -->|"validates outcome"| node_validation
node_operator -->|"prepares reversal"| node_rollback
node_terraform -->|"provisions infrastructure"| node_aws_target
node_operator -->|"defines controls"| node_security
node_operator -->|"documents procedures"| node_operations
node_operator -->|"records execution"| node_evidence
node_operator -->|"documents design"| node_architecture_docs

click node_local_env "https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker-compose.yml"
click node_sqlserver "https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/sqlserver/docker-compose.yml"
click node_source_backup "https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/sqlserver/backup/AdventureWorksLT2019.bak"
click node_babelfish "https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/babelfish/docker-compose.yml"
click node_compass "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/assessment"
click node_remediation "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence"
click node_migration_plan "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/migration-strategy"
click node_validation "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence/07-validation"
click node_rollback "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/rollback"
click node_terraform "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/terraform"
click node_security "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/security"
click node_operations "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/operations"
click node_evidence "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence"
click node_architecture_docs "https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/architecture"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_local_env,node_sqlserver,node_source_backup,node_babelfish toneBlue
class node_compass,node_remediation,node_migration_plan,node_dms,node_validation,node_rollback toneAmber
class node_terraform,node_aws_target,node_security toneMint
class node_operations,node_evidence,node_architecture_docs toneRose
class node_operator toneIndigo
```

## Components

### Database Environment

- [Docker Lab](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker-compose.yml): `docker-compose.yml`
- [SQL Server](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/sqlserver/docker-compose.yml): `docker/sqlserver/docker-compose.yml`
- [AdventureWorks Backup](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/sqlserver/backup/AdventureWorksLT2019.bak): `sqlserver/backup/AdventureWorksLT2019.bak`
- [PostgreSQL Babelfish](https://github.com/apduartte/ciclo-4-babelfish-migration/blob/main/docker/babelfish/docker-compose.yml): `docker/babelfish/docker-compose.yml`

### Modernization Workflow

- [Compatibility Assessment](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/assessment): `docs/assessment`
- [Remediation](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence): `docs/evidence`
- [Migration Strategy](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/migration-strategy): `docs/migration-strategy`
- **AWS DMS**
- [Post-migration Validation](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence/07-validation): `docs/evidence/07-validation`
- [Rollback Procedures](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/rollback): `docs/rollback`

### Cloud Platform

- [Infrastructure as Code](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/terraform): `terraform`
- **AWS Target**
- [Cloud Security](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/security): `docs/security`

### Operations and Governance

- [Database Operations](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/operations): `docs/operations`
- [POC Evidence](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/evidence): `docs/evidence`
- [Architecture Design](https://github.com/apduartte/ciclo-4-babelfish-migration/tree/main/docs/architecture): `docs/architecture`

### Other components

- **Engineer**

## Connections

- Engineer → Docker Lab: runs locally (evidence: `README.md`)
- Docker Lab → SQL Server: hosts source (evidence: `README.md`)
- Docker Lab → PostgreSQL Babelfish: hosts destination (evidence: `README.md`)
- AdventureWorks Backup → SQL Server: restored into (evidence: `README.md`)
- SQL Server → PostgreSQL Babelfish: modernization target (evidence: `README.md`)
- Engineer → Compatibility Assessment: assesses compatibility (evidence: `README.md`)
- Engineer → Remediation: documents (evidence: `README.md`)
- Engineer → Migration Strategy: plans migration (evidence: `README.md`)
- Engineer → AWS DMS: plans data migration (evidence: `README.md`)
- Engineer → Post-migration Validation: validates outcome (evidence: `README.md`)
- Engineer → Rollback Procedures: prepares reversal (evidence: `README.md`)
- Infrastructure as Code → AWS Target: provisions infrastructure (evidence: `README.md`)
- Engineer → Cloud Security: defines controls (evidence: `README.md`)
- Engineer → Database Operations: documents procedures (evidence: `README.md`)
- Engineer → POC Evidence: records execution (evidence: `README.md`)
- Engineer → Architecture Design: documents design (evidence: `README.md`)
