# Isolate concurrent proxy sessions

Configure isolation pools by task, region, sub-account number and stickiness to avoid credential and state serialization.

Parallel tasks require simultaneous isolation of agent identities, cookies, connection pools, and business status. Replacing the output IP alone does not create complete isolation.

## Isolation dimension

- Environment and application use different sub-accounts.
- Different regions use different configurations.
- Different sticky tasks use different full user names.
- Cookies, cache and local storage are separated by business session.

## Connection pool

- Use the proxy host, port, username, protocol, and region as pool keys.
- Different usernames do not share authenticated connections.
- Set the concurrency and free space limits for each pool.

## Life cycle

- Get configuration when the task starts.
- Close connections and clear sensitive memory after the task is completed.
- The old pool is invalidated when a password change or a sub-account is disabled.

## Observation

- Use the internal task ID to associate the log.
- Only the desensitization configuration number is saved.
