liveBook · Manning

Persistent connection

A persistent connection is a communication link kept open for reuse across multiple messages or operations, rather than reestablished for each exchange.

How 2 Manning books explain it

Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi

A persistent connection is a network connection that remains open so multiple requests can be transmitted without establishing a new connection for each request.

How it is used
Improves remote robot web-service calls by reusing one connection for repeated movement requests.
How deep it goes
Implements reusable HTTPConnection request functions and a 100-sample timing procedure, while deferring lower-level protocol detail.
Examples
Demonstrates spin-right and spin-left calls at three speeds, then times repeated noop calls.
What you can do after
Apply it via Python's HTTPConnection to send repeated robot-service requests and measure their latency.

Read how Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi explains persistent connection →

Practical Automation with PowerShell: Effective scripting from the console to the cloud

A persistent connection is a remote connection established before command execution and maintained until it is explicitly closed.

How it is used
Uses remote sessions to execute automation across multiple devices with lower elapsed time and better failure isolation.
How deep it goes
Explains setup, parallel execution, failure handling, resource trade-offs, and the default 32-connection limit.
Examples
Uses 20-server checks, 30-second scripts, five-minute execution comparisons, and failed-device scenarios.
What you can do after
Operate parallel remote automation while managing failed sessions and connection-related resource limits.

Read how Practical Automation with PowerShell: Effective scripting from the console to the cloud explains persistent connection →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.