|
A database as a queue is not the end of the world, but there are better alternatives like... Well, I don't know, a queue?
If you need multi-threading, start up a new thread, don't put something on a queue, read it from another thread, and process it, that's madness.
It might make sense to you NOW, but will it make sense to the people that come after you?
Is it maintainable in the long term (or even in the short term)?
Just because you have a hammer doesn't mean every problem is a nail.
Maybe a better example, at my previous job they wanted to use Docker to deploy some front-end applications to customers who each got their own VM.
Docker isn't for front-end applications... It's possible, but it's hard, you need to do quite a bit of work and it isn't supported by Docker even when you get it working.
It also makes little sense when you give each customer their own custom VM with their own custom Docker container.
Someone read about Docker and thought of a wrong use case.
Some people then see the error of their ways and find a better alternative (like, in this example, DSC or some such), others push and press on until the solution fits the problem.
In this particular case I didn't stick out long enough to see what they did
|
|
|
|
|
Here Here!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
Sander Rossel wrote: I've seen queues being used as some sort of multi-threading code. I once knew a girl named Linda, but I haven't seen her around for a while.
|
|
|
|
|
Trying to find a good reason to do that.
|
|
|
|
|
GKP1992 wrote: Trying to find a good reason NOT to do that There you go.
You have just been Sharapova'd.
|
|
|
|
|
But isn't that pretty easy?
|
|
|
|
|
Good example - default interface methods in C# 8.0. I mena, what the actual f*ck do we need that for?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Staying on top in the buzzword bingo bullsh*t game
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
many time experienced this, without any actual ROI, we have to adopt a new stack because of the hype and all other moving.
|
|
|
|
|
a(ssumptions)2 + b(ullshit)2 = hyp(e)2
The wrong angle theorem that some deem right.
|
|
|
|