Skip to main content
Version: 3.5.0

Client API Overview

The Client API section documents every interface available for interacting with a ChronoLog deployment programmatically. ChronoLog provides three client interfaces — a native C++ library, a Python wrapper, and a command-line tool — so you can choose the one that best fits your workflow.

Available interfaces​

InterfaceLanguagePrimary use caseLink
C++ ClientC++Full API access for high-performance applicationsC++ Client
Python ClientPythonScripting, data science, and rapid prototypingPython Client
CLI ToolShellAdmin tasks, quick tests, and scripted workflowsCLI Tool
warning

All three interfaces use the same C++ client library, so a client of any kind built against ChronoLog 3.4.0 or older cannot reach 3.5.0 servers, and a 3.5.0 client cannot reach older servers: the request gets no answer and no error. Build clients and servers from the same version.

C++ Client​

The native C++ client library provides full access to the ChronoLog API. Use it when you need maximum throughput, fine-grained control over event layout, or are integrating ChronoLog into an existing C++ or MPI-based application. The library exposes the core Client, StoryHandle, and Event classes along with error codes and logging configuration.

See C++ Client for the complete API reference.

Python Client​

A pybind11-based wrapper that exposes the C++ client API to Python. It is well suited for data-science workflows, prototyping, and any situation where development speed matters more than raw throughput. The Python client supports chronicle creation, story acquisition, event logging, and playback queries.

See Python Client for setup instructions and the API reference.

CLI Tool​

chrono-client-cli (installed under tools/cli/) is a command-line client for interacting with a running ChronoLog deployment. It reads one command per line, typed or piped from a file, which makes it useful for ad-hoc administration, quick smoke tests and scripted workloads. Performance tests use chrono-bench, installed under tools/benchmark/.

See CLI Tool for the full command reference and usage examples.


Event Consumption Modes​

ChronoLog 3.1+ provides two distinct modes for reading events:

FeatureOn-Demand Tail Read (playback)Historical Replay (ReplayStory)
Target DataMost recent $N$ events of a storyAll events in time range [start, end)
Data SourceChronoKeeper in-memory buffers (KeeperChunkRetentionStore)ChronoPlayer: HDF5 archives, plus ChronoKeeper memory for events not yet persisted
Latency~0.4 ms median, 1–5 ms at p90–p99Batch (~1–2 seconds)
Client ModeWriter-only mode supportedRequires Reader mode (ClientQueryServiceConf)
Use CasesLive dashboards, real-time alerts, stream tailingHistorical analysis, batch processing, audit logs