Orphaned Gunicorn Processes with Supervisor

Python web applications generally expose a WSGI interface for client communication, which is rather unusual if you are used to more novel approaches like those of Go applications, where APIs are generally served via HTTP. Most applications have an HTTP gateway in front, either for load balancing, high availability or TLS termination, so a Python application, like e.g. Django projects need an HTTP server which interfaces with WSGI. WSGI servers also deal with worker spawning, because of Python’s Global Interpreter Lock, which would otherwise limit Python applications to be executed on one thread at any given moment.
Read full article »

Grandine: Vector Tiles, Summary July 2017

Continuation of the documentation of my Prototype Fund related work. Previous summaries: March, April, May, June This month I concentrated on picking up some loose ends and refining the both command line tools spatialize and tiler. The other hard thing in programming I’ve been reminded that there are already tools that are called “tiler”. I don’t intend “tiler” to be a canonical name for this tool, but as it isn’t production ready yet I didn’t want to invest too much time into a good name.
Read full article »

Grandine: Vector Tiles, Summary June 2017

Continuation of the documentation of my Prototype Fund related work. Previous summaries: March, April, May Before I use too many words to describe the obvious, just have a look: It is now possible to render all tiles from a dataset and write them to disk. At the moment the tiler tool supports reading from GeoJSON is supported and all features will be written to the same layer in the tiles.
Read full article »

Grandine: Vector Tiles, Summary May 2017

Continuation of the documentation of my Prototype Fund related work. Previous summaries: March, April Decoding/Encoding TWKB In the April summary I briefly discussed the TWKB format, but wanted to implement it either way, because it might be useful some day in the still unnamed new geo data format. This has been completed so far and supports all features that are supported by my spatial lib. Data format library Before, the encoding of the intermediate data format was very procedural style.
Read full article »