https://github.com/megatux/heroku_streaming_csv
Sample application with ActionController::Live with slow generation of CSV file for surpasing Heroku's timeout
https://github.com/megatux/heroku_streaming_csv
heroku rails ruby timeouts
Last synced: 6 months ago
JSON representation
Sample application with ActionController::Live with slow generation of CSV file for surpasing Heroku's timeout
- Host: GitHub
- URL: https://github.com/megatux/heroku_streaming_csv
- Owner: megatux
- Created: 2021-08-03T17:09:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T17:23:09.000Z (about 4 years ago)
- Last Synced: 2025-04-06T19:49:02.306Z (6 months ago)
- Topics: heroku, rails, ruby, timeouts
- Language: Ruby
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This small app demostrates the use of `ActionController::Live` Rails controller concern to slowly generate a CSV file without triggering the Heroku's timeout limits of 30'' responses.
### Notes
* Ruby version: should be ok with 2.x
* Tested with rails 6.x and 7 edge
* No Database required
### Usage
Use the browser and follow the link to start the CSV generation that takes more than 30'' to finish or use a CLI tool like curl to see line by line the generated output:
`curl -i http://localhost:3000/exporter.csv`
Ouptut: 