O'Reilly logo

Storm Real-time Processing Cookbook by Quinton Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the multilang protocol in Qt

The multilang protocol is extremely trivial in nature. It consists of JSON-based exchanges over STDIN and STDOUT. All exchanges are delimited via a single line containing the word end, which isn't JSON-encoded. In this recipe, we will only implement the bolt adaptor; however, adding the spout functionality is trivial from this base.

The bolt can receive new tuple messages that contain an ID, some component metadata, and the actual tuple as a JSON value containing a JSON array of values. The bolt then sends ack, fail, emit, or log messages back via STDOUT.

Qt is an open source C++ framework, originally developed by Trolltech as a cross-platform GUI framework. Qt has enjoyed impressive longevity in the open ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required