Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxuk/wrap-worker
Worker Ring Middleware
https://github.com/boxuk/wrap-worker
Last synced: 5 days 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 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-21T08:24:05.000Z (over 11 years ago)
- Last Synced: 2024-09-16T13:34:26.509Z (about 2 months 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.