How the Map Works
Data Streaming: Node.js custom application. This was written using a few libraries to speed things along. Primus was a primary component. It’s named after some Transformers thing, I guess. I prefer to believe it was named after the band.. It handles all the WebSockets to/from the client. There is an http client request that periodically grabs data from Splunk, makes sure it’s ok before dropping it in mongoDb. Is mongoDb really necessary? Not at all.. I just wanted to play with it, so I made it the primary queuing point for data to be sent to clients.
Data Visualization: Again, lots of libraries in use here. The map is a service called MapBox. It’s free for kids like me with no traffic and seemed to be the nicest thing going. Being based on Leaflet was an added perk since it’s well supported in the community. Vega, based on DS3, provided the framework for the spectacular bar chart at the bottom. The supporting detail tab is a quick web socket call back to node.js/mongodb for the most recent list of whatever port was requested.