Skip to main content

Twisted and Django Channels

  • Chapter
  • First Online:
Book cover Expert Twisted

Abstract

The following sections will dive into the structure of Django Channels and the technologies used in building it, and will try to tease out useful design details that can be used whenever you’re building complex multi-tier distributed applications intended to scale horizontally.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    This is not quite true: twisted.web, an asynchronous webserver, is somehow able to run synchronous blocking WSGI applications. It does this by invoking the WSGI application in a background thread and using a Deferred to communicate the result of that invocation back to the server. This does work, but it still means that the core of the business logic is being dispatched to a synchronous pool of background threads: not ideal from the perspective of scaling!

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel, Pierre Tardy

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Williams, M. et al. (2019). Twisted and Django Channels. In: Expert Twisted. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3742-7_12

Download citation

Publish with us

Policies and ethics