PR Review Lab · Route Checkout to the New Pricing Service

35:00left of 35:00

Route Checkout to the New Pricing Service

Pricing has been extracted from the monolith into its own service, and this routes checkout to it. It adds the Deployment, Service, and VirtualService for pricing-v2, points the checkout pricing client at the new service, and removes the catalog price fallback, since pricing-v2 is now the source of truth. Retries are on in the mesh and in the client, so one bad pod won't fail a checkout. Verified in staging: quotes come back and checkout completes end to end.

Adeploy/pricing/pricing-v2.yaml1 of 4

Files Changed

deploy/pricing/

checkout/src/pricing/

checkout/src/routes/

deploy/pricing/pricing-v2.yaml

YAML · Click a line number to comment · Tap a line to comment
@@ -0,0 +1,60 @@
Added: apiVersion: apps/v1
Added: kind: Deployment
Added: metadata:
Added: name: pricing-v2
Added: namespace: pricing
Added: labels:
Added: app: pricing-v2
Added: spec:
Added: replicas: 6
Added: selector:
Added: matchLabels:
Added: app: pricing-v2
Added: template:
Added: metadata:
Added: labels:
Added: app: pricing-v2
Added: spec:
Added: containers:
Added: - name: pricing
Added: image: registry.internal/pricing:2.0.0
Added: ports:
Added: - containerPort: 8080
Added: env:
Added: - name: WARM_RULES_ON_START
Added: value: "true"
Added: livenessProbe:
Added: httpGet:
Added: path: /healthz
Added: port: 8080
Added: initialDelaySeconds: 5
Added: ---
Added: apiVersion: v1
Added: kind: Service
Added: metadata:
Added: name: pricing-v2
Added: namespace: pricing
Added: spec:
Added: selector:
Added: app: pricing-v2
Added: ports:
Added: - port: 80
Added: targetPort: 8080
Added: ---
Added: apiVersion: networking.istio.io/v1beta1
Added: kind: VirtualService
Added: metadata:
Added: name: pricing
Added: namespace: pricing
Added: spec:
Added: hosts:
Added: - pricing.pricing.svc.cluster.local
Added: http:
Added: - route:
Added: - destination:
Added: host: pricing-v2.pricing.svc.cluster.local
Added: weight: 100
Added: retries:
Added: attempts: 3
Added: perTryTimeout: 2s
Added: retryOn: 5xx,reset,connect-failure