title: Simple Akka mailbox configuration to discard overflowing messages
body: <p>I have a system with 2 actors, which share the same configuration. This desired configuration is: "the mailbox should have a max capacity of 1 message, and any overflowing message should be discarded".</p>
  
  <p>What is the easiest way to set this up?</p>
  
  <p>I have tried putting the following in (Play Framework's) <code>application.conf</code>:</p>
  
  <pre><code>akka.actor.default-mailbox {
      mailbox-type = "akka.dispatch.BoundedMailbox"
      mailbox-capacity = 1
  }
  </code></pre>
  
  <p>But it doesn't work: the actor's mailbox still piles up messages when busy, and processes each of them when available. Either the actor does not give a damn about the contents of <code>application.conf</code>, or the above config is incorrect.</p>
  
  <p>Any ideas?</p>