Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Have a nice weekend, the Bates, Billie Jean Pin
trønderen30-Dec-22 9:27
trønderen30-Dec-22 9:27 
QuestionThis is not a programming question... Pin
dandy7230-Dec-22 5:31
dandy7230-Dec-22 5:31 
AnswerRe: This is not a programming question... Pin
Gerry Schmitz30-Dec-22 5:53
mveGerry Schmitz30-Dec-22 5:53 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:38
dandy7231-Dec-22 6:38 
AnswerRe: This is not a programming question... Pin
Rick York30-Dec-22 6:12
mveRick York30-Dec-22 6:12 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:33
dandy7231-Dec-22 6:33 
AnswerRe: This is not a programming question... Pin
raddevus30-Dec-22 6:24
mvaraddevus30-Dec-22 6:24 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 6:11
dandy7231-Dec-22 6:11 
I appreciate the time and effort that obviously went into that post. Smile | :)

But, there's 2 things that came to mind in light of that response.

a) A DB is complete overkill. If I miss a message, I miss it - it's not the end of the world. I'm comfortable enough, after all, using this UDP-based protocol, which never guarantees delivery.

b) While it's not necessarily vital to get the message at all, if I do get it, then it has to be done in a timely fashion - single-digit seconds. 10 seconds is definitely too long. It can't be minutes, and it certainly can't be hours. Otherwise getting the message that late is pointless and I might as well not have received it at all. If I have to poll a database, then the overhead of querying it every 10 seconds sounds like costly operation.

===

More context, to put things into perspective:

I wrote the original app back in 2009 (according to source file timestamps, before I started bringing it up to date). Back then, more and more people started calling my landline from cell phones - and few of them show caller ID - still to this day (although the phone number is displayed, the name is rarely included). Some of these numbers are in completely different area codes, despite (say) being next door neighbors, and I'm just getting worse in remembering people's phone numbers.

So I got a USB dial-up modem and hooked it up to my phone line, and the USB port to a computer I happen to have running 24/7. The app I wrote monitors the COM port, and while the modem never picks up, it does get Caller ID notifications when a call comes in. While the name might not be there, the number almost always is. So in (almost) real-time, my app looks up phone numbers from my Windows contacts list (already read and cached), and then (this is where mailslots come in) uses the mailslot mechanism to broadcast a notification to all systems I have at home that run the client portion of it. The client simply waits for notifications to come in through a mailslot, and as soon as one is received, brings up a popup showing who's calling, including the caller name that has been looked up.

So this is where my reasoning comes from. It's not terribly important that I get the notification at all. But if I have to poll a DB to look for those notifications, then I can't afford to only do it every 30 seconds (I need to know as soon as the phone rings; it's pointless otherwise).

The whole thing is merely a convenience, so when the phone rings, and IT can't show the full caller ID info, then at least the computer I'm using at the time does show it, before I decide to pick up the phone (or not).

Maybe I should've included all of this in my original post, but that would only have made it that much longer, and ultimately it strays away from the whole mailslot discussion.
GeneralRe: This is not a programming question... Pin
jschell2-Jan-23 14:02
jschell2-Jan-23 14:02 
AnswerRe: This is not a programming question... Pin
0x01AA30-Dec-22 6:56
mve0x01AA30-Dec-22 6:56 
GeneralRe: This is not a programming question... Pin
trønderen30-Dec-22 7:01
trønderen30-Dec-22 7:01 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 5:40
dandy7231-Dec-22 5:40 
JokeRe: This is not a programming question... Pin
dandy7231-Dec-22 6:35
dandy7231-Dec-22 6:35 
AnswerRe: This is not a programming question... Pin
trønderen30-Dec-22 7:15
trønderen30-Dec-22 7:15 
GeneralRe: This is not a programming question... Pin
jmaida30-Dec-22 14:19
jmaida30-Dec-22 14:19 
GeneralRe: This is not a programming question... Pin
dandy7231-Dec-22 5:42
dandy7231-Dec-22 5:42 
AnswerRe: This is not a programming question... Pin
englebart30-Dec-22 10:25
professionalenglebart30-Dec-22 10:25 
GeneralRe: This is not a programming question... Pin
PIEBALDconsult30-Dec-22 10:31
mvePIEBALDconsult30-Dec-22 10:31 
GeneralRe: This is not a programming question... Pin
Ravi Bhavnani31-Dec-22 18:11
professionalRavi Bhavnani31-Dec-22 18:11 
PraiseRe: This is not a programming question... Pin
Randor 31-Dec-22 18:57
professional Randor 31-Dec-22 18:57 
GeneralRe: This is not a programming question... Pin
dandy723-Jan-23 7:23
dandy723-Jan-23 7:23 
GeneralRe: This is not a programming question... Pin
Randor 5-Jan-23 15:20
professional Randor 5-Jan-23 15:20 
AnswerRe: This is not a programming question... Pin
jschell2-Jan-23 14:11
jschell2-Jan-23 14:11 
NewsDO NOT INSTALL THIS WINDOWS UPDATE: Windows 11, version 22H2 Pin
Slacker00730-Dec-22 3:11
professionalSlacker00730-Dec-22 3:11 
GeneralRe: DO NOT INSTALL THIS WINDOWS UPDATE: Windows 11, version 22H2 Pin
Craig Robbins30-Dec-22 3:28
Craig Robbins30-Dec-22 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.