Skip to content

Commit 6efbbbf

Browse files
committed
docs: add documentation around plugins, endpoint and database type compatibility
1 parent ecc898e commit 6efbbbf

9 files changed

Lines changed: 425 additions & 52 deletions

‎docs/README.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,29 @@
1616
- [Failover Plugin](using-the-python-wrapper/using-plugins/UsingTheFailoverPlugin.md)
1717
- [Failover v2 Plugin](using-the-python-wrapper/using-plugins/UsingTheFailover2Plugin.md)
1818
- [Failover Configuration Guide](using-the-python-wrapper/FailoverConfigurationGuide.md)
19+
- [Global Database Failover Plugin](using-the-python-wrapper/using-plugins/UsingTheGdbFailoverPlugin.md)
1920
- [Host Monitoring Plugin](using-the-python-wrapper/using-plugins/UsingTheHostMonitoringPlugin.md)
2021
- [Aurora Connection Tracker Plugin](using-the-python-wrapper/using-plugins/UsingTheAuroraConnectionTrackerPlugin.md)
2122
- [Aurora Initial Connection Strategy Plugin](using-the-python-wrapper/using-plugins/UsingTheAuroraInitialConnectionStrategyPlugin.md)
2223
- [Host Availability Strategy](using-the-python-wrapper/HostAvailabilityStrategy.md)
24+
- [Custom Endpoint Plugin](using-the-python-wrapper/using-plugins/UsingTheCustomEndpointPlugin.md)
2325
- [IAM Authentication Plugin](using-the-python-wrapper/using-plugins/UsingTheIamAuthenticationPlugin.md)
2426
- [AWS Secrets Manager Plugin](using-the-python-wrapper/using-plugins/UsingTheAwsSecretsManagerPlugin.md)
2527
- [Federated Authentication Plugin](using-the-python-wrapper/using-plugins/UsingTheFederatedAuthenticationPlugin.md)
28+
- [Okta Authentication Plugin](using-the-python-wrapper/using-plugins/UsingTheOktaAuthenticationPlugin.md)
2629
- [Read Write Splitting Plugin](using-the-python-wrapper/using-plugins/UsingTheReadWriteSplittingPlugin.md)
2730
- [Reader Selection Strategies](using-the-python-wrapper/ReaderSelectionStrategies.md)
2831
- [Simple Read Write Splitting Plugin](using-the-python-wrapper/using-plugins/UsingTheSimpleReadWriteSplittingPlugin.md)
32+
- [Global Database Read/Write Splitting Plugin](using-the-python-wrapper/using-plugins/UsingTheGdbReadWriteSplittingPlugin.md)
2933
- [Fastest Response Strategy Plugin](using-the-python-wrapper/using-plugins/UsingTheFastestResponseStrategyPlugin.md)
34+
- [Blue/Green Deployment Plugin](using-the-python-wrapper/using-plugins/UsingTheBlueGreenPlugin.md)
35+
- [Limitless Connection Plugin](using-the-python-wrapper/using-plugins/UsingTheLimitlessPlugin.md)
36+
- [Developer Plugin](using-the-python-wrapper/using-plugins/UsingTheDeveloperPlugin.md)
3037
- [Host Availability Strategy](using-the-python-wrapper/HostAvailabilityStrategy.md)
38+
- [Plugins Compatibility](using-the-python-wrapper/compatibility/Compatibility.md)
39+
- [Database Type Compatibility](using-the-python-wrapper/compatibility/CompatibilityDatabaseTypes.md)
40+
- [Database URL Type Compatibility](using-the-python-wrapper/compatibility/CompatibilityEndpoints.md)
41+
- [Cross Plugin Compatibility](using-the-python-wrapper/compatibility/PluginChainCompatibility.md)
3142
- [Development Guide](./development-guide/DevelopmentGuide.md)
3243
- [Setup](./development-guide/DevelopmentGuide.md#setup)
3344
- [Testing Overview](./development-guide/DevelopmentGuide.md#testing-overview)

‎docs/using-the-python-wrapper/PluginChainCompatibility.md‎

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Plugins compatibility
2+
3+
The AWS Advanced Python Wrapper uses plugins to execute database method calls. You can think of a plugin as an extensible code module that adds additional logic around driver method calls. Plugins are designed with the intention of being compatible with each other; however, there are logical constraints related to database type or database features that can make plugins inefficient in certain configurations.
4+
5+
For example, RDS Single-AZ Instance deployments do not support failover, so the `failover` and `failover_v2` plugins are marked as incompatible with that deployment. If either of these plugins is included in the driver configuration, there will be no added value. However, these unnecessary plugins will function without errors and will simply consume additional resources.
6+
7+
The following matrices help verify plugin compatibility with other plugins and with various database types. Some plugins are sensitive to the database URL provided in the connection string, and this is also presented below.
8+
9+
We encourage users to verify their configurations and ensure that their configuration contains no incompatible components.
10+
11+
- [Database type compatibility](./CompatibilityDatabaseTypes.md)
12+
- [Database URL type compatibility](./CompatibilityEndpoints.md)
13+
- [Cross plugin compatibility](./PluginChainCompatibility.md) — the plugin-vs-plugin matrix plus driver/runtime constraints, plugin ordering, and canonical chains
14+
15+
## Universally Compatible Plugins
16+
17+
The following plugins operate independently of connection management and are compatible with all plugins, database types, and endpoint types:
18+
19+
| Plugin | Description |
20+
|----------------|----------------------------------------------------|
21+
| [dev](../using-plugins/UsingTheDeveloperPlugin.md) | Developer utility plugin for debugging and diagnostics. |
22+
| `connect_time` | Logs the time taken to establish a connection. |
23+
| `execute_time` | Logs the time taken to execute any driver method. |
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Database type compatibility
2+
3+
This document is part of the [Compatibility Guide](./Compatibility.md) and explains plugin compatibility with various database types and deployments. Some plugins require specific metadata from particular database types to function properly.
4+
5+
For example, the `limitless` plugin is incompatible with [Aurora Global Database](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html) because it's built on different architectural principles than [Limitless Database](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless-architecture.html). Aurora Global Database doesn't use transaction routers and doesn't provide the transaction routers' metadata. This lack of required metadata makes it incompatible with the `limitless` plugin.
6+
7+
For Aurora Global Database configuration details, see [Aurora Global Databases](../GlobalDatabases.md).
8+
9+
Legend: ✅ compatible  |  ❌ incompatible / no added value
10+
11+
| Plugin code / Database type | Aurora Global Database <br>(MySQL and PG) | Aurora Cluster <br>(MySQL and PG) | RDS Multi-AZ DB Cluster (3 instances) <br>(MySQL and PG) |
12+
|---|:---:|:---:|:---:|
13+
| [custom_endpoint](../using-plugins/UsingTheCustomEndpointPlugin.md) | ✅ | ✅ | ✅ |
14+
| [host_monitoring](../using-plugins/UsingTheHostMonitoringPlugin.md) (EFM v1) | ✅ | ✅ | ✅ |
15+
| [host_monitoring_v2](../using-plugins/UsingTheHostMonitoringPlugin.md) (EFM v2) | ✅ | ✅ | ✅ |
16+
| [failover](../using-plugins/UsingTheFailoverPlugin.md) | ✅ | ✅ | ✅ |
17+
| [failover_v2](../using-plugins/UsingTheFailover2Plugin.md) | ✅ | ✅ | ✅ |
18+
| [gdb_failover](../using-plugins/UsingTheGdbFailoverPlugin.md) | ✅ | ✅ | ✅ |
19+
| [iam](../using-plugins/UsingTheIamAuthenticationPlugin.md) | ✅ | ✅ | ✅ |
20+
| [aws_secrets_manager](../using-plugins/UsingTheAwsSecretsManagerPlugin.md) | ✅ | ✅ | ✅ |
21+
| [federated_auth](../using-plugins/UsingTheFederatedAuthenticationPlugin.md) | ✅ | ✅ | ✅ |
22+
| [okta](../using-plugins/UsingTheOktaAuthenticationPlugin.md) | ✅ | ✅ | ✅ |
23+
| stale_dns | ✅ | ✅ | ✅ |
24+
| [read_write_splitting](../using-plugins/UsingTheReadWriteSplittingPlugin.md) | ✅ | ✅ | ✅ |
25+
| [srw](../using-plugins/UsingTheSimpleReadWriteSplittingPlugin.md) | ✅ | ✅ | ✅ |
26+
| [gdb_rw](../using-plugins/UsingTheGdbReadWriteSplittingPlugin.md) | ✅ | ✅ | ✅ |
27+
| [aurora_connection_tracker](../using-plugins/UsingTheAuroraConnectionTrackerPlugin.md) | ✅ | ✅ | ✅ |
28+
| connect_time | ✅ | ✅ | ✅ |
29+
| [fastest_response_strategy](../using-plugins/UsingTheFastestResponseStrategyPlugin.md) | ✅ | ✅ | ✅ |
30+
| [initial_connection](../using-plugins/UsingTheAuroraInitialConnectionStrategyPlugin.md) | ✅ | ✅ | ✅ |
31+
| [limitless](../using-plugins/UsingTheLimitlessPlugin.md) | ❌ | ✅ (PostgreSQL only) | ✅ |
32+
| [bg](../using-plugins/UsingTheBlueGreenPlugin.md) | ❌ | ✅ | ❌ |
33+
34+
<br>
35+
36+
| Plugin code / Database type | RDS Multi-AZ DB Instance (2 instances) <br>(MySQL and PG) | RDS Single-AZ Instance (1 instance) <br>(MySQL and PG) | Community Database <br>(MySQL and PG) |
37+
|---|:---:|:---:|:---:|
38+
| [custom_endpoint](../using-plugins/UsingTheCustomEndpointPlugin.md) | ❌ | ❌ | ❌ |
39+
| [host_monitoring](../using-plugins/UsingTheHostMonitoringPlugin.md) (EFM v1) | ✅ | ✅ | ✅ |
40+
| [host_monitoring_v2](../using-plugins/UsingTheHostMonitoringPlugin.md) (EFM v2) | ✅ | ✅ | ✅ |
41+
| [failover](../using-plugins/UsingTheFailoverPlugin.md) | ❌ | ❌ | ❌ |
42+
| [failover_v2](../using-plugins/UsingTheFailover2Plugin.md) | ❌ | ❌ | ❌ |
43+
| [gdb_failover](../using-plugins/UsingTheGdbFailoverPlugin.md) | ❌ | ❌ | ❌ |
44+
| [iam](../using-plugins/UsingTheIamAuthenticationPlugin.md) | ✅ | ✅ | ❌ |
45+
| [aws_secrets_manager](../using-plugins/UsingTheAwsSecretsManagerPlugin.md) | ✅ | ✅ | ❌ |
46+
| [federated_auth](../using-plugins/UsingTheFederatedAuthenticationPlugin.md) | ✅ | ✅ | ❌ |
47+
| [okta](../using-plugins/UsingTheOktaAuthenticationPlugin.md) | ✅ | ✅ | ❌ |
48+
| stale_dns | ❌ | ❌ | ❌ |
49+
| [read_write_splitting](../using-plugins/UsingTheReadWriteSplittingPlugin.md) | ❌ | ❌ | ❌ |
50+
| [srw](../using-plugins/UsingTheSimpleReadWriteSplittingPlugin.md) | ✅ | ❌ | ✅ |
51+
| [gdb_rw](../using-plugins/UsingTheGdbReadWriteSplittingPlugin.md) | ❌ | ❌ | ❌ |
52+
| [aurora_connection_tracker](../using-plugins/UsingTheAuroraConnectionTrackerPlugin.md) | ❌ | ❌ | ❌ |
53+
| connect_time | ✅ | ✅ | ✅ |
54+
| [fastest_response_strategy](../using-plugins/UsingTheFastestResponseStrategyPlugin.md) | ❌ | ❌ | ❌ |
55+
| [initial_connection](../using-plugins/UsingTheAuroraInitialConnectionStrategyPlugin.md) | ❌ | ❌ | ❌ |
56+
| [limitless](../using-plugins/UsingTheLimitlessPlugin.md) | ❌ | ❌ | ❌ |
57+
| [bg](../using-plugins/UsingTheBlueGreenPlugin.md) | ✅ | ✅ | ❌ |
58+
59+
> The `connect_time`, `execute_time`, and [`dev`](../using-plugins/UsingTheDeveloperPlugin.md) plugins are compatible with every database type (see [Universally Compatible Plugins](./Compatibility.md#universally-compatible-plugins)).

0 commit comments

Comments
 (0)