If email listener is taking 5 mins of time to create cases in prod how to fix this?

An email listener after deployment to prod is now taking min 5 mins to create a cases post receiving mails, how to make it work in such a way that it creates cases immediately ?

Please check whether the Email Listener is running successfully in Admin Studio. Also, verify if there is a high traffic of incoming emails?

Additionally, review the PegaRULES log (especially log-service-email or email listener-related logs) for any errors or delays during email retrieval and case creation.

Identify the step that’s taking more time, try to optimize the activity , if there are steps that are independent and can be handled separately move them to a QP

Check PDC to get some indications of slowness.

Also, please check the below items

  1. Keep email listener processing lightweight by minimizing synchronous logic and avoiding heavy automations or API calls during case creation.
  2. Identify performance bottlenecks in parsing, large attachments, service activity, or integrations and optimize them accordingly.
  3. Offload heavy processing to a Queue Processor so the listener completes quickly and improves overall throughput and scalability.