https://github.com/boxuk/wrap-worker
Worker Ring Middleware
https://github.com/boxuk/wrap-worker
Last synced: 2 months ago
JSON representation
Worker Ring Middleware
- Host: GitHub
- URL: https://github.com/boxuk/wrap-worker
- Owner: boxuk
- License: mit
- Created: 2013-04-12T07:32:01.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-21T08:24:05.000Z (about 13 years ago)
- Last Synced: 2025-01-06T02:20:19.362Z (over 1 year ago)
- Language: Clojure
- Size: 104 KB
- Stars: 0
- Watchers: 49
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Worker Ring Middleware
Ring middleware which uses [Worker](https://github.com/boxuk/worker) to handle identical simultaneous requests.
## Installation
Available from [Clojars](https://clojars.org/boxuk/wrap-worker).
## Usage
```clojure
(ns my.project
(:use [wrap-worker :only [wrap-worker]])
(:require (compojure [handler :as handler])))
(-> #'app-routes
(wrap-worker)
(handler/site))
```
## How It Works
The middleware will (for GET requests only) check the URI and any parameters,
and use these to pass to [Worker](https://github.com/boxuk/worker) to handle identical requests with the same
process.