Proxima Platform

Proxima Platform #

Proxima Platform is an open-source, cloud-agnostic data ingestion, storage, manipulation, and retrieval abstraction layer built around stream-table duality.

Instead of coupling business logic directly to specific storage drivers (Kafka, Cassandra, HBase, Bigtable, S3, GCS, HDFS, JDBC, Pub/Sub, Elasticsearch) or execution engines (single-JVM services, Apache Beam, Apache Flink), Proxima lets you declare your data model and storage topology in a single HOCON configuration file and access your data uniformly through strongly-typed Java APIs, distributed processing pipelines, gRPC services, or an interactive Groovy console.

Key Capabilities #

  • Unified Entity-Attribute Data Model: Model domain data as entities with scalar, wildcard (map/list/relation), and virtual proxy attributes serialized via pluggable schemes (proto:, json-proto:, avro:, schema-registry:, primitives, or custom serializers).
  • Storage Abstraction & Eventual Consistency: Map attribute families onto commit logs, random-access stores, and batch blob stores. The built-in ReplicationController propagates writes asynchronously from primary commit logs to all replicas and runs derived transformations.
  • Compile-Time Type Safety: Generate strongly-typed Java Model classes directly from your HOCON configuration via Maven, Gradle, or CLI.
  • Multiple Data Operators: Read and write the same data model from embedded Java services (DirectDataOperator), distributed batch/streaming pipelines (BeamDataOperator on Direct/Flink/Spark/Dataflow runners), or native Apache Flink jobs (proxima-flink-core).
  • Polyglot gRPC Gateway: Expose random-access reads, prefix scans, bulk/streaming ingestion, and transactions to non-JVM clients (Python, Go, Node.js, etc.) through IngestServer and IngestClient.
  • Serializable ACID Transactions: Coordinate global serializable transactions across attributes and storages via the built-in transaction manager.
  • Interactive Analytics Console: Explore live streams, batch snapshots, and random-access stores interactively or via scripts using the Beam-backed Groovy console (proxima-tools).

Quick Start #

Add proxima-core and a data operator (e.g., proxima-direct-core) plus any required IO and scheme modules to your build:

dependencies {
  implementation "cz.o2.proxima:proxima-core:0.15.0"
  implementation "cz.o2.proxima:proxima-direct-core:0.15.0"
  implementation "cz.o2.proxima:proxima-direct-io-kafka:0.15.0"
  implementation "cz.o2.proxima:proxima-scheme-proto:0.15.0"
}

Define your entities and attribute families in src/main/resources/application.conf:

entities {
  user {
    attributes {
      details { scheme: "string" }
    }
  }
}

attributeFamilies {
  user-commit-log {
    entity: user
    attributes: [ "*" ]
    storage: "kafka://localhost:9092/user-events"
    type: primary
    access: commit-log
  }
}

Initialize a Repository and interact with your data through DirectDataOperator:

Config config = ConfigFactory.load().resolve();
Repository repo = Repository.of(config);
DirectDataOperator direct = repo.getOrCreateOperator(DirectDataOperator.class);

EntityDescriptor user = repo.getEntity("user");
AttributeDescriptor<String> details = user.getAttribute("details");

OnlineAttributeWriter writer = direct.getWriter(details).orElseThrow();
StreamElement upsert = StreamElement.upsert(
    user,
    details,
    UUID.randomUUID().toString(),
    "user-1",
    details.getName(),
    System.currentTimeMillis(),
    details.getValueSerializer().serialize("Alice"));

writer.write(upsert, (success, error) -> {
  if (!success) {
    throw new RuntimeException("Write failed", error);
  }
});

Documentation Guide #

Start reading the Proxima Book or jump directly to a topic:

  • Data model — entities, scalar/wildcard/proxy attributes, StreamElement, and stream-table duality
  • Serialization schemes — built-in primitives, Protobuf, JSON-Proto, Avro, Confluent Schema Registry, and custom schemes
  • Storages — commit logs, random-access stores, batch stores, access tags, filters, partitioners, and watermarks
  • Supported IO modules — Kafka, Pub/Sub, Cassandra, HBase, Bigtable, GCS, S3, HDFS/Hadoop, Parquet, Elasticsearch, JDBC, HTTP
  • Replication — ReplicationController, replica consumers, and cross-cluster replication
  • Transformations — element-wise and contextual transformations
  • Code generator — generating type-safe Model classes with Maven, Gradle, or CLI
  • Data operators — Direct, Apache Beam, and Apache Flink
  • RPC server & client — gRPC IngestService, RetrieveService, IngestClient, and Python usage
  • ACID transactions — serializable transactions, configuration, and workflow
  • Tools & console — interactive Groovy console and script execution