Render IO-bound content asynchronously and stream it into a wrap-around shell in a single HTTP response with Phlex.
See video demo.
Although Flecks also supports concurrent promises, threads and async ActiveRecord relations, we recommend using async tasks, since Fibers are much more lightweight and efficient than Threads.
We also recommend using the Falcon web server which uses multiple fibers to handle requests concurrently.
The declarative shadow DOM technique used in this project was inspired by these two articles:
- Out of Order Streaming using Declarative Shadow DOM, Kevin Kipp
- Streaming HTML out of order without JavaScript, Chris Haynes