Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
FastAPI Cookbook

You're reading from   FastAPI Cookbook Develop high-performance APIs and web applications with Python

Arrow left icon
Product type Paperback
Published in Aug 2024
Publisher Packt
ISBN-13 9781805127857
Length 358 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Giunio De Luca Giunio De Luca
Author Profile Icon Giunio De Luca
Giunio De Luca
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Chapter 1: First Steps with FastAPI FREE CHAPTER 2. Chapter 2: Working with Data 3. Chapter 3: Building RESTful APIs with FastAPI 4. Chapter 4: Authentication and Authorization 5. Chapter 5: Testing and Debugging FastAPI Applications 6. Chapter 6: Integrating FastAPI with SQL Databases 7. Chapter 7: Integrating FastAPI with NoSQL Databases 8. Chapter 8: Advanced Features and Best Practices 9. Chapter 9: Working with WebSocket 10. Chapter 10: Integrating FastAPI with other Python Libraries 11. Chapter 11: Middleware and Webhooks 12. Chapter 12: Deploying and Managing FastAPI Applications 13. Index 14. Other Books You May Enjoy

Deploying and Managing FastAPI Applications

In this chapter, we delve into the essential aspects of deploying and managing FastAPI applications. As you develop your FastAPI projects, understanding how to effectively run, secure, and scale them is crucial for ensuring performance and reliability in production environments. This chapter will equip you with the knowledge and tools needed to deploy your FastAPI applications seamlessly, leveraging various technologies and best practices.

You will learn how to utilize the FastAPI CLI to run your server efficiently, enabling HTTPS to secure your applications, and containerizing your FastAPI projects with Docker. Additionally, we will explore techniques for scaling your applications across multiple workers, packaging your applications for distribution, and deploying them on cloud platforms such as Railway. Each recipe in this chapter provides step-by-step instructions, practical examples, and insights into optimizing your deployment workflow.

By the end of this chapter, you will be proficient in deploying FastAPI applications using modern tools and methodologies. You’ll be able to always secure your applications with HTTPS, run them in Docker containers, scale them with multiple workers, and deploy them on the cloud. These skills are invaluable for any developer aiming to take their FastAPI applications from development to production.

In this chapter, we’re going to cover the following recipes:

  • Running the server with the FastAPI CLI
  • Enabling HTTPS on FastAPI applications
  • Running FastAPI applications in Docker containers
  • Running the server across multiple workers
  • Deploying your FastAPI application on the cloud
  • Shipping FastAPI applications with Hatch
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image