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

[feature] Reading server requests from AMQP queue #373

Closed
RuSPanzer opened this issue May 28, 2020 · 3 comments
Closed

[feature] Reading server requests from AMQP queue #373

RuSPanzer opened this issue May 28, 2020 · 3 comments

Comments

@RuSPanzer
Copy link

Hi.
I have chat backend on a PHP.

I use backend PHP API for publishing new messages to chanels, and use centrifugo for deliver new messages to all clients on chanel.

Simple mechanis publication like this:

  1. Client send POST request to backend API
  2. Backend API save new message to database
  3. Backend create RabbitMQ message with a publisher to queue
  4. One of many counsumer listen this queue and making POST request to centrifugo
  5. Centrifugo send new message to target chanel for all clients with a websockets.

But consumer in a PHP is a realy pain.
I propose that the centrifugo act as a consumer to some AMQP queue and remove 4 step from my scheme.

@FZambia
Copy link
Member

FZambia commented May 28, 2020

Hello, sorry but this is out of Centrifugo scope. You can implement AMQP consumer in any language and make it POST messages to Centrifugo API.

Maybe this is a nice idea for external project - i.e. get messages from Rabbit/Kafka/Redis and send them effectively to Centrifugo API.

@FZambia
Copy link
Member

FZambia commented Jul 10, 2020

Closing since no response from op and nothing actionable here.

@deefdragon
Copy link

@FZambia with the addition of the async consumers in 5.2.0, can this be re-opened? I'm not sure if there are plans to expand the supported async input methods, or if Benthos is still the "expected" pattern.

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

3 participants