cqs
cqs copied to clipboard
Create messages in batches if they come in quickly
For example, set a threshold, 100ms and batch all messages that need to be created into one _bulk_docs update, and send that 100ms later.
Bonus points for still using the PUT method if there is only one message, so the CouchDB logs look nice.