In a serverless application for concert seat selection, which architecture ensures that in case of duplicate seat sales, the first order is prioritized for seat allocation and payment processing, and if its payment fails, the second order is then processed?