Elasticsearch can store data durably. To decide whether it should be the primary database, ask which business rules must remain true when writes fail or run concurrently.
For an order system, finding products and confirming a purchase are different jobs. Search relevance matters for the first; correct payment and inventory changes matter for the second.
1. Start with the changes that must succeed together
Suppose a purchase needs an order record and a stock reduction. The business must define what should happen if only one succeeds.
