All projects

Web applicationsCase study

Implement AI

The production backend for an AI platform: async FastAPI, background jobs and Stripe billing, shipped with Docker and GitHub Actions.

Role
Software Engineer, Techanzy
Stack
FastAPI · PostgreSQL · Celery
ClientNext.jsFastAPIasync SQLAlchemyJWT · RBACPostgreSQLAlembic migrationsRabbitMQjob queueCeleryworkersRedisresultsStripebilling webhooksShipped viaDocker · GitHub Actions

Hover or tap a box to see what it does, or press play.

The problem

Implement AI needed a backend that could serve organisations, teams and billing reliably, while keeping slow work out of the request cycle.

What I built

  • Async FastAPI on async SQLAlchemy and PostgreSQL, with every schema change as an Alembic migration
  • JWT auth and role-based access checked on every route
  • REST APIs across organisations, Stripe billing webhooks, documents, CRM/teams and scheduling
  • Background jobs on Celery with RabbitMQ and Redis, so slow work never blocks a response
  • Docker images deployed through GitHub Actions

How it works

  1. A request leaves the Next.js client, carrying a JWT.
  2. FastAPI checks the token and the caller's role before doing anything.
  3. Reads and writes go to PostgreSQL.
  4. Work that shouldn't block the response is queued on RabbitMQ.
  5. A Celery worker picks the job up in the background…
  6. …and stores its result in Redis.
  7. Billing runs through Stripe, reported back by its webhooks.
  8. All of it ships as Docker images through GitHub Actions.

Results

  • Serves 500+ API requests a day
  • 15+ REST endpoints across the product's areas