---
title: "Discussion on \"FastAPI Background Tasks vs Pub/Sub vs Cloud Tasks: When to Use What\" | Hashnode"
description: "Discussion on \"FastAPI Background Tasks vs Pub/Sub vs Cloud Tasks: When to Use What\". S01E04 of FastAPI in Production"
url: "https://hashnode.com/posts/fastapi-background-tasks-vs-pub-sub-vs-cloud-tasks-when-to-use-what/6a718f39be217a545bf42093"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [FastAPI Background Tasks vs Pub/Sub vs Cloud Tasks: When to Use What](https://blog.madhav.dev/fastapi-background-tasks-vs-pub-sub-vs-cloud-tasks-when-to-use-what?utm_source=hashnode&utm_medium=feed)

S01E04 of FastAPI in Production

Aug 4 · 5 min read · blog.madhav.dev  
Read the article

-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#python](https://hashnode.com/tag/python)
-   [#cloud-tasks](https://hashnode.com/tag/cloud-tasks)
-   [#gcp](https://hashnode.com/tag/gcp)
-   [#backend-engineering](https://hashnode.com/tag/backend-engineering)

## Written by

[Madhav Bhasin](https://hashnode.com/@madhavbhasin)

@madhavbhasin · Noida, India

  
[View profile](https://hashnode.com/@madhavbhasin)

Production patterns for backend engineers who are tired of hello-world tutorials.

Senior full-stack engineer and engineering lead with 5+ years building cloud-native systems at scale. I write about the things the docs don't cover — GCP, FastAPI, Terraform, event-driven architecture, and AI-powered backends. No hello-world demos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
