Skip to main content

Plan · review

Move the public API to the new gateway

Select any text to comment on it, answer the open decisions, then copy your feedback for the agent.

Steps

  1. Mirror traffic

    Send a copy of production requests to the new gateway and compare responses.

  2. Switch reads

    Route read endpoints once error rates match for seven days.

  3. Switch writes

    Move write endpoints behind a flag, one service at a time.

Routing rule

gateway/routes.yamlyaml
routes:
  - match: /v1/orders
    upstream: orders-v2
    mirror: true
  - match: /v1/users
    upstream: users-v1

Open decisions

How do we roll back a failed switch?

Both keep data in place. They differ in how fast a rollback takes effect.

Answering and commenting work when JavaScript is on.

How long do we mirror before switching reads?

Answering and commenting work when JavaScript is on.

Your feedback

Select any text on the page, or use a section’s Comment button, to leave a comment. Then copy your feedback and paste it back to the agent.

    Answering and commenting work when JavaScript is on.