Resource allocation via competing marketplaces