MongoDB를 이용한 Pub/Sub 통신

2021. 2. 22. 17:07서버 프로그래밍

원래 몽고디비를 쓰고 있는 시스템에 간단한 pub/sub 통신을 추가하기 위해 몽고디비의 pub/sub을 이용해보기로 했다.

www.mongodb.com/blog/post/pubsub-with-mongodb

 

Pub/sub with MongoDB | MongoDB Blog

Applying Maslow’s Hierarchy of Needs to Documentation In his groundbreaking 1943 paper, psychologist Abraham Maslow theorized that all humans are motivated by five categories of needs: physiological, safety, love and belongingness, esteem, and self-actua

www.mongodb.com

docs.mongodb.com/manual/core/capped-collections/

 

Capped Collections — MongoDB Manual

Insertion Order Capped collections guarantee preservation of the insertion order. As a result, queries do not need an index to return documents in insertion order. Without this indexing overhead, capped collections can support higher insertion throughput.

docs.mongodb.com

github.com/slezica/pymongo-pubsub-example/blob/master/demo.py

 

slezica/pymongo-pubsub-example

Short PUB/SUB pattern implementation backed by MongoDB - slezica/pymongo-pubsub-example

github.com

pymongo.readthedocs.io/en/stable/api/pymongo/database.html

 

database – Database level operations — PyMongo 3.11.2 documentation

database – Database level operations Database level operations. pymongo.auth.MECHANISMS = frozenset({'MONGODB-X509', 'MONGODB-CR', 'DEFAULT', 'SCRAM-SHA-1', 'MONGODB-AWS', 'SCRAM-SHA-256', 'PLAIN', 'GSSAPI'}) The authentication mechanisms supported by Py

pymongo.readthedocs.io

dba.stackexchange.com/questions/86736/mongodb-does-not-seem-to-respect-capped-size-limit

 

Mongodb: Does not seem to respect capped size limit

Running mongodb on win2012 Mongo db version v2.6.4 Our collection is created with this param: capped:true, size:500000000000 // 500 gb But the data dir, that only holds this one collection, ...

dba.stackexchange.com