Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A Goliath-based streaming demo for Heroku's new Cedar stack
Tree: 16fbc7d983

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

A Heroku Goliath Demonstration

This is a little app to demonstrate the power of Heroku's new Cedar platform.

It uses Goliath to stream a response to HTTP requests, keeping connections alive perpetually (with a little message every 29 seconds) and also sending back generated Fibonacci numbers (and it generates from scratch for each new request).

As it runs on Goliath, not only is the response streamed live, but the server is also capable of handling multiple requests using a single dyno (and quite well, too).

Please note that due to the simplistic use of streaming, web browsers won't render any content from the page that this app throws up and you need to use curl or a similar tool to get at the results.

Set-up as follows:

git clone
heroku create --stack cedar <appname>
git push heroku master

And that's it. Try getting at the response (be prepared for a flooded terminal) with:

curl 'http://<appname>'

And you can cut off the connection with Ctrl-C.

Incidentally, interesting to see is the speed reported by:

wget 'http://<appname>'

Anyway - have fun!

Something went wrong with that request. Please try again.