← BACK TO THE WORK
01 / LETZGO2025

Different starting points.
A shared journey.

A peer-to-peer carpooling platform. I architected the distributed backend that connects ride matching, recurring commutes, live trip coordination, notifications, and payments.

Visit LetzGo (opens in a new tab)
CONTEXT
Backend architecture & implementation
TOOLS
Node.js · Redis / BullMQ · Socket.IO · Stripe Connect
ROUTE CORRIDOR / LETZGOTRY A PICKUP
drop someone along the way.

Drag a passenger pin. Or focus it and use arrow keys. Everyone is headed to B.

driver origindestination B 123
Closest pickup ranks first.ILLUSTRATIVE MATCHING · NOT LIVE DATA
PICKUP RANKINGDISTANCE FROM ROUTE

    4-TIER CORRIDOR FILTER · PINS IN 01–03 PASS

    Move a pin to explore the ranking.

    The interactive ranking needs JavaScript. The route illustration shows pickups around a shared journey.

    How this sketch ranks +

    This demo sorts pickups by their shortest straight-line distance to the drawn route, in diagram units. Everyone shares destination B. It does not model roads, travel time, direction, or LetzGo’s production matching rules. The four bands mirror the case study’s corridor tiers; here a 60-unit threshold decides which pins pass.

    01 02 03 04 Road-network queries ↗

    Candidates move through four filtering stages before the remaining routes are evaluated on the road network.

    01

    The problem is
    in the journey.

    Two people can be close on a map and still be a poor match for a shared ride.

    A carpooling system has to consider the route, pickup and drop-off order, and the work it takes to evaluate each candidate. The backend also has to keep the trip coordinated once a match becomes a real journey.

    02

    Do the cheap
    work first.

    I used a four-tier route-corridor classification algorithm before making road-network queries. Filtering candidates earlier reduced the search space by over 85%, lowering the downstream routing workload.

    >85%reduction in candidate search space
    As reported in my resume.

    The important decision was where to spend computation: narrow the candidates first, then use road-network information for the remaining possibilities.

    A smaller routing detail: pickup before drop-off +

    Multi-stop pickup-and-delivery routing uses precedence constraints and precomputed distance matrices, enabling sub-millisecond route evaluations without repeated external API calls.

    03

    A ride keeps
    moving.

    Redis and BullMQ workers handle scheduled work, while Socket.IO supports live GPS, presence, and chat flows. Recurring commutes and notifications fit into the same broader coordination problem.

    Scheduled work→Redis / BullMQ→Coordination

    Stripe Connect supports payment holds and payouts. Together these parts turn a matching result into a journey people can actually take.

    04

    Measure the
    system, too.

    The backend served 700+ users. In Artillery load tests, measured P99 endpoint latency stayed below 100 ms; Prometheus and New Relic provided monitoring.

    the thread through it all

    Spend the expensive work on the candidates that matter.

    FOLLOW THE NEXT CONNECTIONNext stop: Popin ↗