Jetcars

From a slow WordPress site to a serverless platform with AI chat, live analytics and a no-NAT cost design.

Category
Car Dealership Platform
Status
Live
My role
Solutions architect and lead developer
Timeline
March 2024 – April 2026
Company
Elite Nexus Solutions
WordPress → Serverlessa slow, failure-prone monolith replaced
6 stacksthe platform deployable from code, later reused for two more dealerships
175+automated tests (137 backend, 39 infrastructure)
Live KPIsvisitors and conversion tracked in real time
Screenshot of the Jetcars website
01

The problem

The WordPress site was slow, went down often and was expensive to maintain. The owner had no clear view of what visitors did.

02

Architecture decisions

  • No NAT gateway; S3 and Secrets Manager endpoints insteadA NAT gateway costs more per month than the rest of a small site. Lambda still reaches what it needs, and the decision is recorded in an architecture decision record.
  • Aurora Serverless v2 with encryption and deletion protectionThe database scales down when the site is quiet, and a stray command cannot delete it.
  • API Gateway caching, throttling at 100 requests a second and X-Ray tracingRepeat reads skip the database, abuse is capped and any slow request can be followed end to end.
  • cdk-nag checks on every deploy and Cognito on the admin APIInsecure infrastructure is flagged before release and only signed-in admins can change stock.
03

What I built

  • Rebuilt it as a serverless Python and AWS platform with a Next.js frontend, in six CDK stacks: auth, database, storage, API, migration and monitoring.
  • Added an AI chat assistant that qualifies leads and helps buyers find cars.
  • Built a Tremor analytics dashboard from CloudFront logs and CloudWatch metrics to track live visitors and conversion.
  • Set up 8 CloudWatch alarms and a dashboard, and traced requests with X-Ray and ServiceLens.
  • Made the frontend offline-ready with TanStack Query and Zustand, and validated data with Zod and Pydantic.

Technologies

Next.jsReactTypeScriptPythonFastAPIPydanticZodTanStack QueryZustandOpenAIAWS CDKLambdaAPI GatewayAurora PostgreSQLCognitoX-RayCloudWatch