GithubHelp home page GithubHelp logo

Comments (1)

Danthar avatar Danthar commented on July 29, 2024

The simplest thing that can work, if you care about consumer ack (RMQ). is by retrieving an IActorRef from somewhere. And then doing an Ask<> on that actorref. Your actor processed the message, and sends a response through the Ask to indicate its done. Your consumer stops blocking/waiting on the ask, completes and your consumer ack is send back to RMQ and the message is removed from the queue.

If you dont care about consumer acks (RMQ). Do the same things except use Tell instead of ask. Then your consumer will complete right away possibly even before the message is actually processed.

With regards to concurrent processing. It depends on what library you are using to connect with RMQ. But you can configure most RMQ clients as to how many messages it should process at a time for a specific queue/listener (also known as a channel in RMQ client spreak).

Masstransit has these options. the default RabbitMq.Client package has these options. And other client libs that i know have them.

There is also the Alpakka amqp streaming integration packages. That you can use to directly interface with RMQ with a Akka.Stream Source.

https://github.com/akkadotnet/Alpakka/tree/dev/src/Amqp

from akkadotnet-code-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.