architecture

How this site is built

This portfolio is a small production system, built and documented the way I build systems at work: boring where it can be, careful where it has to be. Here is how the pieces fit, the decisions behind them and what they cost.

The big picture

Visitors only ever touch static files on a CDN. The API exists for me: it powers the admin area, stores content and runs the publishing queue that cross-posts articles and rebuilds the site.

PublicPrivateVisitorsrecruiters, readersCloudflare Pagesstatic HTML + JSONStatic buildAngular prerenderAdminAngular SPAASP.NET Core API.NET 10 · DockerPostgreSQLcontent + outboxOutbox workerretries + backoffCross-postingdev.to · Medium · LinkedInDeploy hookstarts a rebuilddeployJWTjobsGET /api/*/export

Publishing without losing anything

When I click Publish, the API saves the article and its publishing jobs in one transaction (the transactional outbox pattern). If dev.to is down, the article is still saved and the job waits for its turn.

Article saved+ jobs, one transactionPendingwaiting for its turnCompletedexternal id storedFailed401, 422 or 6 attemptssuccesspermanent errortransient error: retry in 30 s, 1 min, 2 min … 30 min"Retry now" in the admin

Decisions and trade-offs

1Prerendered static pages for visitors

Context
Recruiters open the site once, on any device, and leave in seconds if it is slow. The API runs on a free tier that sleeps.
Decision
Every public page — including one per article and per project, in English and Portuguese — is prerendered by Angular at build time and served from a CDN.
Trade-off
New content goes live after a rebuild (about two minutes) instead of instantly.

2Transactional outbox for cross-posting

Context
Publishing calls dev.to, Medium, LinkedIn and a deploy hook. Any of them can be down or slow.
Decision
The article and its publishing jobs are written in the same database transaction. A background worker executes the jobs with exponential backoff.
Trade-off
Cross-posting is eventually consistent: the admin shows "pending" for a few seconds.

3Transient and permanent failures are different

Context
Retrying a 401 (bad API key) forever is noise; giving up on a 503 is data loss.
Decision
5xx, 429 and timeouts are retried from 30 s up to 30 min; 401/403/422 fail fast and wait for a manual retry.
Trade-off
Each integration has to classify its errors.

4No HTTP-level retries on POST

Context
A timeout after the remote side accepted a POST would create a duplicate post if retried blindly.
Decision
Polly retries are disabled for unsafe methods; the outbox owns retries and stores the external id after the first success.
Trade-off
Slightly slower recovery from a single network blip.

5Canonical URLs everywhere

Context
The same article lives on this site, dev.to, Medium and LinkedIn.
Decision
Every copy points back here with a canonical link, so search engines credit the original.
Trade-off
Medium only supports it through its import tool.

6One small deployable, not microservices

Context
One author, a handful of requests per day.
Decision
A single ASP.NET Core service with clear internal boundaries (articles, projects, syndication, jobs).
Trade-off
Scaling the worker out would need SELECT … FOR UPDATE SKIP LOCKED or a real queue.

Quality and security

  • Integration tests: run the real HTTP pipeline and database with fake dev.to/Medium clients and a controllable clock, so retries and backoff are tested without waiting.
  • CI on every push: build, tests, a check that EF Core migrations match the model, and a Docker image build.
  • Admin access: one account, PBKDF2-hashed password, short-lived JWT, login rate limiting (5 attempts per minute).
  • Encrypted secrets at rest: the LinkedIn token is encrypted with ASP.NET Data Protection; API keys live in the host environment, never in the repository.
  • Static public pages: no server to attack on the public side, and every page works without JavaScript.

The same tools I use at work

ConcernIn this projectIn production at work
BackendASP.NET Core minimal APIs on .NET 10.NET 8 services at TOTVS Techfin and Wake
ReliabilityTransactional outbox, backoff, idempotent updatesPayment flows with RabbitMQ; Kafka at Wake
DataEF Core migrations, indexed queriesSQL Server tuning at Wake and Dell
FrontendAngular with signals and static prerenderingAngular apps at Techfin and Wake
DeliveryGitHub Actions, Docker, migration checksGitLab CI/CD, Docker and Kubernetes

What it costs

PieceServicePer month
Public siteCloudflare Pages$0
API (Docker)Render free web service$0
DatabaseNeon (PostgreSQL)$0
CIGitHub Actions$0
DomainRegistrar at cost≈ $1

Want the long versions? Read the blog.