Comments (1)
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)
- Need to fix RabbitMQ connectivity / auth HOT 1
- Stopping actor's children on PreRestart
- Orderly shutdown and recovery of nodes HOT 2
- Definition of "resilient"? HOT 1
- Expand WebCrawler README to include docker-compose instructions HOT 3
- HAP has moved
- WebCrawler.TrackerService\Actors\IO\CrawlMaster.EndJob bug
- Code needs better inline comments
- What is the reason behind having a DownloadsMaster next to the ApiMaster?
- PipeTo Self or Originator ?
- FeedParserCoordinator ErrorParsingFeed prints wrong data
- akkadotnet-code-samples HttpDownloaderActor doesn't Dispose()
- Why to use get-dockerip.sh to perform a DNS resolution?
- get-dockerip.sh: line 11: syntax error: unexpected end of file HOT 4
- akka
- Add WebCrawler that does not use Akka.Streams
- WebCrawler. Router has no routees.
- Did you intend to close all open issues? HOT 4
- Modernizing Akka.NET Examples HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akkadotnet-code-samples.