echo&auradeveloper docs

Infrastructure

The system at a glance

Every service this system uses, grouped by who runs it, and how they connect.

The overview follows one request through the application. This page steps back to everything around it: the people who use it, Cloudflare in front, the one server that runs the app, and the services that build, watch and keep a copy of it.

People

Browsers and phones
  • BuyersBrowse, register, pay by bKash, get tickets
  • The organizerVerifies payments in the admin area
  • Door staffScan tickets with a gate pass

Cloudflare

In front of everything
  • DNS and proxyTLS, firewall rules, rate limits, caching
  • AccessAn email check before the admin area
  • TurnstileThe bot check on public forms
  • EmailSends order emails; forwards replies
  • R2Event covers, logos and nightly backups
  • Gate relayPasses check-ins between door phones
  • PagesThese docs

One server

Dokploy runs the containers
  • TraefikRoutes requests to the app
  • webThe Next.js app: site, admin, door
  • workerEmails, PDFs, hold expiry
  • Postgres 17Orders, stock, tickets, audit
  • Redis 7BullMQ queues, rate limits

Around it

Build, watch, keep a copy
  • GitHub ActionsTests, builds and ships the images
  • Container registryThe tested images the server pulls
  • SentryErrors from browser, web and worker
  • Better StackChecks the site is up
  • Amazon S3An off-site copy of the backups
How they connect
  1. Every request reaches the server through Cloudflare. The admin area also passes Access first.
  2. web and worker share Postgres and Redis; the worker takes jobs from the queues web fills.
  3. The worker sends email through Cloudflare, after each commit, never inside a request.
  4. Door phones talk to web for every check-in, and to the relay to hear other gates.
  5. Each night the database is backed up to R2, with an off-site copy in Amazon S3.
  6. GitHub Actions builds and tests the images; the server only pulls them.

Each service is shown only where it takes part. Amazon S3, for example, holds a copy of the backups and nothing else; the application does not run on AWS. The Cloudflare and AWS settings are kept as Terraform code and the server's setup as Ansible, so the map can be checked against code, not memory.

Source revision: 4da5b5f · View this page's source

On this page