Tag

python Archives - AWS Managed Services by Anchor

Deploying Python webapps with uWSGI

By | Technical | No Comments

If you’ve deployed a number of WSGI apps like Moin and Django in your time, you’re probably familiar with Gunicorn. Like Unicorn for Rack/Rails apps, from which it borrowed the overall design philosophy, it’s straightforward, lightweight and performant. Make no mistaken, Gunicorn does a great job, but there’s a new kid on the block: uWSGI. We’re starting to roll out uWSGI in favour of Gunicorn, so we thought we’d share some of the thinking behind this and what the benefits are. Let’s briefly cover what Gunicorn and uWSGI have in common: They’re both containers that’ll serve up a WSGI app, providing an HTTP connector that a frontend webserver can proxy requests to. This is similar to using mongrel/thin/unicorn for Rails apps, and is very flexible because any frontend webserver (we…

Read More

Post-Pycon 2012 report

By | Company News, Technical | No Comments

Anchor is back from Pycon AU, run over the Saturday and Sunday of last weekend. Held on the banks of the Derwent River in Hobart, it was a great chance to link up with the community and enjoy some of the erratic-at-times weather. As you may or may not know, we’re big fans of Python for getting stuff done at Anchor, and we’re proud to sponsor an event that brings devs together to share their work. We saw some really cool stuff there which we’d like to share with you. Francois Marier gave an interesting talk on Persona, a passwordless login system being developed by Mozilla. Aiming to be decentralised and not provide personal data to entities like Facebook and Twitter, its goals are similar to OpenID but it does…

Read More

Inquisitio interrupta

By | Technical | 2 Comments

A customer’s Django app has been giving us hell for a little while now, something we’ve recently tracked down to dodgy signal-handling in some MySQL library code. Despite only showing up a dozen times in every 600 million queries or so, we’ve nailed it! It turns out the bug has been hanging around, on and off, for the better part of ten years now – that’s a long time! While it sounds simple on paper, it’s gone unfixed for so long because it only manifests in very specific conditions. Arriving at this conclusion was something of a surprise, but definitely worthwhile, so come join us on an adventure with surprises at every turn. The problem was first noticed by the customer, they get a mail when an exception goes uncaught….

Read More

AUTOMATE ALL THE THINGS!

By | Technical | 2 Comments

You can’t walk two metres down the street without someone going on about how cool and hip “The Cloud” is these days, being able to spin up hundreds of identical Linux VMs easily. Tools to build and configure lots of identical systems or VMs are plentiful. But what if there is no “standard build” or even anything close, with different hardware, networking, software, distro, services, firewalls etc. every time, but you don’t want to spend all your time doing custom server builds and configuration? Being a provider that specialises in customised hosting solutions, not only do most of our server builds have custom requirements, but we also have to configure lots of our own internal systems to deal with the eccentricities of each new server that we bring up. We…

Read More