Design object-oriented classes for documents and tags in a multi-threaded environment. Ensure thread-safe operations for:
Assume a many-to-many relationship between documents and tags and an in-memory implementation (you may also mention how this maps to a database if helpful).
Design a scalable online bookstore that supports:
Cover high-level architecture, data storage choices, critical APIs, consistency considerations (especially inventory), and mechanisms for scaling and fault tolerance.
Login required