bitcapybara/budmq

add cache for published messages

Opened this issue · 1 comments

cache the messages in broker, used to send consumer instantly

fixed size hashmap

  • retain oldest messages in fiexed size
  • add_message: insert into map only if map not full
  • get_message: if message not found, load newer message from storage until map is full