Bookstore.ai
Hybrid content + collaborative recommender over 10M+ normalised book records, served by FastAPI at 95% test coverage.
Context
A book commerce platform needed recommendations that worked both for well-known titles with rich interaction data and for the long tail with almost none.
Challenge
Catalogue data came from Amazon, Ingram and Goodreads with conflicting and duplicated metadata, and the service had to stay fast under production load.
My role
Led a team of 4 engineers. Designed the ingestion layer, the hybrid ranking approach and the service architecture.
Architecture
How the system fits together
Simplified for public sharing; client-specific details are omitted.
Approach
Key engineering decisions
- 01
Ingestion & entity resolution
An Alembic-managed schema and ETL pipeline normalise 10M+ records and automatically resolve 50% of duplicate and conflicting metadata.
- 02
Two signals, one ranker
Collaborative filtering over interactions in PostgreSQL is blended with content-based similarity from title embeddings in Qdrant, so cold-start titles still get recommended.
- 03
Production service
FastAPI services at 95% test coverage, load-tested to 50 RPS with k6 and deployed via Docker to private cloud with consistently low latency.