PAIn ecommerce inventory management , dont you think it is better to use pessimistic locking , because users will anyhow comes to know that a particular item is not available so why not telling him/her early rather than late with optimistic lockingComment·Article·Jul 31, 2025·Comparison of Optimistic Locking and Pessimistic Locking