-
Notifications
You must be signed in to change notification settings - Fork 0
Juggernaut
From the Juggernaut page (https://github.com/maccman/juggernaut), Juggernaut is a "Realtime server push with node.js, WebSockets and Comet". For practical purposes this means that Juggernaut provides a way to stream data to web applications even if the browser does not support WebSockets. Juggernaut is a server which runs in node.js and listens for messages from a Redis queue. It then forwards those messages to any subscribed clients.
It supports the following protocols:
- WebSocket
- Adobe Flash Socket
- ActiveX HTMLFile (IE)
- Server-Sent Events (Opera)
- XHR with multipart encoding
- XHR with long-polling
The most common use case for Juggernaut with Logstash is to create a "tail -f" style app for the web. The configuration is very similar to the configuration for Redis (it actually is much of the same code as the Redis output, but formats the messages in a way that Juggernaut can handle). Here is an example
output { juggernaut { host => "localhost" port => "6379" channels => ["logstash"] } }
This will push messages onto the Juggernaut channel "logstash".
Setting up Juggernaut is fairly simple as well:
- Install node.js
- Install redis
- Install npm
- npm install -g juggernaut
- start Redis: redis-server
- start Juggernaut: juggernaut
Much more information on configuring your application is available here: https://github.com/maccman/juggernaut