1

I've got a linux webserver running Flask and I want to write a frontend to display MSMQ counts from a remote windows server. I've tried using win32com.client (on windows) using the Peek() method but it is too slow for large queue counts. What options do i have for fetching queue counts?

user3727436
  • 77
  • 1
  • 1
  • 6
  • Could you please show how to get queue count with `Peek()` method? As far as I understand 'Peek()' method always fetches the top message from the queue. – Andrey Grachev Aug 19 '15 at 13:59

1 Answers1

0

Are you bound to Python only solution?

Perhaps you can write a service based on .NET which exposes an HTTP API and queries MSMQ using some internals stuff demonstrated in Is there a way to check how many messages are in a MSMQ Queue?

Community
  • 1
  • 1
Ron Klein
  • 9,178
  • 9
  • 55
  • 88