Category Archives: Open Source

An example Go (golang) REST service that uses JWT (JSON Web Tokens) and Negroni

I’ve been messing with the idea of re-writing a project of mine in Go (for fun and learning). While I’ve been looking over my options I decided to evaluate JWT (JSON Web Tokens) rather than rolling my own concoction (which … Continue reading

Posted in Go, Open Source | 1 Comment

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 | Leave a comment

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 | Leave a comment

Fixing a Race Condition using a Mutex with Go (golang)

I was recently reading some articles on Go (golang) and it it got me to trying out a few techniques. New gophers may not know but Go allows you to compile your code to detect race conditions. Google has even … Continue reading

Posted in Go, Open Source | 3 Comments

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 | Leave a comment

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