-
Notifications
You must be signed in to change notification settings - Fork 479
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
Dapr Pub/Sub. Sending messages with specific fifoMessageGroupID #3415
Comments
Moved this to the correct repository.
This is currently not supported. You can only set |
Why is the ability to set fifoMessageGroupID when sending pub/sub messages important? Background we have an inventory system that is implemented according to the microservice architecture pattern and our microservices can communicate with each other with pub/sub pattern powered by DAPR. As a result, we have a distributed system and we are working to reach the highest level of system consistency. The most important tool to reach eventual consistency is by using FIFO queues in pubsub communications to make sure that all system operations will be processed in the system in the correct order. AND in the case of using FIFO all our customers currently are in one queue. And high load of one customer affects the work of another customer because the queue is FIFO and all messages will be processed in strict order. Horizontal scaling of microservices is useless in this case. Proposes solution. If we could set fifoMessageGroupID as customer Id, then processing to queues for different customers can performed in parallel. Horizontal scaling of microservices will work well and a high load of one customer will not affect to work of another customer in the multitenant system. Workaround Currently, we have a workaround, how to split processing to different customers with different FIFO, but is not as elegant as fifoMessageGroupID approach. |
Thank you @yaron2 for a tip. var metaData = new Dictionary<string, string>(); I don't know Is it corrent way to set it so? Thank you in advance. |
Hello Guys, Thank you for DAPR. It helps a lot.
We are using AWS SNS/SQS pubsub in FIFIO mode and we want to set fifoMessageGroupID for each message we are sending.
I have read Dapr.Client PublishEventAsync specification (for .net).
Can we set fifoMessageGroupID in the parameters of PublishEventAsync?
Thank you in advance for your answer.
The text was updated successfully, but these errors were encountered: