How would you design a system under strict cost and latency constraints for a high-scale Amazon Advertising workload?