Real-time processing means processing data as it is created or modified. This is in contrast to batch processing, wherein data is processed in large chunks at a specific interval (e.g. every night).

learn more… | top users | synonyms

0
votes
0answers
27 views

How should I implement a real-time endpoint server to handle new posts and events for a forum?

I am writing a forum component for a site and decided on using either nio or twisted for a real-time endpoint to accept users posts and notify other users who are in the same forum or page of new ...
1
vote
2answers
48 views

Real-time collaboration via tmux / screen

As I'm sure most of you are aware; tmux and screen have features that allow the sharing of a concurrent terminal session with a remote host. At first this seems great, and for some purposes it is, ...
0
votes
0answers
9 views

How do I implement Socket.io Leaderboard using AWS Dynamo DB cost-effectively?

Every time a user submits a score, Socket.IO causes all the users get their leaderboard updated. This causes every single user connected through Socket.IO to read from the Dynamo DB database (every ...
0
votes
0answers
21 views

Building application with some realtime challenges

I m working on an application in which we need to send information in "realtime" flow. It could be messaging from one to multiple people, or receiving notifications by users. Our constraints is less ...
0
votes
0answers
35 views

Discovery for Multiple Senders and Multiple Receivers

I am architecting a realtime system with multiple senders and multiple receivers. Each receiver will receive from multiple senders. The system needs to have as little latency as possible. The system ...
1
vote
1answer
67 views

How to test software with near-real-time requirements?

So, I've been refactoring my videoconferencing application for a while, covering it with unit and general tests. Finally, I got to the point where I need to write a loopback test with 1 client sending ...
0
votes
0answers
40 views

How to avoid multiple long polling request from chat app

I am building a real time chat app for eCommerce app customer-seller. As I am using long polling Technic. I need to understand how can I optimize multiple long polling request. For eg. I am a ...
15
votes
3answers
365 views

How to deal with faster computers in a client/server real-time videogame

I'm creating my first online game using socket.io, and I'd like it to be a real-time multiplayer game like agar.io or diep.io. But I've run into the issue of trying to figure out how to get all the ...
1
vote
1answer
73 views

Is this indexed approach to java rts game development valid and how can I improve it?

I have class GameState laid out to basically hold an Array of Players, an Array of StarSystems, and a few other fields that need to persist from save to save. Each GameObject keeps track of its own id,...
2
votes
1answer
153 views

How to handle shutdown/startup of a Java application that relies on real time events?

I have this Java project called Server. Server is essentially a single-threaded application that listens to events from external applications. These events are crucial and missing one is a huge deal. ...
1
vote
2answers
76 views

Stateful server on heroku

I'm building a multiplayer trivia game where the server is written in NodeJS and hosted on Heroku. I ran into a problem when the server should notify the users that time's up for answering a question ...
1
vote
2answers
2k views

Multitasking in C#

I would like to use a timer in my C# program with millisecond accuracy to keep a camera in sync with some events and keep shooting a picture every 250ms (or 1/4 sec, or I might adjust it to even ...
1
vote
0answers
31 views

How to specify OCL time constraints?

The article An OCL Extension for Real-Time Constraints describes and interesting extension to OCL for the specification of time constraints. New types OclConfiguration and OclPath are defined along ...
1
vote
2answers
62 views

What is the best way to sync the time of a live sports match with your app?

I'm creating a live scores application for Rugy League. It shows scores in real-time as a match is taking place. In Rugby League the match clock can be paused at any point during the match (similar to ...
2
votes
3answers
101 views

Declarative programming for deterministic real time control

Let's say you want control a motor in real time. Normally you would use a microcontroller or PC with e.g. c-programming language. So you would use an imperative approach. You tell the microcontroller ...
19
votes
3answers
673 views

What are the reasons for why a Java/Linux stack fails to be “real time”?

I have often heard developers mention that Java can't "do Real Time", meaning a Java app running on Linux cannot meet the requirements of a deterministic real-time system, such as something running on ...
2
votes
0answers
24 views

Realtime layered time data storage and calculations

I am having a hard time trying to figure out the best way to report on and calculate layered time data. The problem: A person can sign in multiple times, during this sign in there are multiple ...
1
vote
1answer
122 views

Building a real-time web-app with Ajax .post()

Usually, real-time web-apps are built with websockets, right? Well, let me be radical here - what if I used Ajax? Okay, okay, I know it has its limitations. You can't build Agar.io, sending data ...
1
vote
1answer
49 views

Scheduling/suspending embedded interpreters

Let's say that I want to embed a scripting engine inside some other program, to allow users to create custom behaviours for objects. For example, when a particular event happens, the server would ...
-2
votes
1answer
332 views

How should a service communicate with an activity in real-time?

How should a service communicate with an activity in real-time? BroadcastReceivers seem too slow and unreliable. Sometimes they appear too slow or stop working entirely. As an example, there was a ...
1
vote
3answers
97 views

Best approach for realtime sync + shared todo?

I'm implementing an app that has among other things shared todo lists. I want it to sync in real time. This has to work for "normal" single user items (e.g. user has app opened in 2 devices, doing an ...
3
votes
3answers
274 views

Read data from a device through usb port at high frequency

I need to know if I can get acceleration data from an IMU at 500Hz via USB. I've been going through the code that the manufacturer provides and trying to improve it. Right now I cannot go faster ...
4
votes
2answers
150 views

Using websockets for server “broadcasting”?

I want to make it possible to edit shared todo lists in real time. There's already a REST interface, and it's possible to send updates to the server - add items, mark items as done, etc. For the ...
1
vote
1answer
81 views

What are the impact to the server when using ajax polling for live web pages?

I've been searching on the internet about using interval ajax polling for live web pages and I've been using it along with SignalR. Now I always read an article online about using ajax polling for ...
4
votes
1answer
231 views

Oscillations detector: how to effectively detect oscillations of a variable?

I monitor a variable in real-time where new value is generated every 1/25 second. Depending on the conditions, this variable may either be stable, i.e. fluctuate a little (+/-1%) around some value (...
1
vote
0answers
456 views

Integrate C++ DLL with C# GUI asynchronously (design issue)

This is more a design than an implementation question. I am aware of how to integrate a C++ DLL within a C# main app that acts as GUI. Believe me that I've read all other questions on similar topics, ...
1
vote
1answer
4k views

How to get real time notifications, when a database change (insert, update, delete) occurs?

I'm creating a dashboard which should monitor a database table. I have only database access (no application layer). The table is rather large (10 million rows), however not changing rapidly (100 ...
0
votes
1answer
103 views

RIOT-OS and multiple executables?

I am brand new to embedded programming and am wondering if RIOT-OS has the capabilities that my small project requires. I have 3 executables, fizz, buzz and foo. They all do separate - but very ...
2
votes
2answers
197 views

Is WCF strictly an asynchonous comms platform?

Since I last had to do any comms/network programming, the field has exploded with acronyms. In fact, networking almost feels like it is now described by a whole new language. The very name "Windows ...
0
votes
1answer
773 views

C# Real time HMI (Human Machine Interface)

I came across a discussion of real time programing on this site which seemed to have some good insights. I would like to get your thoughts on my next project. I plan to write a C# HMI for a machine ...
4
votes
5answers
15k views

Real-time chat in Ruby on Rails without owning a server [closed]

I'd want to implement a Real-time chat for my Rails app but I can't really host the server which handles the sockets. I've tried Faye but it needs a server. I've also heard of pusher but it's limited ...
2
votes
2answers
295 views

Compiling and deploying a C program to an MCU running an RTOS

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair ...
2
votes
0answers
593 views

Cross-compiling Java app to run directly on ARM

Please note: although I am using ARM SAM3X8E in this example, I'm just using that as a concrete example, and the answer to this question could easily be given using any other MCU such as AVR, etc. I ...
2
votes
1answer
103 views

Compiling and deploying RTOS to an MCU

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair ...
4
votes
2answers
1k views

Benefits of RTOS vs Bare Metal for MCU Programming?

Please note: This question specifically mentions two RTOSes but is more generic and can probably be answered by anybody who has written C code for embedded RTOSes before, and had their software run ...
0
votes
2answers
280 views

Send heavy computation jobs from web server to another process and wait for response

I know it is a common practice to send cpu-bounded heavy tasks to background processes, in order to free a web server to serve other requests. But - what if the request must know the result of that ...
2
votes
1answer
78 views

timed events to modulation of real-time audio

I am new very to audio programming and am having trouble figuring out the right kind of algorithm for converting control events (e.g. like MIDI) to real-time sound genesis with a buffer. At the ...
1
vote
1answer
96 views

Best way to keep consistent data in model across devices?

I have a model for an app that is fairly large, all of which needs to be on a users' device at the same time. For example, a spreadsheet. If a user makes a change to the model on one device, I want ...
1
vote
3answers
105 views

Architecture for monitoring lots of mini-games

In my project, I'm going to create lots of mini games. Those mini games can last 30 seconds to 1 week (the duration of the game is decided when it is created and is fixed). The number of concurrent ...
0
votes
1answer
473 views

calculating the average of a value over a month [closed]

I am working on a project right now that is having me calculate monthly interest on a bank account. The way the interest is supposed to be calculated is as follows: Use the daily average to calculate ...
0
votes
1answer
215 views

Real-time theory: how is period transformation implemented with delay requests?

To deal with transient overloads with a real-time system scheduled with rate-monotonic scheduling, one can use period transformation to reduce the period of important processes so that they have ...
0
votes
0answers
52 views

Correct definition of “bandwidth preserving algorithms” in real-time scheduling?

I've seen conflicting definitions for the term "bandwidth preserving algorithms". The two definitions I've seen are: Any spare CPU capacity is used for aperiodic processes. One or more periodic ...
0
votes
1answer
109 views

Spreading incoming batched data into a real-time stream

I would like to display some events in 'real-time'. However, I must fetch the data from another source. I can request the last X minutes, though the source is updated approximately every 5 minutes. ...
1
vote
0answers
57 views

Semaphore : one for each shared resource?

Normally semaphores are implemented as integer variables. The value of a semaphore represents initially the number of processes that are allowed to access the shared resource at the same time, which ...
8
votes
3answers
2k views

What optimizations can be done for soft real-time code in C#?

I'm writing a soft real-time application in C#. Certain tasks, like responding to hardware requests coming in from a network, needs to be finished within a certain amount of milliseconds; however it ...
15
votes
2answers
8k views

Can someone explain in simple terms what is the disruptor pattern?

I would like if you could explain to me in a simple way how does the disruptor patter work. This concept has been elusive to me as of know. Perhaps with your help I could comprehend it.
5
votes
2answers
751 views

Design pattern for an automated mechanical test bench

Background I have a test fixture with a number of communication/data acquisition devices on it that is used as an end of line test for a product. Because of all the various sensors used in the ...
1
vote
1answer
508 views

What is a good practice to push notifications in a “near real-time” delay in this case?

I want to enable some real-time notifications about friend's activities (social network). Technical context is: Webapp calling backend (REST API's). Scenario is: Kevin follows Bob. When Bob ...
1
vote
0answers
493 views

Multiple long polling requests: bad idea?

I am designing a web server that handles multiple things such as a user-to-user chat, a user-to-group chat, friends request, forum etc. The chats have to be real-time chats, the friends requests ...
1
vote
1answer
667 views

options for data analytics for time series store

I'm building an Internet of Things solution that has a number of real time feeds. I need to make a couple of design decisions with regards to the data store and reporting and looking for input. I ...