Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Change History
B3.0: October 18, 2019
B2.0: September 19, 2019
B1.0: August 28, 2019
Introduction
Who Should Read This Book?
About This Book
About the Code
Online Resources
1. Real-time is Now
The Case for Real-time Systems
The Layers of a Real-time System
Types of Scalability
Achieving Real-time in Elixir
Building Real-time Systems
Wrapping Up
Part I. Powering Real-time Applications with Phoenix
2. Connect a Simple WebSocket
Why WebSockets?
Connecting our First WebSocket
WebSocket Protocol
Long Polling, a Real-time Alternative
WebSockets and Phoenix Channels
Wrapping Up
3. First Steps with Phoenix Channels
What are Phoenix Channels?
Understanding Channel Structure
PubSub
Send and Receive Messages
Channel Clients
Wrapping Up
4. Restrict Socket and Channel Access
Why Restrict Access?
Add Authentication to Sockets
Add Authorization to Channels
Use Authentication from JavaScript
When to Write a New Socket
Wrapping Up
5. Dive Deep into Phoenix Channels
Design for Unreliable Connections
Use Channels in a Cluster
Customize Channel Behavior
Write Tests
Wrapping Up
6. Avoid Performance Pitfalls
Measure Everything
Keep Your Channels Asynchronous
Build a Scalable Data Pipeline
Wrapping Up
Part II. Building a Real-time Application
7. Build a Real-Time Sneaker Store
From Product Requirements to a Plan
Setup the Project
Render Real-time HTML with Channels
Update a Client with Real-time Data
Run Multiple Servers
Wrapping Up
8. Break Your Application with Acceptance Tests
The Power of Acceptance Testing
Break Your App Like a User
Break Your App Like a Server
Automate Acceptance Tests With Hound
Wrapping Up
9. Build a Real-Time Shopping Cart
Plan Your Shopping Cart
Scaffold Your Shopping Cart Channel
Build Your Shopping Cart Channel
Add Real-Time Out-Of-Stock Alerts
Acceptance Test the Shopping Cart
Wrapping Up
10. Track Connected Users
Part III. Bringing Real-time Applications to Production
11. Deploy Your Application to Production
12. Manage Real-time Resources
← Prev
Back
Next →
← Prev
Back
Next →