// Generated by orrery. Edit the diagram spec and re-render instead of editing this file.
import { type SVGProps, useId } from "react";

export default function ReadThroughCacheOnAProductAPI(props: SVGProps<SVGSVGElement>) {
  const uid = useId().replace(/[^A-Za-z0-9_-]/g, "");
  return (
    <svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" width="911" height="846" viewBox="0 0 911 846" role="img" aria-labelledby={`${uid}-sdw-title ${uid}-sdw-desc`} fontFamily="Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif" {...props}>
      <title id={`${uid}-sdw-title`}>
        Read-through cache on a product API
      </title>
      <desc id={`${uid}-sdw-desc`}>
        Read-through cache on a product API. Sequence diagram with 5 participants (Mobile app, Amazon API Gateway, AWS Lambda, Amazon ElastiCache, Amazon DynamoDB) and 11 messages. 1. Mobile app to Amazon API Gateway (GET /products/42); 2. Amazon API Gateway to itself (verify JWT, rate limit); 3. Amazon API Gateway to AWS Lambda (getProduct(42)); 4. AWS Lambda to Amazon ElastiCache (GET product:42); 5. Amazon ElastiCache to AWS Lambda (product JSON); 6. Amazon ElastiCache to AWS Lambda (nil); 7. AWS Lambda to Amazon DynamoDB (GetItem(id = 42)); 8. Amazon DynamoDB to AWS Lambda (product item); 9. AWS Lambda to Amazon ElastiCache (SET product:42 EX 300); 10. AWS Lambda to Amazon API Gateway (200 product); 11. Amazon API Gateway to Mobile app (200 product (max-age 60)). Fragments: alt [cache hit] over messages 5 to 9, else [cache miss] from 6.
      </desc>
      <defs>
        <symbol id={`${uid}-s1`} viewBox="0 0 40 40" overflow="visible">
          <g fill="none" fillRule="evenodd">
            <rect width="40" height="40" fill="#242f3e" />
            <path fill="#fff" d="M32.698 23.9c.361.47-.4 2.4-.74 3.264-.105.262.117.365.35.168 1.512-1.284 1.904-3.975 1.593-4.363-.307-.386-2.95-.717-4.563.432-.249.177-.206.42.07.389.907-.112 2.93-.357 3.29.11m-.842 2.01c.518-.378.074-.941-.454-.72-3.513 1.464-7.327 2.173-10.8 2.173-5.143 0-10.127-1.39-14.156-3.695-.352-.202-.613.155-.319.414 3.733 3.316 8.67 5.309 14.147 5.309 3.91 0 8.451-1.208 11.582-3.481m-2.144-5.215a6.6 6.6 0 0 1-1.459-.161q-.714-.163-1.093-.373-.233-.128-.29-.258a.7.7 0 0 1-.059-.26v-.47q0-.29.216-.292.083.002.173.033.091.034.241.098.48.21 1.044.324.564.113 1.126.113.895 0 1.384-.308a.97.97 0 0 0 .49-.873.88.88 0 0 0-.258-.65q-.256-.258-.952-.484l-1.375-.421q-1.045-.325-1.517-.938a2.17 2.17 0 0 1-.472-1.347q0-.581.258-1.027.255-.445.676-.761.427-.314.99-.478a4.3 4.3 0 0 1 1.19-.162q.315 0 .64.04a6.3 6.3 0 0 1 1.15.252q.248.082.4.162a.9.9 0 0 1 .28.227.5.5 0 0 1 .083.308v.436q0 .291-.217.29-.114.002-.364-.111c-.54-.24-1.15-.356-1.82-.356q-.815 0-1.262.258-.448.26-.448.827 0 .388.283.655.281.267 1.044.51l1.342.423q1.028.322 1.466.888.441.568.441 1.295 0 .6-.25 1.078-.248.477-.689.817a3.1 3.1 0 0 1-1.05.518q-.615.179-1.343.178m-12.165-.244q-.248.002-.365-.087-.117-.09-.199-.365l-2.222-7.157a1.8 1.8 0 0 1-.082-.371q0-.227.233-.227h.927q.265 0 .374.09.106.086.19.364l1.59 6.12 1.477-6.12q.066-.278.181-.364.116-.09.38-.09h.765q.263 0 .38.09.116.086.182.364l1.493 6.2 1.64-6.2q.082-.278.19-.364.109-.09.373-.09h.878q.233 0 .233.227a1 1 0 0 1-.016.144 2 2 0 0 1-.068.227l-2.286 7.157q-.083.275-.2.365-.116.088-.364.087h-.813q-.264.001-.38-.094-.116-.099-.182-.373l-1.476-5.96-1.457 5.96q-.067.274-.183.373-.116.095-.38.094zM9.94 19.449q.465 0 .98-.17.513-.17.893-.592.232-.259.324-.591.09-.33.09-.801v-.388a8 8 0 0 0-1.757-.211q-.945 0-1.408.373-.464.37-.465 1.07 0 .645.35.978.347.332.993.332m3.846-1.408q0 .517.107.825.11.31.307.664a.4.4 0 0 1 .066.209q0 .148-.182.276l-.597.39a.5.5 0 0 1-.248.08.4.4 0 0 1-.282-.128 2 2 0 0 1-.339-.43 6 6 0 0 1-.29-.544q-1.112 1.28-2.785 1.28-1.194.001-1.89-.664-.696-.664-.696-1.78 0-1.182.863-1.903.86-.72 2.32-.721.48 0 1.002.073t1.084.203v-.68q.001-1.052-.446-1.482-.446-.428-1.54-.428a4.5 4.5 0 0 0-1.02.12 7.5 7.5 0 0 0-1.02.315 3 3 0 0 1-.33.122.7.7 0 0 1-.15.024q-.199.001-.2-.292v-.452q.001-.228.068-.323.066-.099.265-.195a6 6 0 0 1 1.192-.421 6 6 0 0 1 1.476-.18c1.126 0 1.952.254 2.477.754q.787.753.788 2.275z" />
          </g>
        </symbol>
        <symbol id={`${uid}-s2`} viewBox="0 0 24 24" overflow="visible">
          <path fill="none" stroke="#000000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2zm5-1h2m-1 13v.01" />
        </symbol>
        <symbol id={`${uid}-s3`} viewBox="0 0 80 80" overflow="visible">
          <g fill="none">
            <rect width="80" height="80" fill="#8c4fff" />
            <path fill="#fff" fillRule="evenodd" d="M34.065 55.632H37v-2.017h-2.935zm4.935 0h3v-2.017h-3zM27 14.63l-13 6.452v40.111l13 4.397zm2 12.763v26.222h3v2.017h-3v11.36c0 .324-.155.629-.416.818a1 1 0 0 1-.902.138l-15-5.072A1.01 1.01 0 0 1 12 61.92V20.454c0-.384.217-.736.559-.905l15-7.445a.99.99 0 0 1 .969.049c.293.183.472.507.472.856v12.367h3v2.017zm15 28.24h3v-2.018h-3zm.065-28.24H47v-2.017h-2.935zm-5 0H42v-2.017h-2.935zm-5 0H37v-2.017h-2.935zM66 21.083 53 14.63v50.96l13-4.397zm2 40.837c0 .432-.274.817-.682.956l-15 5.072a.99.99 0 0 1-.902-.138 1.01 1.01 0 0 1-.416-.819V55.633h-1.935v-2.017H51V27.393h-1.935v-2.017H51V13.01c0-.35.179-.673.472-.857a.99.99 0 0 1 .969-.048l15 7.445c.342.17.559.521.559.905zM42.934 33.807l-1.868-.724-5 13.11 1.868.725zm6.773 6.402a1.014 1.014 0 0 0 0-1.426l-4-4.034-1.414 1.426 3.293 3.32-3.293 3.322 1.414 1.426zm-15.414 4.034-4-4.034a1.014 1.014 0 0 1 0-1.426l4-4.034 1.414 1.426-3.293 3.32 3.293 3.322z" clipRule="evenodd" />
          </g>
        </symbol>
        <symbol id={`${uid}-s4`} viewBox="0 0 80 80" overflow="visible">
          <g fill="none" fillRule="evenodd">
            <rect width="80" height="80" fill="#ed7100" />
            <path fill="#fff" d="M28.008 66H15.59l13.733-28.704 6.222 12.81zm2.212-31.447a1 1 0 0 0-.902-.564h-.003a1 1 0 0 0-.903.569L13.098 66.569A1 1 0 0 0 14.002 68h14.64c.388 0 .74-.223.906-.572l8.016-16.9a1 1 0 0 0-.005-.863zM64.995 66H52.66L32.867 24.57a1 1 0 0 0-.905-.57H23.89l.009-10h15.82L59.42 55.429c.166.348.519.571.906.571h4.67zm1.003-12H60.96l-19.7-41.429a1 1 0 0 0-.907-.571H22.898c-.553 0-1.002.447-1.003.999l-.01 12A1 1 0 0 0 22.886 26h8.442l19.793 41.43c.167.348.517.57.904.57h13.972A1 1 0 0 0 67 67V55a1 1 0 0 0-1.002-1" />
          </g>
        </symbol>
        <symbol id={`${uid}-s5`} viewBox="0 0 80 80" overflow="visible">
          <g fill="none" fillRule="evenodd">
            <rect width="80" height="80" fill="#c925d1" />
            <path fill="#fff" d="M51 61.555v-5.852c-2.534 1.637-7.096 2.41-11.444 2.41-4.74 0-8.435-.827-10.556-2.245v5.687C29 63.25 32.948 65 39.556 65 46.3 65 51 63.185 51 61.555M39.556 49.22c-4.74 0-8.435-.826-10.556-2.244v5.71c.031 1.688 3.973 3.427 10.556 3.427 6.723 0 11.413-1.804 11.444-3.43V46.81c-2.534 1.638-7.096 2.41-11.444 2.41M51 43.79v-6.76c-2.534 1.636-7.096 2.41-11.444 2.41-4.74 0-8.435-.827-10.556-2.245v6.6c.031 1.687 3.973 3.425 10.556 3.425 6.723 0 11.413-1.804 11.444-3.43m-22.003-9.797.001.009H29v.01c.031 1.688 3.973 3.427 10.556 3.427 7.342 0 11.413-2.022 11.444-3.43v-.007h.002l.001-.01c0-1.407-4.076-3.445-11.447-3.445-6.61 0-10.559 1.752-10.559 3.446M53 34.018v9.756h.003l-.003.025v8.868h.003l-.003.025v8.863C53 65.297 46.031 67 39.556 67 31.929 67 27 64.863 27 61.555v-8.857l-.003-.031H27v-8.862l-.003-.031H27v-9.75l-.003-.031c0-3.308 4.93-5.447 12.559-5.447 6.476 0 13.447 1.705 13.447 5.447zM67 21.12a1 1 0 0 0 1-1V15a1 1 0 0 0-1-1H13a1 1 0 0 0-1 1v5.12a1 1 0 0 0 1 1 2.21 2.21 0 0 1 2.214 2.2A2.21 2.21 0 0 1 13 25.522a1 1 0 0 0-1 1v20.482a1 1 0 0 0 1 1h10v-2h-5v-3h5v-2h-6a1 1 0 0 0-1 1v4h-2V27.401a4.21 4.21 0 0 0 3.214-4.08A4.21 4.21 0 0 0 14 19.239V16h52v3.24a4.21 4.21 0 0 0-3.214 4.08A4.21 4.21 0 0 0 66 27.402v18.602h-2v-4a1 1 0 0 0-1-1h-6v2h5v3h-5v2h10a1 1 0 0 0 1-1V26.521a1 1 0 0 0-1-1 2.21 2.21 0 0 1-2.214-2.2c0-1.213.993-2.2 2.214-2.2M28 28v-8a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v17.001a1 1 0 0 0 1 1h3v-2h-2v-15h4v7zm30 8.001h-1v2h2a1 1 0 0 0 1-1v-17a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v8h2v-7h4zm-8-9V20a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v6h2v-5h5v6zm-13-1V21h-5v6h-2v-7a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v6z" />
          </g>
        </symbol>
        <symbol id={`${uid}-s6`} viewBox="0 0 80 80" overflow="visible">
          <g fill="none" fillRule="evenodd">
            <rect width="80" height="80" fill="#c925d1" />
            <path fill="#fff" d="M52.086 54.85c-3.338 2.699-10.341 4.125-17.042 4.125S21.337 57.548 18 54.85v5.436h.001c0 2.71 6.999 5.731 17.043 5.731 10.036 0 17.031-3.017 17.042-5.726zm.001-10.328 2-.01v.01c0 1.208-.605 2.336-1.783 3.369 1.428 1.256 1.783 2.489 1.783 3.367l-.001.017v9.01c0 5.01-9.811 7.715-19.042 7.715-9.209 0-18.994-2.693-19.041-7.68L16 60.304v-9.05l.002-.007c.003-.878.359-2.106 1.785-3.36-1.417-1.251-1.777-2.472-1.786-3.343h.001l-.002-.01v-9.05l.002-.01c.003-.877.36-2.105 1.786-3.357-1.418-1.252-1.778-2.474-1.787-3.344h.001L16 28.76v-9.048l.002-.01C16.019 14.7 25.82 12 35.044 12c5.211 0 10.217.828 13.734 2.272l-.765 1.833c-3.283-1.348-8.01-2.121-12.969-2.121-10.044 0-17.043 3.02-17.043 5.733S25 25.45 35.044 25.45c.271.003.536 0 .804-.01l.084 1.982c-.296.012-.592.012-.888.012-6.702 0-13.707-1.427-17.044-4.126v5.432h.001v.023c.01 1.04 1.077 1.949 1.971 2.526 2.69 1.715 7.51 2.886 12.885 3.13l-.091 1.981c-5.445-.247-10.213-1.377-13.282-3.108-.756.565-1.483 1.33-1.483 2.197 0 2.711 6.999 5.732 17.043 5.732.985 0 1.963-.032 2.908-.098l.139 1.979c-.99.068-2.016.103-3.047.103-6.702 0-13.707-1.427-17.044-4.126v5.432h.001c.01 1.064 1.077 1.971 1.971 2.55 3.076 1.962 8.852 3.184 15.072 3.184h.44v1.984h-.44c-6.319 0-12.062-1.174-15.574-3.156-.752.564-1.469 1.325-1.469 2.185 0 2.712 6.999 5.734 17.043 5.734 10.036 0 17.031-3.018 17.042-5.727v-.011c-.002-.862-.722-1.623-1.476-2.187a14 14 0 0 1-1.606.788l-.766-1.833c.726-.298 1.356-.62 1.873-.96.902-.588 1.976-1.507 1.976-2.54m8.566-14.505h-5.604a1 1 0 0 1-.827-.435.98.98 0 0 1-.103-.922l3.409-8.522H44.619l-6 11.902h6.382c.319 0 .619.152.808.407a.99.99 0 0 1 .145.886L40.258 51.09zm3.069-.305L38.723 55.54a1.006 1.006 0 0 1-1.233.165.99.99 0 0 1-.442-1.153l6.586-20.528h-6.633c-.347 0-.668-.178-.851-.47a.98.98 0 0 1-.043-.965l7-13.886a1 1 0 0 1 .894-.549h15c.33 0 .642.164.827.435a.98.98 0 0 1 .103.923l-3.41 8.521H63c.4 0 .763.238.92.603a.99.99 0 0 1-.198 1.076M19.455 60.674c1.417.799 3.201 1.47 5.302 1.994l.488-1.924c-1.899-.473-3.559-1.094-4.802-1.794zM24.757 46.8l.488-1.924c-1.899-.474-3.559-1.095-4.802-1.795l-.988 1.725c1.417.798 3.2 1.47 5.302 1.994m-5.302-17.863.988-1.725c1.241.7 2.902 1.32 4.802 1.795l-.488 1.923c-2.104-.525-3.887-1.196-5.302-1.993" />
          </g>
        </symbol>
      </defs>
      <rect width="911" height="846" fill="#ffffff" />
      <text fontSize="20" fontWeight="600" fill="#000000">
        <tspan x="28" y="43.78">
          Read-through cache on a product API
        </tspan>
      </text>
      <text fontSize="13" fill="#5f6b7a">
        <tspan x="28" y="66.18">
          Cache-aside with Amazon ElastiCache in front of DynamoDB; a miss reads the table and fills the cache for five minutes
        </tspan>
      </text>
      <g id={`${uid}-g-cloud`}>
        <rect x="259.83" y="96" width="622.26" height="721.6" fill="none" stroke="#232f3e" strokeWidth="1.67" />
      </g>
      <g>
        <rect x="468.11" y="431" width="359.48" height="251" rx="6" fill="#0972d3" fillOpacity="0.035" stroke="#a1a5aa" strokeWidth="1" />
        <path d="M70.07 239 V780" fill="none" stroke="#aaadb2" strokeWidth="1.25" strokeDasharray="5 4" />
        <rect x="28" y="780" width="84.13" height="25.6" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <text fontSize="12" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="70.07" y="797.17">
            Mobile app
          </tspan>
        </text>
        <path d="M311.33 256 V780" fill="none" stroke="#aaadb2" strokeWidth="1.25" strokeDasharray="5 4" />
        <rect x="238.86" y="780" width="144.94" height="25.6" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <text fontSize="12" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="311.33" y="797.17">
            Amazon API Gateway
          </tspan>
        </text>
        <path d="M489.11 256 V780" fill="none" stroke="#aaadb2" strokeWidth="1.25" strokeDasharray="5 4" />
        <rect x="440.04" y="780" width="98.15" height="25.6" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <text fontSize="12" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="489.12" y="797.17">
            AWS Lambda
          </tspan>
        </text>
        <path d="M654.09 256 V780" fill="none" stroke="#aaadb2" strokeWidth="1.25" strokeDasharray="5 4" />
        <rect x="584.43" y="780" width="139.32" height="25.6" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <text fontSize="12" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="654.09" y="797.17">
            Amazon ElastiCache
          </tspan>
        </text>
        <path d="M806.59 256 V780" fill="none" stroke="#aaadb2" strokeWidth="1.25" strokeDasharray="5 4" />
        <rect x="738.82" y="780" width="135.54" height="25.6" rx="6" fill="#ffffff" stroke="#c6ccd4" strokeWidth="1" />
        <text fontSize="12" fontWeight="600" fill="#000000" textAnchor="middle">
          <tspan x="806.59" y="797.17">
            Amazon DynamoDB
          </tspan>
        </text>
        <rect x="306.33" y="296" width="10" height="464" rx="2" fill="#ddebf9" stroke="#6e747b" strokeWidth="1" />
        <rect x="484.11" y="375" width="10" height="345" rx="2" fill="#ddebf9" stroke="#6e747b" strokeWidth="1" />
        <rect x="649.09" y="415" width="10" height="135" rx="2" fill="#ddebf9" stroke="#6e747b" strokeWidth="1" />
        <rect x="801.59" y="590" width="10" height="40" rx="2" fill="#ddebf9" stroke="#6e747b" strokeWidth="1" />
        <path d="M468.11 437 Q468.11 431 474.11 431 H503.19 V445 L497.19 451 H468.11 Z" fill="#ddebf9" stroke="#a1a5aa" strokeWidth="1" />
        <text fontSize="11" fontWeight="600" fill="#000000">
          <tspan x="476.11" y="445">
            alt
          </tspan>
        </text>
        <rect x="509.19" y="432.5" width="74" height="17" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="513.19" y="445.18">
            [cache hit]
          </tspan>
        </text>
        <path d="M468.11 501 H827.59" fill="none" stroke="#a1a5aa" strokeWidth="1" strokeDasharray="6 4" />
        <rect x="509.19" y="504" width="80" height="17" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000">
          <tspan x="513.19" y="516.68">
            [cache miss]
          </tspan>
        </text>
      </g>
      <g id={`${uid}-e-e1`}>
        <path d="M70.07 296 L298.33 296" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M306.33 296 L297.33 300.5 L298.83 296 L297.33 291.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e2`}>
        <path d="M316.33 316 L338.33 316 Q346.33 316 346.33 324 L346.33 329 Q346.33 337 338.33 337 L324.33 337" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M316.33 337 L325.33 332.5 L323.83 337 L325.33 341.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e3`}>
        <path d="M316.33 375 L476.11 375" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M484.11 375 L475.11 379.5 L476.61 375 L475.11 370.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e4`}>
        <path d="M494.11 415 L641.09 415" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M649.09 415 L640.09 419.5 L641.59 415 L640.09 410.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e5`}>
        <path d="M649.09 483 L502.11 483" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M494.11 483 L503.11 478.5 L501.61 483 L503.11 487.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e6`}>
        <path d="M649.09 550 L502.11 550" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M494.11 550 L503.11 545.5 L501.61 550 L503.11 554.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e7`}>
        <path d="M494.11 590 L793.59 590" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" />
        <path d="M801.59 590 L792.59 594.5 L794.09 590 L792.59 585.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e8`}>
        <path d="M801.59 630 L502.11 630" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M494.11 630 L503.11 625.5 L501.61 630 L503.11 634.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e9`}>
        <path d="M494.11 670 L646.09 670" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M654.09 670 L645.09 674.5 L646.59 670 L645.09 665.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e10`}>
        <path d="M484.11 720 L324.33 720" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M316.33 720 L325.33 715.5 L323.83 720 L325.33 724.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-e-e11`}>
        <path d="M306.33 760 L78.07 760" fill="none" stroke="#545b64" strokeWidth="1.5" strokeLinejoin="round" strokeDasharray="6 4" />
        <path d="M70.07 760 L79.07 755.5 L77.57 760 L79.07 764.5 Z" fill="#545b64" />
      </g>
      <g id={`${uid}-el-e1`}>
        <rect x="133.5" y="272" width="109.39" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="188.2" y="286.68">
            GET /products/42
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e2`}>
        <rect x="354.33" y="316" width="124.78" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="416.72" y="330.68">
            verify JWT, rate limit
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e3`}>
        <rect x="352.67" y="351" width="95.09" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="400.22" y="365.68">
            getProduct(42)
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e4`}>
        <rect x="522.43" y="391" width="98.35" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="571.6" y="405.68">
            GET product:42
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e5`}>
        <rect x="527.06" y="459" width="89.07" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="571.59" y="473.68">
            product JSON
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e6`}>
        <rect x="559.42" y="526" width="24.36" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="571.6" y="540.68">
            nil
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e7`}>
        <rect x="597.14" y="566" width="101.41" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="647.85" y="580.68">
            GetItem(id = 42)
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e8`}>
        <rect x="607.35" y="606" width="81" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="647.85" y="620.68">
            product item
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e9`}>
        <rect x="504.11" y="646" width="139.98" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="574.1" y="660.68">
            SET product:42 EX 300
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e10`}>
        <rect x="360.62" y="696" width="79.2" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="400.22" y="710.68">
            200 product
          </tspan>
        </text>
      </g>
      <g id={`${uid}-el-e11`}>
        <rect x="99.07" y="736" width="156.76" height="21" rx="4" fill="#ffffff" fillOpacity="0.92" />
        <text fontSize="11.5" fill="#000000" textAnchor="middle">
          <tspan x="177.45" y="750.68">
            200 product (max-age 60)
          </tspan>
        </text>
      </g>
      <g id={`${uid}-gh-cloud`}>
        <rect x="303.83" y="106.55" width="79.42" height="18.9" rx="3" fill="#ffffff" />
        <use href={`#${uid}-s1`} x="259.83" y="96" width="40" height="40" />
        <text fontSize="13" fontWeight="600" fill="#000000">
          <tspan x="307.83" y="120.73">
            AWS Cloud
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-client`}>
        <use href={`#${uid}-s2`} x="38.07" y="148" width="64" height="64" />
        <text fontSize="13" fill="#000000" textAnchor="middle">
          <tspan x="70.08" y="231.18">
            Mobile app
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-gateway`}>
        <use href={`#${uid}-s3`} x="279.33" y="148" width="64" height="64" />
        <text fontSize="13" fill="#000000" textAnchor="middle">
          <tspan x="311.33" y="231.18">
            Amazon API
          </tspan>
          <tspan x="311.33" y="248.08">
            Gateway
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-service`}>
        <use href={`#${uid}-s4`} x="457.11" y="148" width="64" height="64" />
        <text fontSize="13" fill="#000000" textAnchor="middle">
          <tspan x="489.1" y="231.18">
            AWS Lambda
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="489.1" y="248.58">
            Product service
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-cache`}>
        <use href={`#${uid}-s5`} x="622.09" y="148" width="64" height="64" />
        <text fontSize="13" fill="#000000" textAnchor="middle">
          <tspan x="654.09" y="231.18">
            Amazon ElastiCache
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="654.09" y="248.58">
            Valkey
          </tspan>
        </text>
      </g>
      <g id={`${uid}-n-table`}>
        <use href={`#${uid}-s6`} x="774.59" y="148" width="64" height="64" />
        <text fontSize="13" fill="#000000" textAnchor="middle">
          <tspan x="806.6" y="231.18">
            Amazon DynamoDB
          </tspan>
        </text>
        <text fontSize="11.5" fill="#5f6b7a" textAnchor="middle">
          <tspan x="806.59" y="248.58">
            Products table
          </tspan>
        </text>
      </g>
    </svg>
  );
}
