It&#x27;s possible to use stacks to &#x27;cache&#x27; writes in scenarios like this.<p>Writes to the same object go in the same stack, iterate over stacks, pop the first item, write it, clear the stack.<p>It works miracles for ephemeral data like wikipedia edits.<p>If you have extremely spikey load on servers, stacks are also a great replacement for queues, admit that during the deluge some portion of queries will timeout and go unanswered, instead of trying to process queries that are likely to timeout, simply process the first query on the stack and don&#x27;t waste time processing the ones bound to fail.