Fetching messages from Google's IMAP server has suddenly become slow

Hello everyone, I have a job that runs at a regular interval (every ~15s) to fetch messages from an inbox that my service account has access to. I connect to imap.gmail.com and issue IMAP FETCH commands to fetch at most 50 messages per job run. What used to be a job that basically never failed has now started to show significant, sporadic latency spikes (20+ seconds for one FETCH), which causes the job to time out. Has anything changed recently in gmail's IMAP server that may have caused the sudden perf degradaton? 

1 1 340
1 REPLY 1
Top Labels in this Space
Top Solution Authors