Documentation

Proxima Platform Documentation #

The Proxima Platform is an abstraction layer for data storage, retrieval, and manipulation across heterogeneous storage backends (both batch and streaming) and data processing frameworks.

Chapters #

  • Data model — entities, attributes, proxy attributes, StreamElement, and stream-table duality
  • Serialization schemes — value serializers for primitives, Protobuf, Avro, Confluent Schema Registry, and custom formats
  • Storages — storage types, attribute family mappings, access flags, filters, partitioners, and watermarks
  • Supported IO modules — URI formats and configuration reference for all built-in storage connectors
  • Replication — eventual consistency via ReplicationController and multi-cluster replication
  • Transformations — deriving new attributes from incoming updates
  • Code generator — compile-time type-safe Java Model generation (Maven, Gradle, CLI)
  • Data operators — accessing data via Direct, Apache Beam, or Apache Flink
  • RPC server & client — gRPC ingestion and retrieval gateway for Java and non-JVM clients
  • ACID transactions — serializable transactions across attributes and storages
  • Tools & console — interactive Groovy REPL and batch/streaming script execution

Initializing a Repository #

Every Proxima application starts with a configuration file written in HOCON syntax describing entities, attribute families, transformations, and optional replications or transaction managers. Note that Proxima shades Lightbend Config under the cz.o2.proxima.typesafe.config package to prevent classpath conflicts with frameworks such as Apache Flink or Spark.

import cz.o2.proxima.core.repository.Repository;
import cz.o2.proxima.typesafe.config.Config;
import cz.o2.proxima.typesafe.config.ConfigFactory;

// Load reference.conf and application.conf from classpath
Config config = ConfigFactory.load().resolve();

// Create a validated production Repository
Repository repository = Repository.of(config);

Validation Modes and Testing #

In production (Repository.of(config)), Proxima runs all validations (Validate.ALL):

Validation FlagDescription
FAMILIESEnsures every attribute has an associated primary attribute family.
ACCESSESValidates that configured access tags match the capabilities of the underlying IO accessor.
SERIALIZERSValidates that every attribute’s scheme resolves to a usable ValueSerializer.
ALLEnables FAMILIES, ACCESSES, and SERIALIZERS (default).
NONEDisables all validations (useful for partial configs or schema inspection tools).

You can also restrict validations in HOCON using the top-level validations list (e.g., validations: [ "ACCESSES", "SERIALIZERS" ]), or construct a test repository with Repository.ofTest:

// Disables static repository caching and skips FAMILIES validation by default
Repository testRepo = Repository.ofTest(
    ConfigFactory.load("test-reference.conf").resolve());

// Or explicitly choose validations
Repository customRepo = Repository.ofTest(config, Repository.Validate.ALL);

When passing a repository into distributed frameworks (such as Apache Beam DoFns or Apache Flink SourceFunctions), convert it into a serializable RepositoryFactory via repository.asFactory().

The Repository then serves as the entry point to obtain one or more data operators to read, write, and transform your data.