Solr and Search on an E-commerce Site
summary
A Solr catalog serves all read traffic while MySQL keeps transactional cart data; Solr documents are split into main, inventory and popularity parts and updates are pushed asynchronously. Indexing uses MySQL triggers as a message queue and a Symfony indexer bundle with Solarium to send batched HTTP updates; queries average ~50 ms but SKU deduplication via grouping increases latency 10–20×, so autocommit (~15 s) and careful cache/replica tuning are used to maintain throughput.
AI-written summary · about
