Category Archives: Python

Building a rate limiter in Python 3 with Falcon and run it via Docker

Having your REST services exposed publicly (and sometimes internally) can lead to particular bots or people abusing the service by essentially performing a denial of service (whether intentional or not) on your application. Rate limiting is a fact of life … Continue reading

Posted in Open Source, Python, Redis | 1 Comment

Building an Async Python 3 Serverless Application with Docker

In a prior article I wrote how to create a Docker Swarm and deploy a replicated Python 3 application. I mentioned Ben Firshman had done a demo at DockerCon with Serverless apps. I will show you a simple way to … Continue reading

Posted in Docker, Open Source, Python | Comments Off on Building an Async Python 3 Serverless Application with Docker

Tutorial: Getting started with Docker Swarm and deploying a replicated Python 3 Application

At Dockercon recently Ben Firshman did a very cool presentation on building serverless apps with Docker, you can read about it here (along with watching the video). A little while back I wrote an article on building a microservice with … Continue reading

Posted in Docker, Open Source, Python | 1 Comment

Running a Python 3 REST application with Statsd and Consul support in Docker

Where I currently work we build a lot of RESTful services in either Go (golang) or Python. Many of these services are deployed to Apache Mesos via Docker containers with everything tied up nicely using tools like Marathon and more. … Continue reading

Posted in Open Source, Python | Comments Off on Running a Python 3 REST application with Statsd and Consul support in Docker

A Look at two Python Plugin Managers: Stevedore and Pike

If you’ve worked with OpenStack code for even a minimal amount of time you’ve probably come across a Python plugin library called stevedore (you can find the latest docs here). The second Python plugin manager I’m going to cover is … Continue reading

Posted in Open Source, OpenStack, Python | Comments Off on A Look at two Python Plugin Managers: Stevedore and Pike

Trying out the Docker Compose support for PyWebhooks (a Python 3 webhooks server project)

When I introduced PyWebhooks I wrote an article on how to get started trying out the service easily using Vagrant. It was always my plan to add Docker Compose support to PyWebhooks to make it even easier for someone to … Continue reading

Posted in Open Source, Python | Comments Off on Trying out the Docker Compose support for PyWebhooks (a Python 3 webhooks server project)

Adding a Marathon health check to your Python 3 Mesos application

My last article showed you how to deploy a Python 3 Application to an Apache Mesos Cluster using the Marathon API. I just wanted to do a quick follow-up on how you can easily add a Marathon HTTP health check … Continue reading

Posted in Apache Mesos, Open Source, Python | Comments Off on Adding a Marathon health check to your Python 3 Mesos application

Deploy a Python 3 Application to an Apache Mesos Cluster using the Marathon API

Where I work we are actively using Apache Mesos to deploy our production applications written in Go, Python, Lua, etc. We also use Chronos and Marathon. In this article I’ll show you how to setup a local Mesos Cluster complete … Continue reading

Posted in Apache Mesos, Open Source, Python | Comments Off on Deploy a Python 3 Application to an Apache Mesos Cluster using the Marathon API

Build a Python Microservice with Amazon Web Services Lambda & API Gateway

I think in many ways AWS (Amazon Web Services) is a game changer for the entire “cloud”. Many companies base all or some of their infrastructure on AWS. Today I want to kick off an AWS Lambda tutorial from a … Continue reading

Posted in Amazon Web Services, Python | 5 Comments

Building a self-contained Python 3 application using PyPy

A few articles ago I showed you how to create a Python 3 Microservice (a simple Minecraft service). At the end of that article I mentioned in the future I’d show you how to build a self-contained Python application/service. Well, … Continue reading

Posted in Open Source, Python | Comments Off on Building a self-contained Python 3 application using PyPy