MongoDB มีสิ่งที่เรียกว่าcapped collectionsและtailable cursorsช่วยให้ MongoDB สามารถส่งข้อมูลไปยังผู้ฟังได้
A capped collectionเป็นหลักชุดที่มีขนาดคงที่และอนุญาตให้ใส่เท่านั้น นี่คือสิ่งที่ดูเหมือนว่าจะสร้าง:
db.createCollection("messages", { capped: true, size: 100000000 })
ทับทิม
coll = db.collection('my_collection')
cursor = Mongo::Cursor.new(coll, :tailable => true)
loop do
  if doc = cursor.next_document
    puts doc
  else
    sleep 1
  end
end
PHP
$mongo = new Mongo();
$db = $mongo->selectDB('my_db')
$coll = $db->selectCollection('my_collection');
$cursor = $coll->find()->tailable(true);
while (true) {
    if ($cursor->hasNext()) {
        $doc = $cursor->getNext();
        print_r($doc);
    } else {
        sleep(1);
    }
}
Python (โดยRobert Stewart)
from pymongo import Connection
import time
db = Connection().my_db
coll = db.my_collection
cursor = coll.find(tailable=True)
while cursor.alive:
    try:
        doc = cursor.next()
        print doc
    except StopIteration:
        time.sleep(1)
Perl (โดยสูงสุด )
use 5.010;
use strict;
use warnings;
use MongoDB;
my $db = MongoDB::Connection->new;
my $coll = $db->my_db->my_collection;
my $cursor = $coll->find->tailable(1);
for (;;)
{
    if (defined(my $doc = $cursor->next))
    {
        say $doc;
    }
    else
    {
        sleep 1;
    }
}
แหล่งข้อมูลเพิ่มเติม:
Ruby / Node.js บทแนะนำที่จะนำคุณไปสู่การสร้างแอปพลิเคชันที่รับฟังการแทรกในคอลเลกชันที่ปกคลุมด้วย MongoDB
บทความที่พูดถึงเคอร์เซอร์ที่ใช้งานได้ในรายละเอียดเพิ่มเติม
ตัวอย่าง PHP, Ruby, Python และ Perl ของการใช้เคอร์เซอร์ที่มีอยู่