Singleton patterns in Python’s AIO-HTTP

AIO-HTTP is a web server framework built on python 3's async capabilities. The performance benefits of using async are widely documented online - but suffice to say you can get performance from Python which is on par with NodeJS! If you're coming from a Java (or similar) background, one of the questions you'll probably come … Continue reading Singleton patterns in Python’s AIO-HTTP

Python Pickling in the cloud (or how to get python to execute code it hasn’t seen yet)

Problem - What are we trying to solve? Let's assume you have the beginnings of a simple distributed system: You use redis as your event queueYou have a "master" python script that pickles a python class, and sends it to your redis queueYou have a "worker" python script that waits for a new event, unpickles … Continue reading Python Pickling in the cloud (or how to get python to execute code it hasn’t seen yet)