<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've been hacking on a rabbit_riak_queue.erl implementation today and I'm starting to get into storing messages in Riak.<div><br></div><div>I think in the recent blog post (that was excellent info, BTW) you mentioned some things to keep in mind, namely that the message body shouldn't be stored more than once, given it could go to multiple queues.</div><div><br></div><div>Can I use the guid property of #basic_message{} for this or would I still get unnecessary duplication (I guess I'm wondering if the same message content can have different guids for sending to multiple queues)?</div><div><br></div><div>Or should I hash the message content and use that as the key?</div><div><br></div><div>Or should I use some other method?<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Palatino; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"><br class="Apple-interchange-newline">Thanks!</font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier">Jon Brisbin</font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"><br></font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"> Web: <a href="http://jbrisbin.com/">http://jbrisbin.com/</a></font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"> Twitter: @j_brisbin</font></div><div style="font-family: Helvetica; font-size: 12px; "><font class="Apple-style-span" face="Courier"> Skype: jon.brisbin</font></div></span>
</div>
<br></div></body></html>