You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
We're experiencing significant delays when sending messages to large groups. Our tests show that a single message can take between 54-116 seconds to be sent to one group, which often results in timeout issues in production environments.
Test Results
We conducted three sequential tests sending a simple text message to the same group:
Test 1:
Duration: 116.544 seconds
Test 2:
Duration: 56.925 seconds
Test 3:
Duration: 54.496 seconds
Impact
These delays are causing timeout issues in production applications
The message queue gets blocked since it's sequential, preventing other messages from being sent
Poor user experience due to long waiting times
Expected Behavior
Message sending to groups should complete in a reasonable time frame (few seconds), similar to how it works in the official WhatsApp clients.
Relevant Code
We're using the standard SendMessage function:
Is this expected behavior for large groups?
Are there any recommended workarounds or best practices for handling large group messages?
Could this be optimized in the library level?
Additional Context
Using latest version of whatsmeow
These delays occur consistently with large groups
The delays seem to be related to the encryption process for multiple recipients, as the time increases with group size
The performance difference compared to Baileys suggests this might be optimizable
The text was updated successfully, but these errors were encountered:
Description
We're experiencing significant delays when sending messages to large groups. Our tests show that a single message can take between 54-116 seconds to be sent to one group, which often results in timeout issues in production environments.
Test Results
We conducted three sequential tests sending a simple text message to the same group:
Test 1:
Test 2:
Test 3:
Impact
Expected Behavior
Message sending to groups should complete in a reasonable time frame (few seconds), similar to how it works in the official WhatsApp clients.
Relevant Code
We're using the standard SendMessage function:
_, err := client.SendMessage(context.Background(), recipient, msg)
Questions
Is this expected behavior for large groups?
Are there any recommended workarounds or best practices for handling large group messages?
Could this be optimized in the library level?
Additional Context
Using latest version of whatsmeow
These delays occur consistently with large groups
The delays seem to be related to the encryption process for multiple recipients, as the time increases with group size
The performance difference compared to Baileys suggests this might be optimizable
The text was updated successfully, but these errors were encountered: