Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 64 additions & 3 deletions content/compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ plugins:
- key: awsSecretsManager
codes: { ruby: secrets_manager }
page: using-plugins/aws-secrets-manager
- key: federatedAuth
codes: { ruby: federated_auth }
page: using-plugins/federated-auth
- key: oktaAuth
codes: { ruby: okta }
page: using-plugins/okta-auth
- key: initialConnection
codes: { ruby: initial_connection }
page: using-plugins/initial-connection-strategy
Expand All @@ -51,7 +57,7 @@ universal:
- key: kmsEncryption
codes: { ruby: kms_encryption }
page: using-plugins/kms-encryption
description: "Transparent column-level encryption using AWS KMS."
description: "Transparent column-level encryption using AWS KMS. Not supported with the `trilogy` driver (it has no prepared statements); use `mysql2` or `pg`."

# Reason text for the incompatible cells in the database-type and endpoint
# matrices. Cells tag a `reason:` key; the generator emits one footnote per
Expand All @@ -65,7 +71,7 @@ notes:
gdbUseFailoverInstead: "The global database failover plugin can function here, but the failover plugin is recommended instead — it provides the same failover coverage for a single-region cluster while consuming fewer resources."
failoverUseGdbInstead: "On an Aurora global database, use the global database failover plugin ({plugin:gdbFailover}) instead — it is region-aware and reconnects across the global cluster's regions, which the standard failover plugin does not do."
initialConnNeedsClusterTopology: "The initial connection plugin resolves a cluster endpoint to an instance; this deployment has no cluster topology to resolve."
awsAuthNotCommunity: "IAM and Secrets Manager authentication are Amazon RDS/Aurora features; a community database you run yourself does not support them."
awsAuthNotCommunity: "IAM and Secrets Manager authentication are Amazon RDS/Aurora features; a community database you run yourself does not support them. The Federated Authentication (AD FS) and Okta Authentication plugins obtain their database credential through IAM as well, so the same limitation applies to them."
bgNotGlobal: "AWS does not support Blue/Green deployments on Aurora global databases."
bgNotMultiAzCluster: "AWS Blue/Green deployments are not available for RDS Multi-AZ DB clusters (only for Multi-AZ DB instance deployments)."
bgNotCommunity: "Blue/Green deployments are an Amazon RDS/Aurora feature; a community database you run yourself cannot use one."
Expand Down Expand Up @@ -198,6 +204,20 @@ databaseTypes:
RDS Multi-AZ DB Instance deployment (2 instances) (MySQL and PG): { value: yes }
RDS Single-AZ Instance deployment (1 instance) (MySQL and PG): { value: yes }
Community Database (MySQL and PG): { value: no, reason: awsAuthNotCommunity }
federatedAuth:
Aurora Global Database (MySQL and PG): { value: yes }
Aurora Cluster (MySQL and PG): { value: yes }
RDS Multi-AZ DB Cluster deployment (3 instances) (MySQL and PG): { value: yes }
RDS Multi-AZ DB Instance deployment (2 instances) (MySQL and PG): { value: yes }
RDS Single-AZ Instance deployment (1 instance) (MySQL and PG): { value: yes }
Community Database (MySQL and PG): { value: no, reason: awsAuthNotCommunity }
oktaAuth:
Aurora Global Database (MySQL and PG): { value: yes }
Aurora Cluster (MySQL and PG): { value: yes }
RDS Multi-AZ DB Cluster deployment (3 instances) (MySQL and PG): { value: yes }
RDS Multi-AZ DB Instance deployment (2 instances) (MySQL and PG): { value: yes }
RDS Single-AZ Instance deployment (1 instance) (MySQL and PG): { value: yes }
Community Database (MySQL and PG): { value: no, reason: awsAuthNotCommunity }
initialConnection:
Aurora Global Database (MySQL and PG): { value: yes }
Aurora Cluster (MySQL and PG): { value: yes }
Expand Down Expand Up @@ -274,6 +294,30 @@ endpoints:
DB Shard Group Endpoint (Aurora Limitless): { value: yes }
IP address: { value: yes, noteRef: secretsNeedsRegion }
User custom domain (CNAME alias): { value: yes, noteRef: secretsNeedsRegion }
federatedAuth:
Aurora Global Database Endpoint: { value: yes, noteRef: iamNeedsInitialConn }
Aurora Cluster Writer Endpoint: { value: yes }
Aurora Cluster Reader Endpoint: { value: yes }
Aurora Cluster Custom Endpoint: { value: yes }
Aurora Instance Endpoint, RDS Instance Endpoint: { value: yes }
RDS Multi-AZ DB Cluster Writer Endpoint: { value: yes }
RDS Multi-AZ DB Cluster Reader Endpoint: { value: yes }
RDS Proxy Endpoint: { value: yes }
DB Shard Group Endpoint (Aurora Limitless): { value: yes }
IP address: { value: yes, noteRef: iamNeedsHostOverride }
User custom domain (CNAME alias): { value: yes, noteRef: iamNeedsHostOverride }
oktaAuth:
Aurora Global Database Endpoint: { value: yes, noteRef: iamNeedsInitialConn }
Aurora Cluster Writer Endpoint: { value: yes }
Aurora Cluster Reader Endpoint: { value: yes }
Aurora Cluster Custom Endpoint: { value: yes }
Aurora Instance Endpoint, RDS Instance Endpoint: { value: yes }
RDS Multi-AZ DB Cluster Writer Endpoint: { value: yes }
RDS Multi-AZ DB Cluster Reader Endpoint: { value: yes }
RDS Proxy Endpoint: { value: yes }
DB Shard Group Endpoint (Aurora Limitless): { value: yes }
IP address: { value: yes, noteRef: iamNeedsHostOverride }
User custom domain (CNAME alias): { value: yes, noteRef: iamNeedsHostOverride }
initialConnection:
Aurora Global Database Endpoint: { value: yes }
Aurora Cluster Writer Endpoint: { value: yes }
Expand Down Expand Up @@ -310,7 +354,24 @@ crossPlugins:
awsSecretsManager:
failover2: { value: yes }
gdbFailover: { value: yes }
iam: { value: no, note: "Two authentication plugins both trying to set the connection credential; only one authentication plugin may be active at a time." }
iam: { value: no, noteRef: oneAuthPlugin }
federatedAuth:
failover2: { value: yes }
gdbFailover: { value: yes }
customEndpoint: { value: yes }
initialConnection: { value: yes }
bg: { value: yes }
iam: { value: no, noteRef: oneAuthPlugin }
awsSecretsManager: { value: no, noteRef: oneAuthPlugin }
oktaAuth:
failover2: { value: yes }
gdbFailover: { value: yes }
customEndpoint: { value: yes }
initialConnection: { value: yes }
bg: { value: yes }
iam: { value: no, noteRef: oneAuthPlugin }
awsSecretsManager: { value: no, noteRef: oneAuthPlugin }
federatedAuth: { value: no, noteRef: oneAuthPlugin }
customEndpoint:
failover2: { value: yes }
gdbFailover: { value: no, note: "Meaningless: a custom endpoint is a single-region Aurora cluster construct, while {plugin:gdbFailover} operates across regions on a global database." }
Expand Down
26 changes: 14 additions & 12 deletions content/dev-guide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ wrappers:

# Ruby diagram labels come from the `diagram:` block below.
architectureComponents: |
1. The connection entry points (`WrapperPgConnection`, `WrapperMysql2Client`, and the `aws_postgresql` / `aws_mysql2` ActiveRecord adapters)
1. The connection entry points (`WrapperPgConnection`, `WrapperMysql2Client`, `WrapperTrilogyClient`, and the `aws_postgresql` / `aws_mysql2` / `aws_trilogy` ActiveRecord adapters)
2. The [plugin manager](./service-container#plugin-manager) (one of the services in the container)
3. The [loadable and extensible plugins](./loadable-plugins)
4. The [service container](./service-container) of discrete services
Expand All @@ -96,7 +96,7 @@ wrappers:
executeKey: "the qualified driver method name (e.g. `connection.query`, `connection.exec`)"
notifyConnChangedKey: "notify_connection_changed"

devPrereqs: "Make sure you have Ruby 3.3+ installed, along with your choice of underlying driver gem (`pg` or `mysql2`)."
devPrereqs: "Make sure you have Ruby 3.3+ installed, along with your choice of underlying driver gem (`pg`, `mysql2`, or `trilogy`)."
buildTool: "Bundler + RSpec"
sampleCode: |
A minimal connection example using the wrapper:
Expand Down Expand Up @@ -166,8 +166,8 @@ wrappers:

diagram:
entryPoints:
- "WrapperPgConnection / WrapperMysql2Client"
- "aws_postgresql / aws_mysql2 (ActiveRecord)"
- "WrapperPgConnection / WrapperMysql2Client / WrapperTrilogyClient"
- "aws_postgresql / aws_mysql2 / aws_trilogy (ActiveRecord)"
wrapperNode: "Wrapper Connection"
samplePlugins:
- "Plugin A"
Expand Down Expand Up @@ -256,7 +256,8 @@ wrappers:
- `hosts` / `all_hosts` — allowed and full host lists.
- `host_list_provider` — the active provider.
- `select_host(hosts, role, strategy, props = nil)` — pick a host by role and host-selection strategy name.
- `HostService.register_host_selector(name, selector)` — a class method that registers a custom strategy for all connections. Register the name in lowercase: `select_host` lowercases the requested strategy before looking it up.
- `HostService.register_host_selector(name, selector)` — a class method that registers a custom strategy for all connections. Strategy names are case-insensitive.
- `HostService.validate_strategy!(name)` — a class method that raises `Unsupported host selection strategy` when no selector is registered under the name. Plugins that take a strategy name call it when they are constructed.
whenToUse: |
Use it to read topology, register a custom host-selection strategy, or pick a
host by role (writer/reader) and strategy.
Expand Down Expand Up @@ -296,14 +297,15 @@ wrappers:
background cleanup thread. Shared across the wrapper.
offers: |
- `register(name, ttl:)` — create a named cache partition.
- `set(name, key, value)` / `get(name, key)` — store and read items.
- `get_if_registered(name, key)` — read a partition that may not exist (e.g. a cache owned by an optional plugin).
- `set(name, key, value)` / `get(name, key, register_access: false)` — store and read items.
- `get_if_registered(name, key, register_access: false)` — read a partition that may not exist (e.g. a cache owned by an optional plugin).
- `exists?(name, key)` / `remove(name, key)` / `clear(name)` / `clear_all`.
whenToUse: |
Use it to cache data reused across the wrapper — for example the
`RdsHostListProvider` caches cluster topology here. Reads publish a
`DataAccessEvent` (unless `register_access: false`), which keeps related
monitors alive.
`RdsHostListProvider` caches cluster topology here. A read publishes a
`DataAccessEvent` only when called with `register_access: true`, which
extends the expiration of any monitor that produces that cache's data. Pass
it only when the read should keep that monitor alive.
- name: "Monitor Service"
short: "Monitor Service"
global: true
Expand Down Expand Up @@ -333,7 +335,7 @@ wrappers:
- `release_resources` — stop the background publishing thread.
whenToUse: |
Use it to decouple event producers and consumers. For example the Storage
Service publishes a `DataAccessEvent` on cache reads, and the Monitor Service
Service publishes a `DataAccessEvent` on cache reads made with `register_access: true`, and the Monitor Service
subscribes to it to extend the matching monitor's expiration.
- name: "Plugin Manager"
short: "Plugin Manager"
Expand All @@ -351,7 +353,7 @@ wrappers:
your plugin. See the dedicated [Plugin Manager](#plugin-manager) section below.

perf:
driverNames: "`mysql2`/`pg`"
driverNames: "`mysql2`/`trilogy`/`pg`"
# Rough magnitude of the fixed per-call cost, stated in the intro.
fixedCostMagnitude: "a microsecond"
# The end-to-end real-database benchmark: display name (inline code) and link.
Expand Down
Loading
Loading