benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 113 forks source link

Response chaining #2

Closed sendtopms closed 14 years ago

sendtopms commented 15 years ago

I am also looking for response chaining, here what I mean response chaining is, I want to fire a fetch_attachment and i need an option to directly send response back to the browser through mochiweb or yaws response. This is how I can keep my couchdb behind the firewall and dmz and have my app server serves the content. More over big files can be streamed or chunked to the end user through middleware.

Is it a good idea?

benoitc commented 15 years ago

Do you want to stream attachments ? If this is what you want you could already do it by using fetch_attachment/5 and using your own fun. I will clean this api to make it easier to use but acualluy it works. You could check the view streaming example.

benoitc commented 14 years ago

latest head of couchbeam include possibility to stream fetch attachments.