Book Image

Practical Real-time Data Processing and Analytics

Book Image

Practical Real-time Data Processing and Analytics

Overview of this book

With the rise of Big Data, there is an increasing need to process large amounts of data continuously, with a shorter turnaround time. Real-time data processing involves continuous input, processing and output of data, with the condition that the time required for processing is as short as possible. This book covers the majority of the existing and evolving open source technology stack for real-time processing and analytics. You will get to know about all the real-time solution aspects, from the source to the presentation to persistence. Through this practical book, you’ll be equipped with a clear understanding of how to solve challenges on your own. We’ll cover topics such as how to set up components, basic executions, integrations, advanced use cases, alerts, and monitoring. You’ll be exposed to the popular tools used in real-time processing today such as Apache Spark, Apache Flink, and Storm. Finally, you will put your knowledge to practical use by implementing all of the techniques in the form of a practical, real-world use case. By the end of this book, you will have a solid understanding of all the aspects of real-time data processing and analytics, and will know how to deploy the solutions in production environments in the best possible manner.
Table of Contents (20 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Gelly


Gelly is a graph API for Flink. In Gelly, graphs can be created, transformed, and modified. Gelly API provides all the basic and advanced functions of graph analytics. You can also select the different graph algorithms.

Gelly API

Gelly provides the API with the ability to take actions on graphs. We will discuss the API's in the follwing section.

Graph representation

A graph is represented by a DataSet of Vertices and Edges. Graph nodes are represented by Vertex type. A vertex is defined by unique ID and value. A NullValue can be defined for a Vertex with no value. The following are the methods used for creating vertex in a graph:

Vertex<String, Long> v = new Vertex<String, Long>("vertex 1", 8L);
Vertex<String, NullValue> v = new Vertex<String, NullValue>("vertex 1", NullValue.getInstance());

Graph edges are represented by edge type. An edge is defined by source ID (ID of source vertex), target ID (ID of target vertex), and optional value. The source and target IDs...