<p>I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else.</p>

<p>The software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions are met. It takes the approach of checking the last 30 seconds of data every 30 seconds to see whether the criteria for a rule has been met.</p>

<p>Is that real time? What are the thresholds for the definitions of real time vs. near real-time?</p>

<p><strong>EDIT</strong></p>

<p>I think this is a duplicate of <a href="https://stackoverflow.com/questions/51135/define-realtime-on-the-web-for-business">Define realtime on the web for business</a>.</p>

<p>Please decide if the above thread is insufficient to answer your question.</p>

[{'answer_id': 80409, 'author': 'Mitchel Sellers', 'author_id': 13279, 'author_profile': 'https://Stackoverflow.com/users/13279', 'pm_score': -1, 'selected': False, 'text': '<p>I am in agreement with John, in your scenario you are looking at least 30 seconds of delay, I would say that it is nearly real time.</p>\n'}, {'answer_id': 80410, 'author': 'Adam Driscoll', 'author_id': 13688, 'author_profile': 'https://Stackoverflow.com/users/13688', 'pm_score': -1, 'selected': False, 'text': "<p>I would say the definition of real time would depend on the context. As with the music example real time would need to be milliseconds, but possibly with your example real time could be within 30 seconds or so. It's all relative.</p>\n"}, {'answer_id': 80414, 'author': 'Per Hornshøj-Schierbeck', 'author_id': 11619, 'author_profile': 'https://Stackoverflow.com/users/11619', 'pm_score': -1, 'selected': False, 'text': '<p>I think you need to look at the specific solution or part of the solution in where you need the response to be real-time. A real time response is one which is perceived by the receiver (the application or basically the end-user) as being real-time.</p>\n'}, {'answer_id': 80416, 'author': 'paxdiablo', 'author_id': 14860, 'author_profile': 'https://Stackoverflow.com/users/14860', 'pm_score': 2, 'selected': False, 'text': '<p>Well, that could be more of a marketing question than a technical one.</p>\n\n<p>Real-time, in terms of embedded hardware, involves a known fixed maximum time for handling incoming information (interrupts and the like).</p>\n\n<p>You can certainly claim 30 seconds delay as real-time especially if the delivery of said information is longer than that.</p>\n\n<p>For example, if your "alert" is an email that could spend 10 minutes in a mail server or a red cross on a monitor that the users only check every half hour, 30 seconds is more than adequate for real-time.</p>\n'}, {'answer_id': 80419, 'author': 'Tom Carr', 'author_id': 14954, 'author_profile': 'https://Stackoverflow.com/users/14954', 'pm_score': -1, 'selected': False, 'text': "<p>Real Time deals with microseconds...mainly around robotics.  Think 'move arm 30 microseconds; weld 1000 microseconds;', like in automobile assembly.</p>\n\n<p>Is your 30 seconds based on a Thread sleep or a timer in a non-real time OS?  If so, then you have a potential varience.  Will you consider it a failure if you're outside that variance (30.01 seconds)?  If not, then it's not real time.</p>\n"}, {'answer_id': 80433, 'author': 'moobaa', 'author_id': 3569, 'author_profile': 'https://Stackoverflow.com/users/3569', 'pm_score': 2, 'selected': False, 'text': '<p>I think one aspect that defines real-time is that the process is <em>deterministic</em> - that is, the application\'s response time is totally predictable based on the inputs.</p>\n\n<p>Thus, painting with very broad brush-strokes, any app sitting on top of Windows can only be "near-real-time", at best. Doubly so if your app is running on some sort of sandbox platform (Java, .NET) where you don\'t have absolute control over platform functions (eg, garbage collection).</p>\n\n<p>My personal rule is that "real-time" doesn\'t belong on a desktop PC; that\'s the realm of PLCs (and yes, they may be running OSes like QNX, VxWorx or even RTLinux).</p>\n'}, {'answer_id': 80435, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 4, 'selected': False, 'text': '<p>Real-time = Guaranteed maximum time for resolution.  It could be picoseconds or minutes depending on the application\'s requirements</p>\n\n<p>This is StackOverflow\'s biggest problem: unqualified people answer LOTS of questions with answers that "sound right" and get voted up, people who care whether the answer is actually correct don\'t spew nonsense fast enough to earn rep to fix the wrong answers.  Posting anonymously due to expected knee-jerk reactions.</p>\n'}, {'answer_id': 80436, 'author': 'Rob Gray', 'author_id': 5691, 'author_profile': 'https://Stackoverflow.com/users/5691', 'pm_score': 0, 'selected': False, 'text': '<p>I believe the answer is that realtime systems are subjective, in that "real time" is just timeliness contraints imposed by the requirements.  Though clearly something that takes 2 hours to respond to a request is not real time, a 30 second delay might be fast enough to qualify as real time.  </p>\n\n<p>I work on what I consider real time systems, where when an event happens in the sytem it is immediately propogated to devices on the system, such that the delay in knowing about an update on a device is product of the network latency and the time take to update its in-memory data.</p>\n\n<p>I personally wouldn\'t classify something with that polls for updates every 30 seconds as realtime.  We have a web app as part of the afore mentioned system that does just that, it refreshes every 30 seconds, so the user is presented with data that is at most 30 seconds old.  Contrast this with the win forms equalivent that is updated as soon as the event occurs.  </p>\n\n<p>Again, "real time" is bounded by your definition of a timely response.</p>\n'}, {'answer_id': 80574, 'author': 'Noel Grandin', 'author_id': 6591, 'author_profile': 'https://Stackoverflow.com/users/6591', 'pm_score': 3, 'selected': False, 'text': '<p>The phrase "real-time" covers a fairly large patch of ground.</p>\n\n<p>The vague definition is "software that acts within a bounded response time".</p>\n\n<p>Where the boundary is hard e.g. in a car\'s injection control system, the software is said to be "hard real-time".</p>\n\n<p>Where the boundary is soft e.g. in a music-playback system, where variations of up to 50ms are tolerable, the system is said to be "soft real-time".</p>\n\n<p>So yes, for some definition of real-time, your system is real-time.</p>\n\n<p>But you\'re probably going to get laughed at if you call it real-time around anybody else who actually works on real-time systems, because 30 seconds is pretty huge.</p>\n'}, {'answer_id': 80805, 'author': 'Bob Nadler', 'author_id': 2514, 'author_profile': 'https://Stackoverflow.com/users/2514', 'pm_score': 1, 'selected': False, 'text': '<p>Another way to define "real-time" is by evaluating the capabilities of the many <a href="http://www.google.com/search?q=RTOS" rel="nofollow noreferrer">RTOS</a>s (real-time operating systems). e.g QNX\'s definition is <a href="http://www.qnx.com/products/neutrino_rtos/realtime.html" rel="nofollow noreferrer">here</a>. Notice that they conform to the <a href="http://en.wikipedia.org/wiki/POSIX" rel="nofollow noreferrer">POSIX</a> PSE52 Realtime Controller 1003.13-2003 System product standard. Most embedded operating systems will provide similar functionality.</p>\n'}, {'answer_id': 81279, 'author': 'YermoungDer', 'author_id': 15293, 'author_profile': 'https://Stackoverflow.com/users/15293', 'pm_score': 3, 'selected': False, 'text': "<p>Real-time is getting a required response to an event completed within the time period specified or <em>your system fails</em>.</p>\n\n<p>People are used to thinking this must mean 'small number of milliseconds/microseconds' but that isn't necessarily true - it depends on your system.</p>\n\n<p>If your system will <em>fail</em> if it doesn't complete it's required response within 30 seconds then it's 'real-time'.</p>\n\n<p>For some systems, a <em>fail</em> could be catastrophic, e.g. causing multiple fatalities - this is described as <em>safety critical</em>, e.g. shutting down a nuclear power plant.</p>\n"}, {'answer_id': 563104, 'author': 'Stephen Friederichs', 'author_id': 39492, 'author_profile': 'https://Stackoverflow.com/users/39492', 'pm_score': 1, 'selected': False, 'text': "<p>Definition of 'hard' real-time from my controls friends - Late information is wrong information.  If it needs to be there every 1s and it gets there in 1.1s, it's useless for calculations.  </p>\n"}, {'answer_id': 4107919, 'author': 'E. Douglas Jensen', 'author_id': 498523, 'author_profile': 'https://Stackoverflow.com/users/498523', 'pm_score': 1, 'selected': False, 'text': '<p>I provide a lengthy discourse on this on my web site real-time.org. The home page has a temporary link to a briefing. The briefing discusses how and why people don\'t understand what "real-time" (and "hard" and "soft" and "predictable" etc.) means. It provides some  precise and general definitions. I have heard from people who don\'t agree with my explanation of this topic, but none of them have come forward with anything remotely as precise and general as mine. "Pull up a chair, let\'s talk" as Larry King says.</p>\n'}]
['https://Stackoverflow.com/questions/80394', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1693/']