Supported IO Modules #
Proxima decouples storage configuration from storage drivers via ServiceLoader-discovered
DataAccessorFactory plugins. To enable a storage backend, add its Maven/Gradle dependency to your application classpath and configure an attribute family with the matching URI scheme.
Overview Matrix #
| Backend | Gradle/Maven Artifact | URI Scheme(s) | Commit Log | Random Access | Batch Read | Cached View | Writer |
|---|---|---|---|---|---|---|---|
| Apache Kafka | proxima-direct-io-kafka | kafka:// | Yes | — | — | Yes | Online |
| Google Cloud Pub/Sub | proxima-direct-io-pubsub | gps://, gps-bulk:// | Yes | — | — | — | Online / Bulk |
| Apache Cassandra | proxima-direct-io-cassandra | cassandra:// | — | Yes | Yes (snapshot) | — | Online |
| Apache HBase | proxima-direct-io-hbase | hbase:// | — | Yes | Yes (snapshot) | — | Online |
| Google Cloud Bigtable | proxima-direct-io-bigtable | bigtable:// | — | Yes | Yes (snapshot) | — | Online |
| Google Cloud Storage | proxima-direct-io-gcloud-storage | gs:// | — | — | Yes (updates) | — | Bulk |
| Amazon S3 / MinIO | proxima-direct-io-s3 | s3:// | — | — | Yes (updates) | — | Bulk |
| Hadoop / HDFS | proxima-direct-io-hadoop / proxima-direct-io-hdfs | hdfs://, hadoop:<uri> | — | — | Yes (updates) | — | Bulk |
| Elasticsearch | proxima-direct-io-elasticsearch | elastic://, elasticsearch:// | — | — | — | — | Online (write-only) |
| JDBC (SQL) | proxima-direct-io-jdbc | jdbc://<jdbc-url> | — | Yes | Yes | — | Online |
| HTTP / WebSocket / OpenTSDB | proxima-direct-io-http | http(s)://, ws(s)://, opentsdb:// | ws(s) | — | — | — | Online (http(s), opentsdb) |
| Stdout (Debug) | proxima-direct-core | stdout:// | — | — | — | — | Online (write-only) |
| In-Memory (Testing) | proxima-direct-core (tests classifier) | inmem://, inmem-bulk:// | Yes | Yes | Yes | Yes | Online / Bulk |
Streaming Commit Logs #
Apache Kafka #
- Module:
cz.o2.proxima:proxima-direct-io-kafka - URI Format:
- Single topic:
kafka://<broker1:9092,broker2:9092>/<topic-name> - Regex subscription (must be
read-only):kafka://<brokers>/?topicPattern=<regex>
- Single topic:
- Capabilities:
commit-log,state-commit-log,cached-view(on log-compacted topics),OnlineAttributeWriter.
Key Configuration Options:
| Property | Default | Description |
|---|---|---|
kafka.* | — | Passed directly to Kafka Producer/Consumer Properties (e.g., kafka.security.protocol, kafka.compression.type, kafka.acks). |
partitioner | KeyPartitioner | Class implementing Partitioner. |
serializer-class | KafkaStreamElementSerializer | Custom ElementSerializer for non-Proxima Kafka topics (built-ins include ValueAsBytesSerializer and ValueAsStringSerializer). |
poll.interval | 100 | Consumer poll() interval in ms. |
bytes-per-sec-max | Long.MAX_VALUE | Optional consumer throughput throttle in bytes/sec. |
commit.auto-interval-ms | Long.MAX_VALUE | Periodic auto-commit interval in ms. |
assignment-timeout-ms | 10000 | Timeout waiting for consumer group partition assignment. |
watermark.* | — | Custom watermark estimator and idle policy configuration. |
event-commit-log {
entity: event
attributes: [ "*" ]
storage: "kafka://kafka1:9092,kafka2:9092/proxima_events"
type: primary
access: commit-log
kafka.security.protocol: "PLAINTEXT"
kafka.acks: "all"
poll.interval: 100
}
Google Cloud Pub/Sub #
- Module:
cz.o2.proxima:proxima-direct-io-pubsub(and native Beam connectorcz.o2.proxima:proxima-beam-io-pubsub) - URI Format:
- Standard online commit log:
gps://<gcp-project-id>/<topic-name> - Bulk batched mode:
gps-bulk://<gcp-project-id>/<topic-name>
- Standard online commit log:
- Capabilities:
commit-log,OnlineAttributeWriter(gps://),BulkAttributeWriter(gps-bulk://). - Limitations: Pub/Sub does not support seeking to arbitrary historical offsets or
stopAtCurrentbounded consumption.
Key Configuration Options:
| Property | Default | Description |
|---|---|---|
pubsub.subscription.auto-create | true | Automatically create a Pub/Sub subscription for each observer name. |
pubsub.subscription.ack-deadline | 600 | Subscription ack deadline in seconds. |
pubsub.deadline-max-ms | 600000 | Maximum consumer ack extension deadline in ms. |
event-pubsub-log {
entity: event
attributes: [ "*" ]
storage: "gps://my-gcp-project/proxima-events"
type: primary
access: commit-log
pubsub {
subscription {
auto-create = true
ack-deadline = 600
}
deadline-max-ms = 60000
}
}
Random-Access & Wide-Column Stores #
Apache Cassandra #
- Module:
cz.o2.proxima:proxima-direct-io-cassandra - URI Format:
cassandra://<seed1:9042,seed2:9042>/<keyspace>.<table>?primary=<pkCol>[&secondary=<ckCol>&data=<valCol>&reversed=true] - Capabilities:
random-access,batch-snapshot,list-primary-key,OnlineAttributeWriter.
Key Configuration Options:
| Property | Default | Description |
|---|---|---|
cqlFactory | DefaultCqlFactory | Custom CqlFactory mapping StreamElements to CQL statements. |
converter | StringConverter.getDefault() | StringConverter converting wildcard suffixes to/from native CQL clustering column types (e.g., DateToLongConverter). |
consistency-level | QUORUM | Cassandra ConsistencyLevel for reads and writes. |
datacenter | datacenter1 | Local datacenter name for the DataStax 4.x driver. |
scanParallelism | max(2, cores) | Parallel token-range splits for batch-snapshot scans (must be >= 2). |
username / password | — | Optional Cassandra credentials. |
user-random-access {
entity: user
attributes: [ "details", "preferences" ]
storage: "cassandra://cassandra:9042/proxima.users?primary=user"
type: replica
access: [ random-access, batch-snapshot ]
consistency-level: LOCAL_QUORUM
datacenter: dc1
}
Apache HBase #
- Module:
cz.o2.proxima:proxima-direct-io-hbase - URI Format:
hbase://<zookeeper-quorum>/<table>?family=<column-family>[&v=2] - Capabilities:
random-access,batch-snapshot,list-primary-key,OnlineAttributeWriter. - Serialization Version (
v):v=1(default): Stores raw attribute bytes directly in the HBase cell.v=2: Wraps cell data in a Protobuf envelope preserving metadata such assequentialId.v=2is required when using ACID transactions on HBase.
user-event-history {
entity: user
attributes: [ "event.*" ]
storage: "hbase://zk1:2181,zk2:2181/user_events?family=u&v=2"
type: replica
access: [ random-access, list-primary-key, batch-snapshot ]
}
Google Cloud Bigtable #
- Module:
cz.o2.proxima:proxima-direct-io-bigtable - URI Format:
bigtable://<project-id>:<instance-id>/<table>?family=<column-family>[&v=2] - Capabilities: Uses HBase 2.x Bigtable client bindings; supports
random-access,batch-snapshot,list-primary-key,OnlineAttributeWriter, and?v=2for ACID transactions.
user-bigtable {
entity: user
attributes: [ "*" ]
storage: "bigtable://my-gcp-project:my-bt-instance/users?family=cf&v=2"
type: replica
access: [ random-access, batch-snapshot ]
}
JDBC (Relational Databases) #
- Module:
cz.o2.proxima:proxima-direct-io-jdbc - URI Format:
jdbc://<standard-jdbc-url>(Proxima strips the leadingjdbc://prefix before handing the URL to HikariCP, e.g.,jdbc://jdbc:postgresql://localhost:5432/mydb). - Capabilities:
random-access,batch-snapshot,OnlineAttributeWriter.
Required & Optional Configuration:
| Property | Required | Description |
|---|---|---|
sql.query-factory | Yes | Implementation of SqlStatementFactory (built-in: RowAsJsonLogReaderStatementFactory for reading rows as JSON). |
sql.converter | Yes | Implementation of Converter (built-in: RowAsJsonConverter). |
sql.driver-class-name | Optional | JDBC driver class name. |
sql.username / sql.password | Optional | Database credentials. |
Batch & Blob File Stores #
GCS, S3, and Hadoop/HDFS share the proxima-direct-io-bulkfs framework, which buffers incoming updates by event-time window and writes immutable files in configurable formats (binary, json, or parquet).
Bulk File Formats & Parquet #
Configure format (or hadoop.format for Hadoop/HDFS) to select how StreamElements are encoded in batch files:
| Format Value | Description | Extra Module Required |
|---|---|---|
binary (default) | Proxima Protobuf-based binary blob format (BinaryBlobFormat). Supports gzip: true. | Built into proxima-direct-io-bulkfs |
json | Newline-delimited JSON using each attribute’s asJsonValue / fromJsonValue. Supports gzip: true. | Built into proxima-direct-io-bulkfs |
parquet | Apache Parquet columnar files (ParquetFileFormat) storing key, uuid, attribute, attribute_prefix, timestamp, operation, plus typed value columns derived from SchemaDescriptors. | cz.o2.proxima:proxima-direct-io-bulkfs-parquet |
<Custom FQCN> | Any custom class implementing cz.o2.proxima.direct.io.bulkfs.FileFormat. | User module |
Parquet-specific properties: parquet.compression, parquet.page.size (default 8 MiB), parquet.values.name.prefix (avoids column name collisions with Proxima metadata columns).
Google Cloud Storage (GCS) #
- Module:
cz.o2.proxima:proxima-direct-io-gcloud-storage - URI Format:
gs://<bucket-name>/<prefix-path> - Capabilities:
batch-updates,BulkAttributeWriter.
Key Configuration Options: format, gzip, log-roll-interval (default 3600000 ms), allowed-lateness-ms (default 300000 ms), partition.size (default 100 MiB), partition.max-blobs, partition.max-time-span-ms, storage-class (default STANDARD), tmp.dir, initial-retry-delay-ms, max-retry-delay-ms.
event-gcs-archive {
entity: event
attributes: [ "*" ]
storage: "gs://my-datalake-bucket/proxima/events"
type: replica
access: batch-updates
format: parquet
log-roll-interval: 3600000
allowed-lateness-ms: 300000
storage-class: NEARLINE
}
Amazon S3 / MinIO #
- Module:
cz.o2.proxima:proxima-direct-io-s3 - URI Format:
s3://<bucket-name>/<prefix-path> - Capabilities:
batch-updates,BulkAttributeWriter. - Key Configuration Options: All shared blob options above (
format,gzip,log-roll-interval,allowed-lateness-ms,partition.*,tmp.dir), plus S3 client settings:access-key,secret-key,region,endpoint,signing-region,path-style-access(settruefor MinIO),ssl-enabled,max-connections,connection-timeout-ms.
event-s3-archive {
entity: event
attributes: [ "*" ]
storage: "s3://my-bucket/proxima/events"
type: replica
access: batch-updates
format: binary
gzip: true
endpoint: "http://minio:9000"
path-style-access: true
signing-region: "us-east-1"
}
Apache Hadoop / HDFS #
- Module:
cz.o2.proxima:proxima-direct-io-hadoop(orcz.o2.proxima:proxima-direct-io-hdfsconvenience wrapper) - URI Format:
- HDFS:
hdfs://<namenode-authority>/<path> - Any Hadoop
FileSystem(including local disk):hadoop:<target-fs-uri>(for example,hadoop:file:///var/data/proxima/events)
- HDFS:
- Capabilities:
batch-updates,BulkAttributeWriter. - Key Configuration Options:
hadoop.log-roll-interval(default 1 hour),hadoop.format(binary,json,parquet),hadoop.gzip,hadoop.process-size.min(default 100 MiB),hadoop.allowed-lateness,hadoop.tmp.fs.
Export Sinks, HTTP & Debug Storages #
Elasticsearch #
- Module:
cz.o2.proxima:proxima-direct-io-elasticsearch - URI Format:
elasticsearch://<host>:<port>/<index-name>orelastic://<host>:<port>/<index-name> - Capabilities: Write-only (
write-only,OnlineAttributeWriterwith internal bulk batching). Ideal as a replicated search index populated byReplicationController. - Key Configuration Options (prefixed with
elasticsearch.):scheme(http/https),batch-size(default100),bulk-size-mb(default10),flush-interval-ms,concurrent-batch-requests,document-formatter(DocumentFormatterclass),connect-timeout-ms,socket-timeout-ms,keystore-path,keystore-password,keystore-type,truststore-path,truststore-password.
HTTP, WebSocket & OpenTSDB #
- Module:
cz.o2.proxima:proxima-direct-io-http - URI Schemes:
http:///https://— write-only HTTP push viaHttpWriter(customize request formatting viaConnFactory).ws:///wss://— read-only WebSocket streaming source viaWebsocketReader(commit-log).opentsdb://— write-only OpenTSDB metrics sink viaOpenTsdbWriter.
Testing & Debugging Storages #
inmem://andinmem-bulk://(included incz.o2.proxima:proxima-direct-coretest JAR, classifiertests): Full in-memory implementation of commit log, random access, cached view, and batch readers/writers. Supportsnum-partitionsconfig. Essential for fast unit and end-to-end tests without external infrastructure!stdout://(built intocz.o2.proxima:proxima-direct-core): Write-only sink that prints incoming writes to standard output for local debugging.
Implementing a Custom IO Module #
To integrate a custom storage backend with DirectDataOperator:
- Implement
DataAccessorFactoryand annotate it with@AutoService(DataAccessorFactory.class)(or register it inMETA-INF/services/cz.o2.proxima.direct.core.DataAccessorFactory). - Return
Accept.ACCEPTinaccepts(URI)for your custom URI scheme. - Return a
DataAccessorimplementing whichever accessors your backend supports (getWriter,getCommitLogReader,getRandomAccessReader,getBatchLogReader,getCachedView).
@AutoService(DataAccessorFactory.class)
public class MyStorageFactory implements DataAccessorFactory {
private static final long serialVersionUID = 1L;
@Override
public Accept accepts(URI uri) {
return "mystore".equals(uri.getScheme()) ? Accept.ACCEPT : Accept.REJECT;
}
@Override
public DataAccessor createAccessor(
DirectDataOperator operator, AttributeFamilyDescriptor family) {
return new MyDataAccessor(family.getEntity(), family.getStorageUri(), family.getCfg());
}
}