This week was an adventure in figuring out how to spin separate non-blocking processes in a Rails app.
During our semi-regular company time to build fun stuff, I wanted to build a Facebook chatbot that generated banners with random color palettes and the text provided. Sounded easy enough, but the utility I wanted to build with, Ruby2D, opens up a new console window to make the image, which was crashing Rails every time.
Eventually, figured out how to integrate with Sidekiq to make it a separate asynchronous job, and that did the trick! Had never really done that before, so it was a fun learning adventure!
I'm a fan of Open Source and have a growing interest in serverless and edge computing. I'm not a big fan of spiders, but they're doing good work eating bugs. I also stream on Twitch.
This week was an adventure in figuring out how to spin separate non-blocking processes in a Rails app.
During our semi-regular company time to build fun stuff, I wanted to build a Facebook chatbot that generated banners with random color palettes and the text provided. Sounded easy enough, but the utility I wanted to build with, Ruby2D, opens up a new console window to make the image, which was crashing Rails every time.
Eventually, figured out how to integrate with Sidekiq to make it a separate asynchronous job, and that did the trick! Had never really done that before, so it was a fun learning adventure!
github.com/nexmo-community/faceboo...
That's awesome! 🔥