{"action":"created","issue":{"url":"https://api.github.com/repos/ericmj/mongodb/issues/55","repository_url":"https://api.github.com/repos/ericmj/mongodb","labels_url":"https://api.github.com/repos/ericmj/mongodb/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/ericmj/mongodb/issues/55/comments","events_url":"https://api.github.com/repos/ericmj/mongodb/issues/55/events","html_url":"https://github.com/ericmj/mongodb/issues/55","id":159439226,"number":55,"title":"Monitoring tailable cursor events","user":{"login":"cjhowe","id":9828236,"avatar_url":"https://avatars.githubusercontent.com/u/9828236?v=3","gravatar_id":"","url":"https://api.github.com/users/cjhowe","html_url":"https://github.com/cjhowe","followers_url":"https://api.github.com/users/cjhowe/followers","following_url":"https://api.github.com/users/cjhowe/following{/other_user}","gists_url":"https://api.github.com/users/cjhowe/gists{/gist_id}","starred_url":"https://api.github.com/users/cjhowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjhowe/subscriptions","organizations_url":"https://api.github.com/users/cjhowe/orgs","repos_url":"https://api.github.com/users/cjhowe/repos","events_url":"https://api.github.com/users/cjhowe/events{/privacy}","received_events_url":"https://api.github.com/users/cjhowe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-09T15:36:32Z","updated_at":"2016-06-09T16:01:22Z","closed_at":null,"body":"So, if you create a tailable cursor, you can use the cursor as a Stream; however, the functionality that a tailable cursor adds (allowing you to see newly inserted documents for a cursor as they are added) doesn't really support streams. We'd need some way to have a supervised process that sends new results to another process as they are available. Here's the code for how RethinkDB handles this:\r\n\r\nhttps://github.com/hamiltop/rethinkdb_changefeed"},"comment":{"url":"https://api.github.com/repos/ericmj/mongodb/issues/comments/224942160","html_url":"https://github.com/ericmj/mongodb/issues/55#issuecomment-224942160","issue_url":"https://api.github.com/repos/ericmj/mongodb/issues/55","id":224942160,"user":{"login":"ericmj","id":316890,"avatar_url":"https://avatars.githubusercontent.com/u/316890?v=3","gravatar_id":"","url":"https://api.github.com/users/ericmj","html_url":"https://github.com/ericmj","followers_url":"https://api.github.com/users/ericmj/followers","following_url":"https://api.github.com/users/ericmj/following{/other_user}","gists_url":"https://api.github.com/users/ericmj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmj/subscriptions","organizations_url":"https://api.github.com/users/ericmj/orgs","repos_url":"https://api.github.com/users/ericmj/repos","events_url":"https://api.github.com/users/ericmj/events{/privacy}","received_events_url":"https://api.github.com/users/ericmj/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T16:01:22Z","updated_at":"2016-06-09T16:01:22Z","body":"Not sure what you mean. Why can't you handle this in the process that is running the stream?"}}
{"actor":{"display_login":"ericmj"}}