© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
M. LathkarHigh-Performance Web Apps with FastAPIhttps://doi.org/10.1007/978-1-4842-9178-8_8

8. Advanced Features

Malhar Lathkar1  
(1)
Nanded, Maharashtra, India
 

You now know enough about how to build REST APIs with FastAPI. In this chapter, you will learn to use modern web applications with WebSocket and GraphQL technology. We shall also explore the events in FastAPI and how to include a Flask application.

This chapter is arranged in the following topics:
  • WebSockets

  • WebSockets module in FastAPI

  • Test WebSockets with Insomnia

  • Multiclient chat application

  • GraphQL

  • FastAPI events

  • Mounting WSGI application

WebSockets

The HTTP protocol is the backbone of the Internet. We know ...

Get High-Performance Web Apps with FastAPI: The Asynchronous Web Framework Based on Modern Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.