Zhao Pengcheng
Singapore (UTC+8) Singapore PR (+65) 90816821 Chris.zpc0613@gmail.comSummary
Principal Engineer with 9 years at Shopee, leading platform engineering for a Go marketplace backend of thousands of services: service frameworks, version governance, distributed tracing and fleet-wide CPU efficiency. I find the leverage point, prove it with measurement or a proof of concept, set the technical direction and bring many teams along; I have led groups of up to 13 engineers. Most recently I started an org-level agent memory layer and moved my team to AI-native engineering.
Selected impact
Savings across Shopee’s Go fleet (2025-26)
Led the efficiency program (PGO, GC tuning, library-level optimisation such as JSON, and Combined Deployment of upstream and downstream services). It built an end-to-end method, from hotspot analysis and optimisation through validation and canary rollout to benefit measurement, and drew architectural lessons from the failure of Combined Deployment to scale.
A platform upgrade path with no business-code changes (since 2023)
440K instances; 90%+ of Go CPU in the Shopee Marketplace business unit, ≈60% Shopee-wide. GAS, Shopee’s Go application server, layers stable interfaces over swappable implementations and upgrades services proactively under automated canary analysis, so cross-team changes that took months now ship within two weeks.
Shopee’s distributed tracing protocol and SDK (2020)
Adopted by 3,000+ services and still the company standard.
Org-level agent memory (2026)
An enterprise memory layer that lets agents share reusable experience across repositories and teams, built by a team of two engineers; both of Shopee’s largest internal agent platforms chose to integrate it.
Experience
Shopee, Singapore
Four promotions in nine years
Jul 2017-PresentPrincipal Engineer
Jan 2025-PresentResponsible for GAS (now 4,900+ services), efficiency and AI-native engineering; leads a group of 5.
Fleet-wide efficiency program, 2025-26
- Targets the 1,000+ services using 100 or more cores, with every lever delivered through GAS upgrades. Breakdown: PGO ≈60K cores, GC and JSON ≈57K, logging, monitoring and A/B-test libraries ≈30K, Combined Deployment ≈3K.
- PGO: an optional compiler optimisation since Go 1.21, adopted by only about 10 services in two months of self-service onboarding. It was reworked into a platform-led, automated rollout: automatic profile collection and aggregation, automatic injection and enabling at build time, and canary-based rollout with benefit measurement. Now enabled on about 800 services with no business-team involvement, a median gain of about 4.8% and no PGO-related incidents.
- GC and JSON: hotspots identified and gains estimated from peak profiles aggregated across the 100 most resource-intensive services. GC tuning and the switch to the Sonic JSON library are controlled at runtime; dry runs, metric reporting and gradual rollout caught the bugs found along the way early, and they were fixed. Before the full-link load test, every target service is split 50/50 by instance for a final test and then frozen; gains are computed from the grouped metrics at the sale peak, and seconds-level rollback keeps services safe in extreme cases. Enabled on 200+ services with no production incidents.
- Combined Deployment: compiles RPC-coupled upstream and downstream services into one process so calls run in-process; 9 pairs went live (≈3K cores). Adoption stalled, and the largest RPC consumer saved the same CPU another way, so promotion stopped in mid-2025; it stays an optional GAS capability, which one business has since adopted on its own. Lesson: even with automated cascaded deployment and isolated logs and metrics, one shared process erases the isolation that microservices provide. Release cycles stay coupled; a panic in the dependency takes down its caller instead of surfacing as an RPC error code; and habits such as reading logs inside the container rather than on the log platform leave a dependency’s maintainers needing access to its callers’ containers. The levers that scaled (PGO, GC, JSON) need no business-team effort and are switched and measured by the platform.
AI-native engineering and org-level agent memory, 2026
- The paradigm has shifted to a general coding agent plus Skills, so an agent-development framework was dropped. Agents on non-coding work (deployments, troubleshooting, operations) still need a human for context held in people’s heads or stale docs, which led to org-level memory: a shared experience layer along the team hierarchy where agents record and share the long-tail detail that Skills and docs cannot hold. Validated with a mem0 proof of concept and built by a team of two engineers; AI coding agents write all the code, while the idea, architecture, evaluation design and accept-or-reject calls stay with the humans.
- Early results: Shopee’s two largest internal agent platforms have both chosen to integrate it and co-build the dynamic experience layer; case studies on a production agent show faster, higher-quality answers with less human involvement.
- The team’s move to Claude-first engineering: a shared BE harness, a GAS Q&A bot rebuilt on Claude (weekly escalations ≈11 → ≈4), and an AI-driven upgrade workflow with human checks at key steps, which carried the NamingSDK switch and a library upgrade across hundreds of services. PIC of BE Digital Employee.
Senior Expert Engineer
Jan 2023-Dec 2024Led the Dev Platform team (13 engineers at the peak) to design and build GAS from the ground up.
GAS (Go Application Server), 2023-24
- The problem: the Engineering Infra Head raised the pain of iterating and upgrading infra components: rolling out a new infra capability across thousands of microservices took months of cross-team pushing. The goal was to decouple business iteration from infrastructure iteration.
- Architecture: SPI interfaces layered over SP implementations: business code depends only on stable SPIs (Service Provider Interfaces), and the capabilities behind them are swappable SPs (Service Providers). Business code develops objects, not services, so its lifecycle stays under platform control; SPs and the engine (the unified server and IoC container implementation) are composed at build time through generated code and go.mod rewriting, so an upgrade is a rebuild and redeploy with no source change. Go plugins were prototyped and passed over (runtime panics when versions differ) in favour of build-time composition.
- Delivery: the engine and other server implementations, spkit-cli (development and build tooling) and control-center (the control plane); the company’s existing common infra components were also reworked into SPIs/SPs, including DB, cache, Kafka, HTTP, gRPC and remote config.
- Transparent upgrades: the platform’s core value. In proactive rollout, GAS maintainers rebuild a service on a new engine version at the same commit and release it through multi-stage canaries judged by automated analysis, promoting or rolling back on the result. A survey of existing frameworks and canary tools found no equivalent, so it was built in-house.
- Migration verification: the Shopee Marketplace business unit’s migration (1,700+ services, 6 teams). Some services looked migrated but used no SPI/SP and still called open-source libraries directly, so upgrades could not reach them; call-stack analysis built on SSA-based static code analysis identifies those call sites and drives complete migration.
- Outcomes: 2,300+ services in 8 departments by Oct 2024; 88%+ on controlled library versions (before: 34% and under 5% for two libraries); 5 minor and 50+ patch releases, no major incident; proactive rollouts upgraded 83-87% of targeted services each quarter of 2025.
Expert Engineer
Sep 2019-Dec 2022Team lead of BFF (3 growing to 7), then of Dev Platform (manager from Mar 2022).
BFF team lead, Sep 2019-Dec 2020
- API-layer migration: the Shopee Marketplace business unit’s API layer, from a Python monolith to Go microservices.
- Diff testing: goreplay records read-only production traffic and replays it, and the responses of the old and new implementations are compared; common noise fields are configured out, so real traffic drives the functional regression.
- Gradual cut-over: a Lua extension script on nginx chooses dynamically between the Python and Go upstreams by rule, so traffic shifts to the new services in stages.
- Distributed tracing protocol and SDK: the OpenTracing interface could not carry all the internal requirements, so a customised protocol and SDK were built with the data format kept consistent.
- Protocol: a 32-byte span context reuses the existing request-ID field, so the wire protocol is unchanged and services keep their existing usage habits.
- Debug trace: switched on per request, it collects far more detailed debug logs in full for troubleshooting. Open-source jaeger-tracer reports over UDP, and spans above the single-packet size limit were silently dropped; wrapping jaeger-tracer in a composite tracer sends debug spans over HTTP and normal spans over UDP, which removes the limit.
- RPC integration: covers the company’s three RPC protocols: direct TCP, HTTP and Spex (the in-house service mesh).
- Carrier for company-level projects: the later full-link load test (carrying a stress-test flag) and PFB (carrying the feature name) are built on this protocol, which is now rolled out across most services.
Dev Platform team lead, Jan 2021-Dec 2022
- spkit: a Go service scaffold with a CLI tool, a unified config library, service lifecycle management and common interceptors, supporting all of the company’s RPC protocols (HTTP, Spex, gRPC) and Kafka consumers; 600+ services and 400+ engineers by 2022, the default for every new service in the Shopee Marketplace business unit.
- PFB 2.0: the Shopee Marketplace business unit’s adoption of the company-wide per-feature test environments, across 800+ services in 11 teams.
Senior Engineer
Nov 2018-Aug 2019Built API-layer platform features for the Shopee Marketplace business unit: Memcached sharding, CDN migration, dynamic config.
Engineer
Jul 2017-Oct 2018Built core API-layer features for the Shopee Marketplace business unit: shopping cart, orders, return and refund.
Strengths and skills
- Strengths
- Technical direction under ambiguity; fleet-wide change across many teams; evidence-driven decisions; building and leading engineering groups
- Technical
- Go (primary), Python; pprof, PGO, GC tuning, code generation, control-plane design, static analysis, distributed tracing; LLM retrieval and evaluation; AI coding agents
Education and talks
Talks: Shopee Tech Summit 2021 (spkit); company sessions on tracing and PFB 2.0.