AmvTek blog

complex web systems

Comparing Python performance of Protobuf/Thrift serialization…

When in need to get two software processes to exchange datas, some sort of protocol is necessary to define how to encode/decode the datas to be transported. A large number of serialization formats are available (json, xml, ASN.1…) so as to tackle the cross process/cross programming language ...

Making good use of random in your python unit tests

Writing efficient UnitTest to validate that your code performs as expected is a difficult endeavor. Lot has been written about the benefits of Test Driven development and on how to best approach testing, and lot can be learned reading the available litterature. One thing however that we don’t see ...

Accessing multiple postgres schemas from Django

One of the postgres feature we have been laking the most when working with the Django ORM is the lake of direct support for postgres schemas. In the past we tried several roads to explicitely target other schemas than public when creating or accessing the database structures required by our ...

Making use of twisted coiterate

Twisted provides various ways to integrate CPU bound operations or blocking libraries to the reactor. It provides very clean integration path for threading or external processes.

In this post, we describe an under documented alternative, where the long running task is implemented using an iterator that will be consumed directly ...