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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 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
Rights and permissions
Copyright information
© 2019 Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel, Pierre Tardy
About this chapter
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
DOI: https://doi.org/10.1007/978-1-4842-3742-7_12
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3741-0
Online ISBN: 978-1-4842-3742-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)