Handle slow indexing
Indexer-queue throws an exception when the response from indexer service is not 200 or 201. This causes a retry on the message. However, indexer can return 298 response when it has received an index request for IDs that no longer exist. These messages are also handled very slowly by indexer taking approx, 15 seconds to handle each time. This causes a backlog of messages to build up as successfully handled messages are retried multiple times. Therefore, indexer should not retry on any message with 299 or less response code.
Also, indexer-queue should not retry on messages with a 404 response code i.e. when a valid storage record is not found.
Edited by Larissa Pereira