Will Cheung.
← Selected work
01 / Platform architecture

EcoHope Digital Platform

Building the systems behind a recycling subscription business—from customer billing and service entitlements to physical collections, merchant rewards and operational reporting.

The challenge: connect a digital subscription to a service delivered in the physical world, with a lean engineering team and uncertain early demand.

My contribution: platform and domain architecture, AWS infrastructure, engineering practices, technical leadership and extensive hands-on implementation.

Context

ECOHOPE INTERNATIONAL HK LIMITED
Oct 2025–present

My progression

System Architect · Oct 2025–May 2026
Head of Technology · Jun 2026–present

Delivery scope

Customer & merchant apps · Business & admin portals · APIs · Content & operations

Technology stack

Backend & data
TypeScript · Node.js · NestJS · Prisma · PostgreSQL
Web & mobile
React · Next.js · Astro · Flutter · Payload CMS
Serverless architecture & integration
AWS Lambda · API Gateway · CloudFront · RDS · ECS · S3 · SQS · EventBridge · Secrets Manager · Stripe · SF Express
The starting point

A business workflow, across several products.

EcoHope’s service connects customers subscribing to plastic recycling with the operations required to deliver bags, arrange collections, record recycling activity and provide rewards. A customer payment is one part of that journey; the service continues through logistics and merchant interactions.

I joined at the greenfield stage, before an internal software platform and engineering function had been established. I worked with management and operational teams to translate that business into applications, domain models, integrations and a delivery process.

Architecture & implementation

I owned technical direction and cloud architecture, and personally implemented the majority of the backend and internal web systems.

Team & vendor leadership

I led a team comprising a mobile developer and a frontend developer, reviewed external mobile-vendor work, and retained technical approval over integration and releases.

The constraint was breadth: customer, merchant, business and factory workflows needed to fit together, while the team also needed to maintain and release what it built.

System shape

Make ownership explicit before separating services.

I organised the platform around business responsibilities including identity, customers, subscriptions, payments, recycling, logistics, loyalty and notifications. Customer, organization and administrative interfaces exposed the capabilities appropriate to their users.

Conceptual responsibility map; business domains are not a count of independently deployed services.

The backend used a shared PostgreSQL database with explicit domain boundaries. Foreign keys stayed within bounded contexts, while cross-context references used public identifiers. This kept data ownership visible without requiring a separate database and deployment for every domain.

The trade-off

A shared database simplified early operations, but preserving boundaries still depended on code structure, repository conventions and review. Public identifiers make references explicit; they do not enforce cross-domain consistency on their own.

Design problem / 01

Payment frequency and service eligibility are different rules.

A billing provider understands payment schedules, invoices and subscription status. The recycling business also needs to know whether a customer is entitled to a collection, which service period it belongs to and how it relates to a collection order.

A representative requirement

A yearly plan collects payment once a year while providing one recycling collection each month. One successful payment therefore cannot be treated as one collection, or as twelve collections that are all immediately usable.

The decision

I treated subscription billing, recycling entitlements and collection orders as separate concepts. Stripe handled billing; the application represented service rights and operational orders according to EcoHope’s rules.

ConceptThe question it answers
Subscription & paymentWhich plan has the customer purchased, and what is its billing state?
Service entitlementWhich recycling service is included for the applicable period?
Collection orderWhat pickup or replacement has been requested, and what is its operational progress?

Why the separation mattered

The model provided a place for service rules to evolve independently of payment frequency. It also kept initial bag delivery and subsequent recycling orders visible as operational workflows, rather than treating every payment as an instruction to dispatch a collection.

The trade-off

This required explicit coordination between billing state, entitlement rules and booking behaviour. It made the business logic clearer, while adding lifecycle decisions that a billing integration alone could not resolve.

Design problem / 02

One redemption journey, three fulfillment models.

Customers earn loyalty points and exchange them for rewards. The asset delivered by a redemption varies by merchant: some rewards are verified in person, some use a reusable code or link, and others consume a unique asset from a finite pool.

I designed the reward model to distinguish these fulfillment types, keeping point redemption, asset delivery and merchant verification clear.

Reward modelFulfillment & inventory behaviour
EcoHope-managedConfigured reward inventory with merchant verification by scanning the customer’s app QR code in the merchant app.
Client-shared assetA reusable code, URL or value supplied by the client. Appropriate for offers where the asset itself does not need a unique allocation.
Client-unique assetsA pool of distinct codes, URLs or values supplied by the client. An individual asset is allocated when the customer redeems the reward.

The important distinction

Giving a customer a unique coupon and verifying an in-person merchant reward are different fulfillment operations. For a unique asset pool, availability depends on unallocated assets. For merchant scanning, the platform also needs a redemption record and a way to distinguish unused, redeemed, expired and voided rewards.

The trade-off

Explicit fulfillment types added inventory and lifecycle rules, but allowed different merchant arrangements to fit the platform without forcing every reward into the same coupon mechanism.

Design problem / 03

Keep early cost proportionate. Give production stronger boundaries.

Demand was uncertain, and the platform needed several environments. I selected serverless compute for elastic API workloads and managed services for supporting infrastructure, avoiding the need to reserve application-server capacity for projected traffic in each environment.

Use compute according to the workload

The APIs used NestJS on Lambda containers behind API Gateway and CloudFront. RDS PostgreSQL provided the application database. The Payload content service ran on ECS behind an application load balancer, while static content and media used S3 and CloudFront.

This was a workload-specific choice: APIs, a running CMS and static assets have different execution needs. Serverless application compute reduced idle compute cost; databases, networking and other persistent infrastructure still contributed to the operating bill.

Separate production beyond configuration

I established an AWS Organizations model covering billing, shared infrastructure and application production/non-production workloads, with controlled developer access and cross-account permissions. Private networking and controlled outbound IPs supported integrations requiring allowlisting.

The trade-off

Account and network boundaries strengthened production isolation and cost attribution. They also increased IAM, deployment and network coordination. Managed services reduced infrastructure administration, while connection management and end-to-end integration testing remained engineering responsibilities.

Operating the architecture

Keep feature testing and urgent fixes moving.

The release process needed to accommodate features under extended business testing and urgent production fixes at the same time. A single shared acceptance environment could be occupied by an unfinished feature when a fix needed validation.

I separated environment responsibilities so those activities had a defined place:

EnvironmentPurpose
DevelopmentDeveloper validation against AWS services before handing changes to integration testing.
IntegrationValidation of interactions across applications, services and external integrations.
UATBusiness acceptance and longer-running feature testing.
StagingA production-aligned environment available for urgent fix validation while UAT holds feature work.
ProductionThe live customer and operational environment.

The additional environments increased configuration and deployment upkeep. Their purpose was to preserve a reliable path for urgent changes without interrupting acceptance testing.

Make production changes reviewable

I introduced CI/CD, UAT and release practices, alongside architecture and pull-request review for internal and vendor work. Database evolution used expand-and-contract practices so schema changes, application compatibility and data migration could be handled in stages.

Protect configuration that can disable the app

Mobile application configuration was delivered as a static JSON endpoint through Astro, S3 and CloudFront. Changes required a pull request. A force-update version can prevent installed clients from continuing, so I retained engineering review rather than exposing that control as an ordinary CMS edit.

This kept the client contract portable and the critical configuration reviewable, at the cost of a slower editing path than direct content administration.

Delivery & reflection

Connect architecture to everyday operations.

The work covered customer and merchant applications, administrative and business interfaces, subscription and recycling backends, content services and internal operational tools. I combined technical ownership with substantial implementation and the practices needed to continue releasing the platform.

A concrete operational delivery was the Simple Merchant Recycle System, implemented in approximately two weeks. It replaced Excel-based factory records with electronic recycling transactions, operational reporting and client reporting.

The central lesson was that billing, service rights, physical fulfillment and merchant rewards need their own explicit rules. Clear ownership made those differences easier to reason about, while a lean infrastructure and a reviewable release process kept the architecture connected to what the team could operate.

How I structured AI-assisted delivery across the team →