Ecommerce Website Architecture Decisions
Separate catalogue browsing from authoritative pricing, inventory, payment confirmation, and fulfillment so cached pages and repeated events cannot create bad orders.
// Technical guide archive
More practical engineering notes, ordered by publication date.
Separate catalogue browsing from authoritative pricing, inventory, payment confirmation, and fulfillment so cached pages and repeated events cannot create bad orders.
Diagnose Manifest V3 worker failures by separating registration, event delivery, storage state, and idle termination; verify the cold path without open DevTools.
Find Manifest V3 remote executable code in packaged files and dependencies, separate data from logic, and remove CDN imports or downloaded code before submission.
Declare Chrome extension commands, distinguish _execute_action from custom handlers, diagnose unassigned shortcuts, and keep a clickable fallback.
Compare GraphQL and REST using real client data shapes, backend cost, authorization, caching, pagination, and the team's ability to operate each contract.
Choose responsive image sizes, reserve layout geometry, prioritize the actual hero, and verify Next.js image requests without damaging screenshots or accessibility.
Build Next.js forms with validated Server Actions, server-side authorization, structured field errors, pending UI, and an explicit policy for duplicate submissions.
Plan a small business website around service information, trustworthy enquiry handling, editorial ownership, recoverable accounts, and a proportionate hosting setup.
Load the built extension in Playwright’s bundled Chromium persistent context, test reopened popup settings, and separate page tests from toolbar permission checks.
Configure Manifest V3 extension CSP, distinguish defaults from the allowed minimum, package scripts locally, and diagnose blocked scripts and network requests.
Choose local, sync, session, or managed extension storage; validate stored records, handle quota failures, and avoid lost updates across contexts.
Design REST endpoints around resource ownership, HTTP semantics, validation, pagination, safe retries, and errors that clients can act on without leaking internals.