The message-queue tag has no usage guidance.
0
votes
1answer
20 views
Message queues: Cluster of “send mail” and analytics consumers, ensure dispatch to only one mail-consumer and only one analytics-consumer
It seems there's lots of ways to create a task queue where something like a round-robin algo rotate tasks between consumers, but say I have a user queue, and I want to both send a welcome mail and do ...
4
votes
1answer
67 views
Simple messaging pattern to replace shared DB?
There are two modules A and B using the same DB. A imports B as a JAR. I read that messaging patterns can replace the tightly coupled solution of using a shared DB but I am not sure which message ...
1
vote
1answer
30 views
Eventing solutions for java legacy applications too old for real JMS queue/topic eventing?
What are some architectural solutions that can mimic eventing for systems (Java) that are too old to implement eventing solutions, such as conventional Queue/Topic based JMS messaging?
I have a ...
18
votes
4answers
397 views
Using flat files vs database/API as a transport between a frontend and backend
I've got an application which has generated a rather heated discussion between a couple of the developers.
Basically, it's split into a web layer and a backend layer. The web layer collects ...
1
vote
0answers
67 views
Guaranteed message sending for messages of different priority for different modules
We have created a message que system using priority messages. The idea behind this is as follows:
We have a list of clients.
All clients know if (and what kind of priority) messages they have ...
2
votes
1answer
106 views
What is an appropriate pattern for handling a queue of network events in C++?
I'm writing an application that sends and receives messages over the network and pushes them into a std::deque queue. and I'm looking for the appropriate programming pattern to handle all of the ...
0
votes
0answers
35 views
Fault-tolerant, distributed, event dispatcher architecture?
I'm building an event handler/dispatcher for my monolith, aiming to slowly replace big parts of it by delegating jobs to other systems via events. For example, sending emails when a customer buys ...
1
vote
0answers
23 views
MVC WebApplication as MQ Subscriber
We have a Web (.Net MVC5) application that we are looking to start offloading some of the heavy processing off the Web Application to a distributed services layer. As part of this process we are ...
4
votes
2answers
237 views
Understanding the Single-Writer Principle
The article on the Single-Writer Principle of the Mechanical Sympathy blog explains how bad queues are (performance-wise), because they need to be able to receive messages from multiple produers, and ...
0
votes
2answers
52 views
How to guarantee web script execution sequence/order or not parallels queues
This is a very simplified version of the problem:
You have an integer saved on a server called "B" and you have an script saved on a server call "A" exposed to the internet. The script pulls the ...
4
votes
1answer
208 views
Is it always the best way to go to queue emails instead of sending them real-time? [duplicate]
If you had to decide between queueing emails and sending them real-time, is it always the best way to go putting them in a queue and sending them one by one instead of instantly as soon as a user ...
2
votes
2answers
157 views
Building workflow driven applications [closed]
Quick primer:
I am a happy developer on the Microsoft platform. Up to now I never had to design any applications which contained long running processes (with or without human interaction).In the past ...
2
votes
1answer
64 views
Using short-lived REST requests to obtain messages from a message queue for clients
I would like to put together a system where clients obtain messages from a REST API, but with the producer being able to use the semantics of a message queue: e.g. ordering of messages, a destination ...
2
votes
3answers
187 views
Design pattern for large amounts of overflowing data?
Our current queues publish messages that consumed by 3rd party services with rate limits. Currently the messages are retried with exponential back-off. However there could be cases where data is ...
1
vote
2answers
459 views
Distributed transactions with Kafka
I need to implement a transaction that spans over loosely coupled (SOA+MOM) components.
When a particular event is received, FOO and BAR need to do a transactional operation: that is, both the ...
4
votes
1answer
149 views
Azure ServiceBus Queue: Consumer Application
I am running a .net MVC4 web application. I want to be able to hit an action on a controller, create an email and send it to my service bus queue to be processed (sent).
What are my options as far ...
4
votes
1answer
198 views
Message queue vs database for delayed tasks
I need to build a system that can handle a fairly high amount of delayed tasks (e.g. scheduled emails). For non-delayed tasks I would go for something like RabbitMQ.
But, is it ok to let tasks ...
2
votes
1answer
131 views
How do I handle long running third party calls from backing up my message queue?
Here is my exact scenario.
I must make requests to a third party service
The service takes ~15 seconds to respond
It also has no webhooks or any call back mechanisms
These requests are not made ...
6
votes
1answer
1k views
Does Akka obsolesce JMS/AMQP message brokers? [closed]
I spent the last week deep diving into the Akka docs and finally understand what actor systems are, and the problems that they solve.
My understanding (and experience with) traditional JMS/AMQP ...
0
votes
0answers
69 views
A layer of abstraction too far?
Using an enterprise service bus, a message translator pulls a message off the queue ready to be consumed by a service.
The translator picks up the message in a canonical data model (CDM) form and ...
1
vote
1answer
143 views
How many Topics (queues) to practically use in an ESB
In all the Service Bus examples and tutorials I've seen, they cover publishing a single message to a single Topic that is picked up by a single listening Subscriber. Whilst this is good for a simple ...
2
votes
0answers
400 views
Architecture design for Java servlet that triggers work (for sending push notifications)
I'm designing a push notification server (for pushing notification via APNS and Google servers) and have come up with the following design for a Java based web application server. I would really like ...
3
votes
2answers
472 views
Is it worth it to use a message-queue framework in this case?
We have these things called "executions" that are run at certain times. They have a delay property that basically says "execute me after delay microseconds`. Currently we are using Cassandra as a ...
1
vote
0answers
61 views
Job queue dispatching based on resource constraints
We have a job-queue shaped hole in our architecture, but it isn't immediately obvious that there's a piece of existing software to fill it. There may be a reason for this, or there might not, so let ...
4
votes
3answers
516 views
Web Service and Message Queue
We're looking at creating a web services/REST API layer that will be consumed by web and mobile clients.
To make the solution more robust I was considering putting the commands from PUT, POST, and ...
1
vote
1answer
50 views
Sequencing distributed tasks with a distributed DB
Background
I have two separate processes, WriteIt() and ReadIt(). One creates records, and the other processes the records in a DB cluster.
Once WriteIt() creates a record, it queues a ReadIt() ...
0
votes
2answers
207 views
Storm topology to handle “dating website”-like workloads
suppose im writing a dating website, similar to okcupid. there are profiles, and i need to compute the (N^2) "match" table - given every 2 profiles whats the match between them?
I was thinking this ...
1
vote
1answer
136 views
Options for repeated distributed task
Scenario
My project has a need to periodically scan the database and notify administrators for particular issues. For example:
Any errors in the logs since last update?
Do values match expected ...
1
vote
3answers
233 views
Using message queue systems - forcing synchronous processing
I have a php process producer-a which places a job on RabbitMQ a - deferring processing to a third-party service. The 3rd party service completes processing a and places a response onto queue b. I ...
2
votes
1answer
739 views
Is having a bi directional message queue a design smell?
I have an architecture with 1 backend server and multiple frontend servers.
The frontend servers are connected in a bi-directional (web sockets) connection to clients so they can send messages to ...
1
vote
1answer
156 views
Persist data downloaded by Celery workers
I'm working in a tool that downloads tweets from Twitter to process them later. For this purpose I'm using Celery with RabbitMQ, sending task with the keywords that must be tracked by the workers.
My ...
1
vote
0answers
73 views
Improve communication between controller and trackers in a Twitter fetcher tool using RabbitMQ or Apache Flume
I've been working for a time with some researches developing a tool to fetch tweets from Twitter and process them in some way. The first prototype "worked" but became a pain as we used sockets to ...
2
votes
3answers
465 views
Design a Queuing Solution with Clustering and Multiple Consumers
It is a Design Problem which I am listing out here.
I have different set of business operations that are carried out for different business entities.
Operations:
Operation A
Operation B
Operation ...
1
vote
1answer
91 views
More than 20 Records Inserted in a Span of 1 Sec
Well, this is not specific to any programming languages. I came across this situation in Android, iOS, PHP and .NET.
The problem is many times I come across a situation while building IoT apps, where ...
0
votes
0answers
170 views
When to use a message queue as a web service database?
Does it make sense to implement a message queue system such as RabbitMQ or Kafka for the purpose of storing data in a queue? For example, this could be done in order to handle things such as ...
0
votes
1answer
95 views
Should I have a queue with SMS requests to picked up by a separate process or connect directly to the API?
I created an email queue where I put the requests for emails to be sent. If the SMTP server is unavailable, the requests are not lost.
When the SMTP server gets back online, the background service ...
3
votes
3answers
3k views
UML: Queue processor in a sequence diagram
Which is the appropriate way of representing a queue processor in a UML sequence diagram?
I want to represent in the same diagram two systems that are loosely coupled through a queue. The first ...
3
votes
1answer
79 views
How to use Messagequeing in a distributed web application
I am curious for solutions to this problem:
Assume we are going to build an online-store. To better scale parts of the architecture, it is broken into independend subsystems. The typical scenario ...
3
votes
1answer
379 views
Passing notifications between programs written in different programming languages
I work in a team of people with experience in varied programming languages. Recently we were required to build a report when an order is placed in our system. Our ecommerce store runs on PHP and the ...
0
votes
1answer
115 views
Locking database records
What I have right now:
A table with lot of records.
About 200 users can select a record according to some rules based on the data in each record.
There is a high chance that 2 or more users will ...
5
votes
1answer
93 views
How to Recover from Inconsistent Job State without Database Polling
I'm working on scaling an application which is currently polling a mySQL database to send async jobs to a background processing system.
A state machine is being used to keep track of the entities ...
14
votes
1answer
8k views
Why database as queue so bad? [closed]
I've just read this article, and I'm confused.
Let's imagine 1 webapp and 1 distinct application acting as "worker", both sharing the same database.
Oh, I said "sharing"..but what does the article ...
1
vote
1answer
159 views
Estimating time remaining in a queue with multiple workers
I've been trying to figure out a way of calculating the estimated time remaining for an item in a queue when there are multiple workers processing items from the single queue.
A client submits a job ...
2
votes
0answers
229 views
How to schedule large numbers of user-defined tasks?
Say you're running a website which generates a large number of tasks that should be run at particular times (e.g. reminder emails).
You could run a cron which SELECTs a database table for unprocessed ...
4
votes
2answers
1k views
Where does Windows Workflow Foundation fit into the messaging oriented middleware architecture?
I've been trying to find information online about where WWF 4.5 fits with in an architecture based around an enterprise message queue using central broker(s) (RabbitMQ in particular).
It seems like ...
5
votes
1answer
3k views
Best way to notify the client in real time that their queue (e.g. SQS) job has finished?
Current Scenario
Our application allows users to upload (Amazon S3) and manage their files through our interface. Currently those users can download the files directly from S3/Cloudfront through our ...
3
votes
1answer
388 views
When does one NOT need to use queues in an application?
I've been developing an application using the Laravel Framework & have been exposed to the idea of queues for the first time. There are a multitude of tutorials & articles about using queues ...
3
votes
1answer
823 views
Is ZeroMQ a good choice to make a Python app and a C# managed assembly work together?
I have a task that involves talking to a .NET-based API (namely AutoCAD) to retrieve data, send commands, and react to events.
I want to separate the API operations and the proper program logic ...
5
votes
2answers
7k views
REST or a message queue in a multi-tier heterogeneous system?
I'm designing a REST API for a three-tier system like: Client application -> Front-end API cloud server -> user's home API server (Home).
Home is a home device, and is supposed to maintain connection ...
1
vote
2answers
2k views
Kafka, is it possible to get the message offset after producing?
While using Apache Kafka, is it possible to get the offset of the message that has been produced?
From the Kafka documentation page it says:
each message in the partition are assigned a unique ...