Text
Streaming Twitter into MongoDB
curl http://stream.twitter.com/1/statuses/sample.json -u<user>:<pass> | mongoimport -c twitter_live
One thing that you can do with mongo is have 1 streaming master and 1 read/write master
server A:
./mongod —master —dbpath /tmp/a
server B
./mongod —dbpath /tmp/b —master —slave —source localhost:27017 —port 9999
You can then pipe the stream into server a, and it will only process the live stream.
Server B will replicate all changes. You can also write to it, query on it, etc… This way you can do operations that block writing on server B, but server A will never backlog.
-
trace-cell-phone-number-x reblogged this from eliothorowitz
-
herniationbo liked this
-
stairliftswaterford reblogged this from eliothorowitz
-
jokestersnor liked this
-
celebsdrunkshoes liked this
-
lemongrasska liked this
-
buy-sarms-uk reblogged this from eliothorowitz
-
complaisantl liked this
-
antibioticco liked this
-
latexcutelesbian liked this
-
hentaisexvoyeur liked this
-
oldnyoungsuperdating liked this
-
garmin-zumo-550 reblogged this from eliothorowitz
-
buyp90xcheap liked this
-
pozycjonowanie---strony liked this
-
france-presse liked this
-
france-press liked this
-
mmm-delicieux liked this
-
actus-news liked this
-
dfdeshom reblogged this from eliothorowitz
-
infynyxx liked this
-
eliothorowitz posted this