Skip to content

pedrocarrico/slomo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Slomo

Description

Slomo is a rack middleware that slows down your requests.

Why would anyone want this?

Slow servers are a reality and sometimes simulating a slow server on your development machine in order to find how your application handles a slow API can be a pain so I've done this gem to test some edge cases and to see how applications handle a slow server. Coupled with rack timeout you can even test some weird "sometimes it happens" timeout cases. Also...you can only really know someone once you've seen them use a slow internet connection :-)

Installation

In your Gemfile:

gem 'slomo'

If you're using rails add this to your application.rb:

config.middleware.use(Slomo::Middleware)

Or if you're using sinatra:

use Slomo::Middleware

Fire up your server and slow down while you browse your application. Currently it lasts 0 to 2 seconds longer to process your requests, I'll try and make this configurable in future versions.

Copyright

Licensed under the WTFPL license.

About

Slomo - rack middleware that takes its time...

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages