Skip to main content

Questions tagged [queue]

Filter by
Sorted by
Tagged with
0 votes
1 answer
122 views

In my application I have requests and items, each of which are associated with property tuples (key value pairs, where keys can be repeated) stored in a Postgres database. The goal is to find a single ...
flakes's user avatar
  • 159
0 votes
2 answers
4k views

I have a multi-threaded application. There is 1 thread that produces a resource and puts it into a queue and many (not constant amount) consumer-threads that get the resources from the queue. When ...
g00dds's user avatar
  • 111
3 votes
4 answers
2k views

Are stacks and queues allowed to be iterated over, conceptually? It “feels wrong” for some reason but I can't come up with a reason why it would be bad to see through the whole thing that's stacked/...
Lazar Ljubenović's user avatar
2 votes
2 answers
1k views

We currently have a REST API service (let's call it as A) written in Python which triggers various heavy calculation jobs for Worker (W) written in Python as well. Both services are interconnected ...
phen0menon's user avatar
-1 votes
1 answer
44 views

I need to maintain a queue of resources in a cache such that when multiple clients try to pop elements from the queue concurrently, each element would be uniquely returned to only one of the clients. ...
Aadith Ramia's user avatar
0 votes
0 answers
38 views

I'm writing an express/socket.io-powered game server for a web game. I have a central map of game state objects, each representing an ongoing match, like so: // map of gameId -> game (primary ...
temporary_user_name's user avatar
-2 votes
1 answer
122 views

Am going to handle a CRON job module which will be a generic module, on the job execution time shall I push the events to a queue so let the respective module will pick and do the respective operation....
ankithvicky's user avatar
0 votes
1 answer
124 views

I have a rather basic application hosted on Kubernetes, which connects to a Mongo database. The app has a wallet feature. A user can put money in their wallet using real-world payments (e.g. via ...
Avius's user avatar
  • 407
1 vote
0 answers
159 views

Background My task is to create new system (X) for realtime work tracking for internal use. You should think it like an app that you have opened on a separate monitor/ on phone all day and you are ...
Pettan's user avatar
  • 11
-1 votes
1 answer
2k views

I would like to use UML diagrams to show some processes I am designing and would like to implement. The processes involve using a queue, and adding and taking out elements from it. In one of this ...
KansaiRobot's user avatar
2 votes
0 answers
240 views

I have a node js app, in which I need to perform background jobs. My plan is to use a data structure which will contain all the jobs needs done. My design also suggests that this data structure needs ...
Cap Barracudas's user avatar
1 vote
1 answer
149 views

I am developing a multi-user application where a user interacts with the UI and submits execution requests (ER). Each user can submit multiple ERs one after the other and multiple users may submit ERs ...
Chintan Pathak's user avatar
0 votes
1 answer
116 views

I have an implemented UDP receiver which is continuously receiving DTN packets (UDP encapsulated) and performing some operations on them. This whole process is working on a single main thread. However ...
Caspian's user avatar
  • 13
1 vote
1 answer
355 views

I'm designing a solution in which users perform tasks based on task queue. The point is to create system, where user goes on specific URL and server serves him listing with for example: items to asses ...
Paweł Hemperek's user avatar
-3 votes
2 answers
717 views

I am trying to understand the architecture of the system described in this patent about aggregating and analyzing confidential data: https://patents.justia.com/patent/20180089196. The general ...
MikiBelavista's user avatar
2 votes
3 answers
3k views

My project has a integration with a external system. We need to send some important informations to this system. For this, we create a micro service to connect to this external system. This micro ...
Dherik's user avatar
  • 2,504
1 vote
2 answers
665 views

I've been thinking about this over the past few weeks, and I've come up with no good arguments. My perspective is from Java, but if anyone has any language-specific cases outside of this language, I'...
ndm13's user avatar
  • 229
-3 votes
1 answer
104 views

I have three attributes for a user: connectionId (e.g. "sd4-h4sdg-u4j-a2rr3"), userName, and placeInLine. I can't think of a single data structure that will handle my scenario of only allowing a ...
JacobIRR's user avatar
  • 159
1 vote
2 answers
2k views

i am working on a SaaS project that provides some services that people can call via API. My problem is how do I build the billing algorithm. I want to charge on every call to the service. Now I'm ...
Tom Peach's user avatar
  • 209
0 votes
1 answer
366 views

I'm currently working on refacting an existing project. Basicaly, I need to perform requests to remote services. Current solution is to write tasks to a database and then poll them using cron jobs. ...
mcferden's user avatar
  • 103
6 votes
3 answers
1k views

I'm looking at building a message queuing library in Go, which will be used as part of a larger application. A doubly-linked-list seems like a sensible approach for an in-memory data structure, but ...
Brad Peabody's user avatar
4 votes
4 answers
4k views

I'm currently working through Robert Sedgewicks "Algorithms in java" (3rd edition, german) on my own and am currently at one of the more complicated questions there. I think I may have the starting ...
Philipp Doerner's user avatar
6 votes
0 answers
218 views

I need to write my own version of a bounded queue. It must be thread safe. The consumption of this queue is based on a priority system, where a consumer makes a request for an object in the queue. ...
TheCoder's user avatar
  • 179
6 votes
3 answers
1k views

Here are some requirements for a queue: Every few days add ~100k tasks with various priorities Workers will pull tasks at typically less than 10 / second Tasks need to be completed by ~2 unique ...
hoju's user avatar
  • 163
10 votes
2 answers
3k views

Consider the following situation: You have a program which creates numerous 'jobs' that need to be processed and places them into a queue. You have other worker programs which grab the next 'job' in ...
merp's user avatar
  • 101