Arcadic.Transport.Grpc.ChannelPool (Arcadic v4.0.1)

Copy Markdown View Source

Caller-supervised cache of multiplexed HTTP/2 connections for unary Arcadic.Transport.Grpc calls.

Add {Arcadic.Transport.Grpc.ChannelPool, []} to your supervision tree. Connections are shared by endpoint and TLS trust settings. They carry no database identity or credentials between calls. Connects run outside the pool process, and a closed connection is replaced on the next checkout.

Without a pool, each unary call has its own connection. Cursors and client-streamed ingest open dedicated connections.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()