Architectural Best Practices for Payments and Inventory Management in Distributed Systems