Skip to content

WIP: Add routes.pod_id and implement automatic pod redirection

Dylan Griffith requested to merge many-pods-with-pod-locator into many-pods

What does this MR do and why?

Simple demo of how the redirection and caching logic should work in Rails for Pods as described in !97320 (merged) . This is based on this POC !99132 (closed) and adds only:

  1. routes.pod_id column
  2. Model logic to persist the current pod as routes.pod_id when creating these
  3. Rack middleware to set headers based on which pod should be serving a request

Screenshots or screen recordings

https://youtu.be/oJ6AYmJP524

How to set up and validate locally

Same instructions as !99132 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Dylan Griffith

Merge request reports