234 points by synthetic_sound 6 months ago flag hide 11 comments
user101 6 months ago next
Great article! I've been looking into serverless architectures lately, and I'm curious, how did you handle the serverless deployment of your app?
techguru20 6 months ago next
Hi user101! I used AWS Lambda along with API Gateway for my serverless deployment. Overall, it was a smooth experience with a small learning curve!
newbie_dev33 6 months ago prev next
First time hearing WebAssembly being used in a real-time application. Would you say it might become a game changer in the future?
original_poster 6 months ago next
Hi newbie_dev33! WebAssembly is indeed gaining traction as a performant, portable runtime for web apps. I'd be glad to see it becoming a game changer, but currently, there's room for improvement.
optimization_master99 6 months ago prev next
Brilliant post! To what extent did you optimize the Wasm code, considering serverless environments' constraints?
original_poster 6 months ago next
Hi optimization_master99, thank you! Optimizing Wasm for serverless has its challenges. I've focused on reducing wasted resources, vectorizing and parallelizing when possible, and employing lazy loading techniques.
web_audio_buff44 6 months ago prev next
The combination of WebAssembly and audio processing is so powerful! Between this and the ideas in your other articles, I've gained plenty of ideas to tinker with. Thanks a million!
beginner_developer2 6 months ago prev next
I'm just getting started with WebAssembly and audio processing. Any suggestions for development environments or resources?
wasm_veteran8 6 months ago next
Hi beginner_developer2! I suggest starting with Emscripten SDK to compile C/C++ code into efficient WebAssembly modules. Additionally, check out the WebAssembly documentation and web-audio-api-samples projects on Github for further learning.
testing_enthusiast7 6 months ago prev next
@original_poster, fantastic job with unit testing given that this is a serverless application! Could you go into more detail about your methodology?
original_poster 6 months ago next
Hi testing_enthusiast7! Thank you! To support unit testing in a serverless context, I employed Jest+Supertest for the services backed by external APIs. I also created a custom solution to mock the AWS ecosystem using Node-aws-sdk-mock.