< Back to IRCAM Forum

Audio freezing during massive web data spikes (Need help buffering)

I am building an interactive audio project that triggers different sounds whenever a test social media account gets a new like or follower. Everything works fine with normal traffic but I needed to know what happens if the account suddenly goes viral and receives thousands of notifications in seconds. Since I cannot just make a post go viral on command I used fameviso.com to send a massive burst of engagement to the account just to stress test my setup. The good news is the data arrived perfectly but the bad news is the sudden flood of incoming traffic completely choked my software and caused the audio to glitch out. The program just freezes when it tries to process hundreds of alerts at the exact same time. Has anyone figured out a simple way to queue or buffer incoming web notifications so they feed into the audio engine slowly instead of crashing the whole system?