Skip to content

Performance issues under load testing (using teams_sso sample) #133

@maaisde

Description

@maaisde

Hello,

I am currently migrating our existing solution from the Microsoft Bot Framework to the new Agent 365 SDK for python. As a reference, I am using the teams_sso sample from this repository.

After completing the migration, we successfully passed all functional tests and were preparing for production deployment. However, we encountered significant performance issues during load testing.

Test Setup:

  • I deployed the teams_sso sample locally and connected it to an Azure Bot Service resource.
  • For load testing, I used the BotServiceStressToolkit. (https://github.com/damadei/BotServiceStressToolkit)
  • The test involved 30 concurrent users.
  • Each user triggers two types of requests per interaction: ConversationUpdate and Message.
  • I am not using the SSO functionality for these tests—just simple requests that should immediately respond with:
  • "Please type 'login' to sign in, 'logout' to sign out, or 'getUserProfile' to get user info."

Results:

  • The average response time for ConversationUpdate requests is 23 seconds.
  • The average response time for Message requests is 11 seconds.
  • These response times are far too high for production use.
Image

Questions:

  1. What could be causing such long processing times when using the Agent 365 SDK, even with the basic sample and without SSO?
  2. Are there known limitations or configuration steps required to improve performance under load?
  3. Are there best practices or recommendations for optimizing the Agent 365 SDK for high concurrency scenarios?
  4. Is there any guidance on how to properly scale or configure the SDK and/or Azure Bot Service for better throughput?

Any insights or suggestions would be greatly appreciated, as we would like to proceed with our migration but need to ensure the system is production-ready.

Thank you very much for your support!
Best regards,
Mario

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions