I was watching last night a PyCon 2015 talk by David Beazley(Python Concurrency From the Ground Up:Live) and I watched carefully how the GIL affects some solutions he presented and how David used a ProcessPoolExecutor in order to use all the cores the machine has.
Hey, I was receiving a lot of comments in this blog(created in Mezzanine, Django) from people that wants to get higher page rank. Most of the comments were about sex pills. I will show you how I got rid of them with an script.
Docker is a wonderful technology revolutionazing how to run microservices. You may have some experience with it or may not. I will show in this short post how to run a Docker container in Amazon Web Services(EC2) with your whole API in it. This trick is only useful for APIs or django projects that doesn't need to scale and doesn't really have too much traffic.
I have been programming professionally for 19 years now and it was always a pain to maintain the changes you do in your database prepared to be replicated in all the installations your application needed. Remember it was desktop software before so we needed to create programs that check the version of the database they were using and somehow upgrade the database to the new fields, tables, triggers, views, stored procedures, user defined functions etc, so the new software will be able to run without errors.
In previous posts we created a model in Django, created a way to add/modify/delete/search and filter via the Django admin. Then we created a restful API for this model using Django Rest Framework, we added filter and search functionality into the API and finally we added Swagger documentation so our clients can understand our API. But we did not deploy this in any machine. We only use manage.py runserver to check that is working.