---
title: "Python Queue Subscribers Starter"
description: "Deploy Python background tasks using Vercel Queues."
url: "https://vercel.com/templates/python/python-queue-subscribers-starter"
links:
  repository: "https://github.com/vercel/examples/tree/main/python/queue-subscribers"
  demo: "https://python-queue-subscribers.labs.vercel.dev/"
  deploy: "https://vercel.com/new/clone?demo-title=Python+Queue+Subscribers&demo-description=Build+Python+queue+subscribers+with+Vercel+Queues.&demo-url=https%3A%2F%2Fpython-queue-subscribers.labs.vercel.dev%2F&project-name=Python+Queue+Subscribers&repository-name=python-queue-subscribers&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fqueue-subscribers&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F6wH2QEDDNBKhbohIoRBkOk%2Faf6cead60b46fc879c557e9e3c194d3f%2Fvercel_python_og_card.png"
---

# Python Queue Subscribers Starter

Deploy Python background tasks using Vercel Queues.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fqueue-subscribers&project-name=Python%20Queue%20Subscribers&repository-name=python-queue-subscribers&demo-title=Python%20Queue%20Subscribers&demo-description=Build%20Python%20queue%20subscribers%20with%20Vercel%20Queues.&demo-url=https%3A%2F%2Fpython-queue-subscribers.labs.vercel.dev%2F)

# Python Queue Subscribers + Vercel

This example shows how to build Python subscribers with [Vercel Queues](https://vercel.com/docs/queues) and store task results in [Vercel Runtime Cache](https://vercel.com/docs/runtime-cache) using [FastAPI](https://fastapi.tiangolo.com/).

## Demo

https://python-queue-subscribers.labs.vercel.dev/

## How it Works

The FastAPI app publishes messages to Vercel Queues. Subscribers process each message and store the result.

## Running Locally

```bash
npm i -g vercel
vercel dev
```

The application is now available at `http://localhost:3000`.

## One-Click Deploy

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fpython%2Fqueue-subscribers&project-name=Python%20Queue%20Subscribers&repository-name=python-queue-subscribers&demo-title=Python%20Queue%20Subscribers&demo-description=Build%20Python%20queue%20subscribers%20with%20Vercel%20Queues.&demo-url=https%3A%2F%2Fpython-queue-subscribers.labs.vercel.dev%2F)

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
