This is because we process RANCOR messages asynchronously. AlvoService polls SQS queue that is subscribed to Rancor's SNS topic and hence the delay
Let us make a synchronous call to RANCOR to get customer’s zip code. We can determine the zip code’s population centroid and let’s give the customer a list of all pickup stores within 15 miles road distance from that centroid. And let’s give the customers a list of these pickup stores around them and let them choose.
Sure but SPS is not a Tier-1 service. So we shall precompute stores from each zip code and store that data in a database.