Integration follow-ups
External calls and database transactions
Section titled “External calls and database transactions”The address search verifies the current membership and role in a tenant-scoped transaction. It closes the transaction and returns the request’s database connection to the pool before contacting Photon. Slow and failed responses, revoked access and pool availability are covered by tests. The authorization is a check at the start of this read-only request; it does not hold a lock across the external request or guarantee instant cancellation after a later revocation. Follow the same transaction boundary when future integrations do network I/O.
When introducing further external services, decide on shared infrastructure for
timeouts, error classification, instrumentation and testing based on the needs
of the integrations. Keep service-specific payloads and behavior in their own
adapters. In particular, a future messaging channel has different delivery,
retry and idempotency requirements from a read-only address search. Core and
product boundaries remain as documented in product-and-ui-boundaries.md;
this follow-up does not decide their implementation or introduce an adapter
framework prematurely.