Open ghost opened 8 years ago
+1
we should have hooks for both enqueue (similar to clj-http) and dequeue (similar to ring) middlewares
enqueue middleware could, for example, automatically inject some data into SQS message attributes taken from the current threadlocal context.
So I've been working with basically implementing this on the application side to test out one approach, and I think we need the following to add this to the library.
For each message I receive, I want to perform the following
Clojure Ring middleware provides great hooks for reducing the boilerplate required in order to follow this kind of workflow. It would be nice to be able to provide similar middleware for SQS message handling.