Which ecommerce feature should migrate first to Google Cloud?

PCD By islever Editorial Last updated

Designing high-performing applications and APIs. Building.

Short answer

A Migrate the Product catalog first, since its only integrations to the frontend and product database keep the revenue-critical payment, order, inventory, and shipping systems on the monolith during the initial stage.

Question

You have been tasked with planning the migration of your company's application from on-premises to Google Cloud. Your company's monolithic application is an ecommerce website. The application will be migrated to microservices deployed on Google Cloud in stages. The majority of your company's revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select the first functionality to migrate. What should you do?
  1. Migrate the Product catalog, which has integrations to the frontend and product database. Correct Answer
  2. Migrate Payment processing, which has integrations to the frontend, order database, and third-party payment vendor.
  3. Migrate Order fulfillment, which has integrations to the order database, inventory system, and third-party shipping vendor.
  4. Migrate the Shopping cart, which has integrations to the frontend, cart database, inventory system, and payment processing system.

Key Takeaways

Staged cloud migration of an ecommerce monolith hinges on choosing the lowest-blast-radius first slice, and the Product catalog is that slice here. Its only integrations are the frontend and product database, so checkout, payment, inventory, and shipping stay on the proven monolith while the new microservice proves itself. Payment processing, order fulfillment, and the shopping cart each pull a revenue-critical or third-party dependency into the first cutover, contradicting the goal of minimizing risk.

Expert Analysis

The deciding condition is risk concentration: with online sales driving the company's revenue, the first slice of functionality to move must be the one whose failure would neither interrupt checkout nor require payment, inventory, or shipping systems to be correct on day one, and the Product catalog alone satisfies that test among the four candidates.

Product catalog carries the least migration risk in this ecommerce monolith

Each option differs in how many business-critical dependencies it drags across the boundary, and that count is what the migration lead should price. Payment processing couples the frontend to the order database and a third-party payment vendor, so a bad cutover stalls revenue at the exact moment it is earned. Order fulfillment reaches into the inventory system and a third-party shipping vendor, where a defect produces undeliverable orders and refund exposure. The Shopping cart is worst of all, because it touches the frontend, the cart database, the inventory system, and payment processing, making it a convergence point for four failure domains at once. The Product catalog, by contrast, integrates only with the frontend and the product database. Read-mostly product data tolerates eventual consistency, and the downstream order and payment paths remain on the proven monolith while the new service proves itself. Staging the migration around low-blast-radius slices first is the standard mitigation for revenue-critical cutovers, and the catalog is the lowest-blast-radius slice listed.

The catalog is migrated first at the seam where the monolith hands off reads

Migration in stages means the cut happens at an interface, not inside a transaction: the storefront's product lookups are redirected to the new microservice while writes continue to be reconciled with the product database that the monolith already owns. Because the catalog service integrates only with the frontend and that database, the seam exposes a small, well-defined contract — product read APIs plus data synchronization — that can be verified with shadow reads and traffic mirroring before any user-facing switch. Nothing on the order, payment, inventory, or shipping path is touched at this stage, so the staged rollout can be reversed by repointing the frontend at the old monolith without unwinding downstream side effects. This is where the choice of first slice actually takes effect: the integration surface chosen now determines how many rollback points the team needs, and choosing the catalog keeps that surface to one frontend and one database.

Each alternative couples the first cutover to systems that must not fail

Migrating Payment processing (B) makes the first stage depend on correct order-database writes and a live third-party payment vendor, so any schema or idempotency defect at the seam blocks revenue rather than merely degrading a browse page. Migrating Order fulfillment (C) puts inventory accuracy and shipping-vendor callbacks on the critical path of the very first release, turning an early bug into stock discrepancies and late deliveries that customer support must unwind. Migrating the Shopping cart (D) forces inventory reservation and payment orchestration to work correctly in the new deployment before any benefit is realized, and because the cart sits between the frontend and both checkout and stock, its failure halts the entire purchase funnel. A first slice that fails must fail quietly; all three of these options fail loudly, at the point where customers have already committed to buying.

The alternative becomes correct when revenue-critical coupling is not the constraint

The catalog would stop being the right first move if the stated priority were, for example, proving the highest-risk integration as early as possible, unblocking a payment-platform deadline, or retiring the monolith fastest regardless of exposure — under those goals, Payment processing or the Shopping cart would be defensible because they exercise the hardest seams while there is still runway. That condition is not met here: the company's majority revenue comes from online sales and the explicit instruction is to minimize risk, which rewards the slice whose failure is recoverable and whose dependencies stay behind. Even a catalog with frontend and product-database integrations is not risk-free — the frontend contract and data sync must be validated — but its failure degrades discovery, not checkout, and the monolith continues to sell throughout. Risk minimization under revenue pressure therefore orders the slices by downstream coupling, and the Product catalog ranks first.

Exam Strategy

In staged-migration questions, rank options by how many downstream systems each one drags into the first cutover, then pick the slice whose failure degrades only a non-revenue-critical function. Treat third-party vendors, payment paths, and shared state like the shopping cart as multipliers of blast radius, and remember that a first stage should be reversible by repointing traffic rather than by unwinding side effects. Apply the same ordering logic when an exam offers a feature list with varying integration counts.

Practice All PCD Questions

Access 84 questions with complete answers and detailed explanations.

View Full PCD Practice Test →

← Back to PCD Study Guide