← Back to selected work

02 / Book store

Multilingual
book store.

An e-commerce and inventory platform with bilingual content, safe checkout flows, payment webhooks, and production-minded stock handling.

0%load-test errors
1.76sp95 after tuning
10duplicate webhooks handled

Checkout that
stays calm.

The platform supports English and Vietnamese content, hierarchical categories, guest and user carts, and JWT-based cart merging after login. Checkout work is split into safe jobs so a slow external step does not take down the whole flow.

Redis Lua scripts provide atomic stock reservation, while BullMQ compensating transactions and SePay idempotency keys make retries safe. k6 testing at 200 VUs reduced errors from 27% to 0% and p95 latency from 7.05s to 1.76s.

01

Live product

Browse the public storefront and see the bilingual product experience, cart behavior and checkout surface.

Frontend demo ↗
02

Backend proof

NestJS API, Prisma schema, workers, tests and deployment files from the production branch.

Backend repository ↗
03

Performance evidence

Load tests, webhook idempotency checks, API contract and the before/after performance notes.

Test notes ↗
Next.jsNestJSTypeScriptMariaDBPrisma ORMRedisBullMQSePayDockerAWS EC2Cloudflare R2Jest