--- id: cd528dd3-8328-41c5-9652-81c410c0d344 type: configuration title: "Object-handler dual-layer output config" tags: [esb-monorepo, object-handler, configuration, cloudsql, firestore] importance: 0.6 confidence: 0.8 created: "2025-12-10T19:55:30.559152+00:00" updated: "2025-12-10T19:55:30.559152+00:00" relations: - target: e80e161a-4be4-428d-8590-267b9ab4cc7c type: BUILDS_ON direction: outgoing strength: 0.5 --- Object-handler supports multiple downstream outputs controlled by env vars: (1) DOWNSTREAM_CLOUDSQL_ENABLED - silver layer, calls fn_upsert_{object_type} with JSONB, strips raw_data, (2) DOWNSTREAM_FIRESTORE_ENABLED - bronze layer, full data including raw_data, (3) DOWNSTREAM_API_URL - HTTP POST, (4) DOWNSTREAM_PUBSUB_TOPIC - Pub/Sub forwarding. Handler-specific enablement: ENABLE_DOWNSTREAM_HTTP, ENABLE_DOWNSTREAM_CLOUD_EVENT. All outputs fail-fast (exceptions propagate).