Système

Architecture

La version 1 de ce portfolio est un site statique (SSG) sur CloudFront/S3, avec une petite API serverless pour le contact et l’admin — scale-to-zero par défaut.

Navigateur → CDN pour les pages ; API Gateway → Lambda pour les leads contact.

Stack

La génération statique rend les pages peu coûteuses ; seul le contact/admin a besoin de compute.

CoucheTechnologiePourquoi
CDN / hébergementCloudFront · S3Cache global, TLS, faible coût à faible trafic
WebNext.js SSG · next-intlSSG + i18n ; pas de serveur Node 24/7
ContenuMarkdown in-repo (build-time)Markdown compilé au build CI
HTTP APIAPI Gateway HTTP APIFront door managé, throttling, JWT
Contact / adminLambda · Node/TypeScriptLeads, mail SES, disponibilité, JWT admin
DonnéesDynamoDB (on-demand)Table on-demand pour les leads — paiement à la requête
E-mailAmazon SESNotifications transactionnelles au propriétaire du site

Correspondance V0 → V1

Même contenu produit ; forme runtime moins chère. L’infra vit dans le dépôt ega-v1-infra-tf.

V0 (Compose / EC2)V1 (serverless)
EC2 + Traefik + Compose (V0)CloudFront + S3 (this site)
content-service (Go)Markdown at build (no runtime content API)
api-gateway + contact-serviceAPI Gateway + Lambda
Postgres + RedisDynamoDB + API GW throttling
MailpitSES