One person runs Listen Notes on 20 plain AWS servers with Django, PostgreSQL and Elasticsearch, and no containers or CI
Listen Notes, 2019. Podcast search website and API.
Since changed. A note dated December 2019 says the post is no longer very up to date and that the stack kept evolving and was becoming somewhat complex. A note dated February 2025 points to a refreshed account of the stack. Near: This post is not very up-to-date now | Near: We've got a refreshed version
Organisation
Listen Notes
Evidence
Reported from production
System
Podcast search website and API
Setup
One database
Near: production-db runs PostgreSQL (master & slave) | Near: The main data store is PostgreSQL
The Official Listen Notes Blog, published 2019-12 (The page is headed Jan. 24, 2018; its body was revised with figures as of May 2019 and a note dated Dec 2019, the date given here.)
Architecture
Listen Notes is a podcast search website and a developer API, built and run by one person. As of May 2019 it ran on 20 production servers on AWS: a Django backend behind NGINX and uWSGI, PostgreSQL as the main store, an Elasticsearch cluster for search, Redis, and Celery workers for offline processing.
Section: Overview | Section: Backend | Near: this is a one-person company
Components
Component
Role
Where
production-web
Serves the web traffic of the website.
Near: production-web serves web traffics for ListenNotes.com
production-api
Serves API traffic. Two versions of the API ran side by side as of May 2019, a legacy one and a new one.
Near: production-api serves api traffics
production-db
Runs PostgreSQL, the main data store, as a master and a slave.
Near: production-db runs PostgreSQL (master & slave) | Near: The main data store is PostgreSQL
production-es
An Elasticsearch cluster that indexes podcasts and episodes and answers search queries.
Near: production-es runs an Elasticsearch cluster | Near: index podcasts & episodes and to serve
production-worker
Runs offline processing that keeps the podcast database up to date and produces search ranking and recommendations. Celery runs the tasks and Celery Beat schedules them.
Near: production-worker runs offline processing tasks | Near: Celery is used for offline processing
production-lb
The load balancer. Redis and RabbitMQ also run on this server, which the author says is for convenience and not ideal.
Near: production-lb is the load balancer | Near: I put NGINX in front of uWSGI
production-pangu
A production-like server for running one-off scripts and testing changes.
Near: production-pangu is the production-like server
Figures, as the source states them
Figure
As stated
Note
Where
People in the company
1 person
The author
Near: this is a one-person company
Production servers
20 servers
On AWS, as of May 5, 2019
Near: There are 20 production servers
Servers the service first ran on
3 DigitalOcean droplets
In January 2017, about $30 a month in total
Near: running on 3 DigitalOcean droplets
Monthly cost of the first setup
30 US dollars per month
Approximate; the 3 DigitalOcean droplets of January 2017
Run processes under Supervisord on plain Ubuntu servers, with no Docker, Kubernetes or serverless
listennotes-2019-boring-stack#d1at corpus version 26a1b3a7e3dd
Chosen
Every server ran Ubuntu with Supervisord managing the processes. The author used no Docker, no Kubernetes and nothing serverless. Servers were named by role and number, and most roles could be scaled out by adding another numbered server.
Near: Supervisord is used for process management | Near: how about Docker / Kubernetes / serverless? Nope | Near: Most of these servers can be horizontally scaled
Reasoning
The author says experience teaches when not to over-engineer. He had done early Docker work at a previous employer in 2014 and judged it good for a mid-sized startup but possibly overkill for a tiny one-person one. By boring he says he means the stack he already knew, so he could launch quickly and attend to the business.
Near: you know when not to over-engineer | Near: I just use the tech stack that
Deploy from a laptop with one Ansible-driven script, and use no CI tool
listennotes-2019-boring-stack#d2at corpus version 26a1b3a7e3dd
Chosen
A wrapper script run on the author's MacBook takes the environment, a version of the single repository and a server group. Ansible then builds and uploads JavaScript bundles to S3 for web deploys, clones the repository into a timestamp-named folder on each target, installs new Python dependencies, switches a symlink and restarts through supervisorctl. Deploying a named commit is how a bad deployment is rolled back. The same Ansible files provision servers and the Vagrant development machine.
Section: Machine provisioning & code deployment | Near: same set of Ansible yaml files
Reasoning
The author says he does not use CI tools and prefers very simple things that work.
Use PostgreSQL as the main store because the author knew it, with Elasticsearch for search and Redis beside it
listennotes-2019-boring-stack#d3at corpus version 26a1b3a7e3dd
Chosen
PostgreSQL is the main data store, run as a master and a slave. Elasticsearch indexes podcasts and episodes and serves search queries. Redis is used for caching and stats among other things, and the author says it is heavily used for counting each API user's requests in the current billing cycle.
Near: The main data store is PostgreSQL | Near: production-db runs PostgreSQL (master & slave) | Near: Redis is heavily used here
Reasoning
The author had many years of development and operational experience with PostgreSQL and calls battle-tested technology good because it lets him sleep at night.
Run offline processing with Celery and schedule it with Celery Beat
listennotes-2019-boring-stack#d4at corpus version 26a1b3a7e3dd
Chosen
Celery runs the offline processing and Celery Beat schedules tasks, which the author likens to cron jobs but a little nicer. Worker servers use it to keep the podcast database current and to compute search ranking and recommendations. If Listen Notes gains traction and Celery and Beat cause scaling issues, the author says he will probably switch to two projects he wrote for a previous employer.
Near: Celery is used for offline processing | Near: production-worker runs offline processing tasks | Near: I probably will switch to the two
Page one person by phone through Datadog and PagerDuty, and send application events to Slack
listennotes-2019-boring-stack#d6at corpus version 26a1b3a7e3dd
Chosen
Datadog holds high-level metrics on a simple dashboard and is connected to PagerDuty, which alerts the author by phone call and SMS. Rollbar catches unexpected exceptions in the Django code and notifies by email and Slack. The backend also posts to Slack through incoming webhooks when a user signs up or does something of interest.
Section: Monitoring & alerting
Reasoning
The author says the monitoring is there to give him confidence when he changes things on the production servers.