Persistent connection
A persistent connection is a communication link kept open for reuse across multiple messages, requests, or operations rather than reestablished for each exchange.
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.
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.
Also covered in
- Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
- Google Anthos in Action
- Pro ASP.NET Core 7, Tenth Edition
- Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
- Go in Practice, Second Edition
What to know first
- meanThe mean is a measure of central location equal to the arithmetic average of numerical observations, or the probability-weighted average of a random variable’s possible values.
- TCPTCP (Transmission Control Protocol) is a connection-oriented transport-layer protocol that provides reliable, ordered delivery of a byte stream between network endpoints.
Related concepts
- sessionincludes · A session is a bounded interaction or execution context associated with a user, client, process, or service that groups related exchanges or operations and may retain state.
- Blazorused by · Blazor is a .NET web UI framework for building interactive web applications with .NET and Razor components.
- Blazor Serverused by · Blazor Server is a Blazor hosting model in which component execution and event handling occur on the server while UI updates are sent to the browser.
- connection reuseused by · Connection reuse is the practice of sending multiple network requests over an already established connection.
- eventused by · A software event is an occurrence, state change, or notification that a system can detect, record, communicate, or handle.
Questions about persistent connection
What is persistent connection?
A persistent connection is a communication link kept open for reuse across multiple messages, requests, or operations rather than reestablished for each exchange.
Which Manning books explain persistent connection?
Build Your Own Robot: Using Python, CRICKIT, and Raspberry Pi and Practical Automation with PowerShell: Effective scripting from the console to the cloud.
What should I know before learning persistent connection?
Manning books that teach persistent connection usually introduce mean and TCP first.
What kinds of persistent connection are there?
Kinds of persistent connection include session and HTTP persistent connection.
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.

