Once a week, at night, the store exports who bought, put in a cart or wished for what; Amazon Personalize trains on it and computes recommendations for every product and every customer in one batch, then switches off. The store loads them into its own tables: "You may also like" on the product page and "Picked for you" on the home page, the cart and My Account. Nothing runs on AWS between runs: about $2 a run for a small store, about $20 for 25,000 products and customers, where a real-time campaign costs $144 or more a month. Product pages never wait for AWS and stay in the page cache; no tracking script, no cookies.
The README's cost table: what one weekly run costs by store size.
What it does
Batch mode on your own AWS account, nothing billed between runs
Similar products, picks for every signed-in customer
Settings that lower the bill: active customers only, a cap, fewer recommendations