RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Ripple is derived from Firebolt Reference implementation, it is a Rust-based Application gateway that provides support for System, Native, and 3rd party applications for Video-based devices. Ripple will provide a Firebolt Gateway which will be used by Distributors and App Developers to interact with the Application platform to discover, launch, and manage video streaming applications.
Standardization: Ripple provides a secure and standardized Firebolt API gateway for 3rd party applications to communicate with the underlying platform.
Certification: Ripple versions are certified using a stringent set of Firebolt Certification suites and it can be tested across multiple platforms. This offers increased quality control which can be scaled across devices and operators.
Abstraction: Ripple abstracts the applications from the underlying platform such that the platform can be upgraded or changed altogether.
Extensible: Ripple can extend to multiple device types and platforms through Extensions more about it here. // insert link
Configurable: Ripple uses Manifests, RFC(thunder), Contracts, and best of all Extensions to offer configurations for Operators and App developers.
Secure: Ripple uses Firebolt capabilities and defines multiple layers of checks like Supported, Availablity, Permitted, and User Grants to ensure Consumer Privacy and App Security.
Portable: Ripple is small in size and can be easily bundled into the device. App Platform developers can build Extensions by fulfilling the contracts defined in the Ripple SDK.
Video Accelerator device uses Navigator UI to offer a Video Platform experience on these devices.
Video Accelerator UI version 4 will use Ripple to offer support for Firebolt applications which are part of the catalog.
Ripple can be found in Github Repo https://github.com/rdkcentral/Ripple
The preferred developer environment would include
More instructions here
Pre-commit is the preferred tool used for setting up the git hook for local development.
Ripple uses Clippy for local git hooks to do format and static analysis on the code before it is committed. So always run precommit install
on a new workspace.
Detailed instructions are provided here
Rust was chosen as the programming language for Ripple for mainly below reasons
Rust in itself offers many idiomatic principles which makes it unique
Match
pattern syntax which places Arms for a given value. It can use regular datatypes(str, u32, bool), Result, and Options making it more readable for even complex conditions.Extensions in Ripple offer extensibility and faster migration. Below are some of the good use cases where an extension is necessary
Each of these use cases expects something more from each platform when we try to scale across other global partners.
The foundational code required to build extensions is provided by the Ripple SDK to easily help App Platform developers to easily build and test Extensions.
Extensions offer that extra leverage to easily migrate and offer support for these platforms as they try to fully adopt the Firebolt Architecture.
A contract is a concrete unit of work expected to be fulfilled by a Ripple extension.
Each contract maps to a Request, Response, or Event structure or enumeration defined mostly by Firebolt Openrpc Schema.
An Extension implements a request processor based on the Request structure thereby providing fulfillment of the given contract.
Ripple Main uses the contract definition in the Extn manifest to create a map for Inter Extension Communication.
Ripple SDK defines the contracts and deeply integrates them with the IEC(Inter Extension Communication) with the ExtnClient
.
Standardization: Similar to Ripple offering Firebolt capabilities contracts offer definition and control over the extensions. This provides a layer of abstraction that can be configured by each operator.
Below are some examples
Authorization: The extension manifest has a fulfills
field that lists the contracts expected to be fulfilled by the extension. Extensions do not even register a processor for which a contract is not expected to be fulfilled by the manifest.
Permissions: Manifests also has a uses
field for each extension which decides the permissions for each extension in terms of calling other contracts. Using Contracts thus provides added layers of security for a given App Platform developer to build a complex and secure extension-based ecosystem.
Mapping: Each extension contains a list of contracts that it is expected to fulfill these are clearly defined in the Extension Manifests. Main uses this mapping to redirect the incoming Extn requests to the right extension so they can be correctly processed.
Abstraction: Using Extension Manifests operators can swap processors easily for eg let's say we have a backend service A which is getting deprecated and service B is its replacement. The operator can create a new extension while using the same contract request and response structure defined in the SDK and switch easily to service B without impacting other sections of the platform.
Below is the High-Level architecture defined for Ripple used by the Video Accelerator device.
Ripple bootstraps three configuration json files during startup these files are referred to as manifests.
There are three types of manifests in Ripple
This manifest contains the below configurations
Sample Firebolt-device-manifest can be found here
List of applications that are launchable by Ripple. This app library can be empty if the launcher app wants to handle the catalog expectation for this implementation is to use Lifecyclemanagement API(s) provided by the Ripple RPC api(s) defined here.
Sample App library can be found here
Extension Manifest defines the list of Extensions needed to be loaded by Ripple to fulfill its contracts. A given Extension manifest contains
Sample Extension manifest can be found here
A Firebolt application needs to comply with the Application Lifecycle policies defined by the schema.
TBA