Skip to content

RedisGears Glossary

Redis

Redis is an ...

Quote

... open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Redis is also...

An acronym for RE mote DI ctionary S erver that's pronounced "red" like the color, then "iss".

Further reference

More about Redis:

Module

A Redis module is a shared library that can be loaded by the Redis server during runtime. Useful for extending Redis with new data types and commands.

Further reference

You can learn more about Redis modules at:

Client

A Redis client is a piece of software that can write and read the Redis Protocol .

Further reference

For a wide choice of clients refer to:

Command

An instruction sent to the Redis server by a client. Commands are either provided by the core Redis engine or modules.

Further reference

Refer to these pages for more information about:

Data

Zeros and ones that make up for everything. Usually stored in Redis, but can also be obtained from other sources.

Data Flow

A logical operation that processes input data in some form and may consist of several steps.

Data Type

Redis stores data in structures that implement different types and the API to manipulate their contents. Types can be added by modules, and the core Redis server provides support for Strings, Hashes, Lists, Sets, Sorted Sets and Streams.

Further reference

Refer to these pages for more information about Redis' core types:

Event

An event is a signal that the RedisGears engine can intercept and react to by triggering the execution of an event-driven processing function.

Engine

A RedisGears component that is in charge of the execution of functions. The engine executes locally on each of the cluster's shards.

Coordinator

A RedisGears component that handles cluster communication and data shuffling.

Cluster

A cluster is a deployment option for Redis, in which the database is partitioned across multiple shards in a shared-nothing fashion. Partitioning is done by hashing key names to slots.

Further reference

More about the Redis cluster:

Node

A node is a physical (or virtualized) server in a cluster. Each node can be used for hosting one or more shards.

Shard

A shard is Redis server process that is a part of a cluster. A shard runs on one of the cluster's nodes and manages an exclusive subset of slots of the Redis keyspace. Every slot is managed by a single master shard. Master shards accepts writes and can optionally be configured with replicas for scaling read throughput and availability purposes.

API

RedisGears functions can be programmed via applicative interfaces. The APIs are available for the Python and C programming languages

Function

A RedisGears function is a formal description of the processing steps in the data flow.

A function always:

  1. Starts with a reader
  2. Operates on zero or more records
  3. Consists of zero or more operations (steps)
  4. Ends with an action
  5. Returns zero or more results
Further reference

Refer to the Functions page for a complete reference about functions.

Reader

A RedisGears reader is the mandatory first step of any function, and every function has exactly one reader. A reader reads data and generates input records from it. The input records are consumed by the function.

Further reference

Refer to the Readers page for a complete reference about the different readers' types and their operation.

Record

A RedisGears record is the basic abstraction that represents data in the function's flow. Input data records are passed from one step to the next and are finally returned as the result.

Operation

An operation is the building block of RedisGears functions. Different operation types can be used to achieve a variety of results to meet various data processing needs.

Further reference

Refer to the Operations page for a complete reference about the different operation types and their purpose.

Step

A RedisGears function flow step is a term that's almost always interchangeable with "operation".

Action

An action is special type of operation that is always the function's final step. There are two types of actions:

  1. Run : runs the function immediately in batch
  2. Register : registers the function's execution to be triggered by an event
Further reference

Actions are described at the Functions page .

Result

The result of a function is the output records its execution.

Further reference

Results are described at the Functions page .

Execution

Every time that a RedisGears function is executed it generates data that is referred to as its execution . Every execution is uniquely identified by an ID, and consists of the results, errors and more information from the function's execution.

Further reference

Executions are described at the Functions page .

Registration

A RedisGears registration represents a function that was sent to the engine and will be triggered by events.

Further reference

Registrations are described at the Functions page .

Initiator

In the context of a clustered environment the initiator is the shard's engine in which a function is originally executed.

Worker

In the context of a clustered environment a worker is any shard that isn't the initiator.

Batch Processing

A RedisGears function is executed as a batch when it is run immediately on existing data.

Batch execution is always asynchronous. By default, the client executing the function is blocked until execution is finished. Once finished, the client is unblocked and is returned with any results or errors from the function.

Event Processing

A RedisGears function is executed as an event when it is registered to be triggered by events.

MapReduce

A framework for performing distributed data processing.

Recipe

A RedisGears recipe is a collection of functions any dependencies they may have, which implements a high-level functional purpose. It can be mentally substituted with "project".