RealComposer
ReactCloudinaryShopifyMulti-API Aggregation

Merge cloudinary with shopify product images

Product gallery with CDN transforms

Direct Answer & Architecture Summary

Shopify product media plus Cloudinary derived URLs in one feed. For "merge cloudinary with shopify product images", store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let React hit only https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images with an rc_live_ client token.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Waterfall latency from multiple Cloudinary and Shopify requests

React widgets often await Cloudinary and Shopify sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.

Critical Security & Operational Risks:
  • Race conditions between parallel manual fetches
  • Higher mobile data usage from redundant JSON
  • Timeouts when any upstream exceeds cellular RTT
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Store upstream credentials in Secret Vault

Store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in the vault. React never embeds the raw secret, only a revocable rc_live_ client token.

2

Configure upstream steps and output mapping

Use GET against https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).

3

Call from React

Allowed origins on the token should list every React host that calls this URL.

                    const res = await fetch('https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
});
const data = await res.json();
                  
Payload Slimming Comparison
55% Bandwidth Reduction
Raw Upstream Response255 B
              {
  "requestId": "req_merge-cl",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "merge-cloudinary-with-shopify-images"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload115 B
              {
  "cloudinary_publicId": "sample",
  "cloudinary_format": "sample",
  "shopify_productId": "sample",
  "shopify_title": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
2
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
4
Payload
255 B to 115 B (-55%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Which Cloudinary credential belongs in the vault for this pipeline?

Store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN for merge-cloudinary-with-shopify-images. React never sees decrypted values.

Does POST traffic get cached?

merge-cloudinary-with-shopify-images POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.

What happens if an upstream step times out?

Allowed origins on the merge-cloudinary-with-shopify-images client token restrict which domains may call the edge URL.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this React + Cloudinary, Shopify Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes