Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow simultaneous STOMP message listening and HTTP protocol responding #76

Open
leighsmith opened this issue Oct 11, 2024 · 1 comment

Comments

@leighsmith
Copy link

leighsmith commented Oct 11, 2024

One issue which is not clearly documented is that it doesn't seem possible to listen to messages on a STOMP message queue and be able to run the HTTP protocol server simultaneously?

Unfortunately, this is a very likely use-case: a Django web server is running, responding to HTTP requests from a user, which leads to sending a message on a STOMP queue, and waiting for a response on another STOMP queue, which will then update the Django database and the user then can refresh the page to see the result of the STOMP response queue.

At the moment, the pubsub command only listens to and responds to STOMP messages. This means at least two simultaneous execution instances of the django app are necessary: for runserver to respond to HTTP requests, and pubsub to respond to a particular message queue, so that the parallelism is pushed to the operating system and the database. The launching of these becomes more complicated if there are many queues that need to be listened to.

Would it be feasible to have start_processing() launched once the web server is running? There seems to be preliminary support for background processing with STOMP_PROCESS_MSG_ON_BACKGROUND? There could then be the option to issue multiple calls to start_processing() for each of the queues to be listened to.

@ricardochaves
Copy link
Member

Hello @leighsmith ,
We have no plans for new implementations in this library. We are migrating everything to django-outbox-pattern because the outbox pattern is mandatory for us.
We will only fix some bugs until our migration is complete, but we do not have a date for completion.
In the future, this lib should be archived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants