Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache every tweet in a capped MongoDB collection; when a message arri…
…ves via websocket with bounding box coordinates, query the last 10 tweets within those coordinates and send them down the socket; when the map has settled, the client removes any tweets not within the viewport, and declines to add any that are already in the collection
- Loading branch information
1 parent
661ddea
commit f9fe681
Showing
4 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters