Long Polling in Gatling

Warning: Please bear with me and I am fairly new with Gatling. So, apologies in advance. :stuck_out_tongue: :slight_smile:

I was going through the Loadrunner Asynchronous Calls Function - wb_reg_async_attributes, and I found that there are four different Asynchronous Conversation Patterns, which are:

  1. Poll - The client polls the server periodically for information.

  2. Long Poll - The client polls the server and waits for a response. When the response arrives, another poll request is initiated.

  3. Push -The client sends a request. The server response is to send updates when there are changes to the requested information.

  4. Cross-user - One user performs an activity that is reflected in another user’s client. For example, user1 sends an email and user2 receives notification.

Now, I have a requirement where I need to test Long-Polling using Gatling. As far as I know, there are two ways in Gatling:

  1. Poll
  2. SSE

Please feel free to let me know in case I am wrong. By using Polling function of Gatling, I am getting a Gateway Timeout Error.

My theory is:

Gatling sends the request β†’ doesn’t get a response β†’ Comes back with Gateway Timeout error.

Is there a way I can emulate Long Polling in Gatling? Please help me out in resolving this challenge.