Multi-threading/Multi-Processing in Python using ZeroMQ
Title Talk by Akash Mishra ( @akash47 ) at #PyDelhiConf on 19th Mar 2017. This talk will be about writing concurrent python code using ZMQ and its python bindings. There are two schools of thought with regard to concurrency. One believes in shared memory and embraces all the complexities that come bundled with it like mutexes, locks and inter-process communication. The other believes in message passing meaning that threads/processes interact explicitly by sending messages and do not share state. The speaker firmly believes in the message passing school because of its simplicity over shared memory and intends to convert every person in the room through this talk. ZeroMQ allows you to write concise and easy to understand multi threaded code that simulates the message passing model. Your threads dont share state, they communicate only by passing messages. This allows you to later split your threads into separate processes as your application needs evolve. Akash Mishra (@akash47) is working as a software developer at Betaout. He stumbled onto ZeroMQ while wandering in the python land for better concurrency options. ZeroMQ allowed him to keep his hair while writing concurrent code in python and hence he wants to tell everyone about how awesome it is.
Title Talk by Akash Mishra ( @akash47 ) at #PyDelhiConf on 19th Mar 2017. This talk will be about writing concurrent python code using ZMQ and its python bindings. There are two schools of thought with regard to concurrency. One believes in shared memory and embraces all the complexities that come bundled with it like mutexes, locks and inter-process communication. The other believes in message passing meaning that threads/processes interact explicitly by sending messages and do not share state. The speaker firmly believes in the message passing school because of its simplicity over shared memory and intends to convert every person in the room through this talk. ZeroMQ allows you to write concise and easy to understand multi threaded code that simulates the message passing model. Your threads dont share state, they communicate only by passing messages. This allows you to later split your threads into separate processes as your application needs evolve. Akash Mishra (@akash47) is working as a software developer at Betaout. He stumbled onto ZeroMQ while wandering in the python land for better concurrency options. ZeroMQ allowed him to keep his hair while writing concurrent code in python and hence he wants to tell everyone about how awesome it is.