Use this guide when moving an application from Arcadic 3.x to 4.x with gRPC enabled.
Keep the optional protobuf dependency. Remove the direct grpc dependency if
Arcadic was its only caller. Arcadic uses Mint HTTP/2 for RPCs. The generated
ArcadeDB Protobuf messages still ship with Arcadic. Code that used the generated
*.Service or *.Stub modules must move to Arcadic's public operations.
Keep the existing connection configuration and the optional
Arcadic.Transport.Grpc.ChannelPool child. The pool shares connections for
unary calls. Cursors and client-streamed ingest each open a dedicated
connection. Per-request deadlines apply until the reply terminates. The
cursor owner answers keepalives while you pause. Set :max_buffer_bytes to
change the 16 MiB default unread buffer. A cursor that exceeds that limit
returns :cursor_buffer_exceeded and closes its connection.
Match Arcadic.Error on :duplicate_key for confirmed uniqueness violations
and on :already_exists for taken names or ambiguous conflicts. HTTP also
returns :already_exists for known taken-name exceptions. A gRPC server
failure without a recognized class can return :grpc_rejected or another
status-specific reason. A partial commit has reason :partial_commit and
may carry graph batch counts.
When a dispatched RPC returns
%Arcadic.TransportError{reason: :outcome_unknown}, read back the affected
state before retrying. Keep this reason out of retry allowlists. A gRPC :not_sent verdict can be retried. The transport
requires a terminal gRPC status and bounds each message to 16 MiB before and
after decompression. Split larger ingest payloads with :chunk_size or
smaller graph batches.
Use Arcadic's telemetry events for these calls. The transport no longer emits
events from the grpc dependency.