TechBaR LLC product · Backend and cloud

BooksRepricer

A multi-tenant repricing service for Amazon book sellers that keeps prices within profit-protection rules, verifies updates after sending them, and pauses a seller account's updates after repeated verification failures.

  • Python
  • FastAPI
  • PostgreSQL
  • Redis · RQ
  • React 19 · TypeScript
  • Stripe
  • AWS
  • Terraform
  • GitHub Actions

Live in a limited canary on AWS

repricing cycleprice limitsfloormaxproposedclampedrules ✓sentverified ✓account Arunningaccount Bpaused · repeated failuresrepricing cycleproposedmaxclampedrules ✓sentverified ✓account Arunningaccount Bpaused
Illustration, not a product screenshot. No real prices or seller data.

The problem

Automated repricing that goes wrong costs money fast: a price can fall below what a seller can afford, or an update can quietly fail to land. Sellers need repricing with guardrails, not just speed.

What I built

  • A multi-tenant FastAPI and PostgreSQL service with org-scoped access, plan limits and Stripe billing.
  • Redis/RQ background workers on a 15-minute schedule, plus queued jobs for offer changes and notifications.
  • Price updates through Amazon's Selling Partner API, guarded by safety rules and post-update verification.
  • A React 19 and TypeScript frontend.
  • AWS infrastructure defined in Terraform: ECS Fargate, an HTTPS load balancer, CloudFront, RDS PostgreSQL, ElastiCache Redis, SQS with a dead-letter queue, Secrets Manager and CloudWatch alarms.

How it works

  1. SchedulerQueue repricing work

    A scheduler tick every 15 minutes, plus queued jobs when offers change, hands work to background workers.

  2. WorkerPropose a price within the rules

    Profit-protection rules bound the proposed price before an update is sent.

    Outside the limits

    An out-of-range price may be clamped to the allowed limit rather than skipped.

  3. WorkerPass the live gate

    An explicit live gate sits in front of the update path.

  4. Amazon SP-APISend the price update

    The change goes to Amazon through the Selling Partner API.

  5. WorkerVerify the result

    After sending, the change is recorded as verified or mismatched.

    Repeated failures

    A circuit breaker opens for that seller account and pauses its updates until the breaker resets after its timeout.

One repricing cycle: a proposed change is held to the rules on the way out and verified on the way back.

Key engineering decisions

  • Safety rules come before the API call. Proposed prices are checked against profit-protection rules, and an out-of-range price may be clamped to the allowed limit rather than skipped.
  • A sent update is not a finished update. Post-update verification records changes as verified or mismatched, so the system records whether a change landed instead of assuming it did.
  • Pause on repeated failures. When verification fails repeatedly for a seller account, a circuit breaker pauses that account's updates and resets after its timeout.
  • Secure by default. JWT authentication with bcrypt, encrypted stored credentials, rate limiting on authentication, email verification and password reset.
  • Observable. Request IDs, structured logging, Sentry error reporting and CloudWatch alarms; Lambda and Step Functions start and stop the staging environment.

Results & verification

Automated checksCIin GitHub Actions
Runs the backend pytest suite, staging-control tests, frontend type-checks, Vitest and build, and a database migration smoke check.
MilestoneCanarylimited-live rollout
Running as a limited-live canary on AWS, with a separate staging environment.