use replica to store capped collection in mongodb

154 Views Asked by At

Is it possible to create a capped collection in a read only mode at a single replica in MongoDB? There is a main database with replica set and I need to use a capped collection with a AWS queue to listen for new insertions. In order to avoid possible listening overloads in the main database, I was wonder whether is possible to create a capped in one of the replicas.

1

There are 1 best solutions below

1
On

This is not possible as at now. Also keep in mind that replication's main purpose it to have similar data through out the replica set.