Home/Work/YPER/Platform
YPER · 2016 — 2025

The platform.

One core. Every app. Every partner.

Behind the apps: a Python core, a matching engine, a tasker that never slept and a ledger that knew where every euro was. Ten years of architecture that carried 3 million deliveries and plugged YPER into the systems of retailers, carriers and banks.

Fifteen products looked like fifteen companies. Underneath, it was one platform.

39code repositories
48,600commits, 2016 to 2025
437klines of Python in the core, tests included
41developers contributed to the core
3M+deliveries carried
37.8Mdelivery proposals computed by the matching engine
132scheduled jobs in the tasker
34integrations with outside systems
01 · Who does what

Seven kinds of users, one source of truth

A delivery at YPER involved a lot of people who never saw each other: the shop that sold the goods, the person who carried them, the person who received them, sometimes a hub team in between, and always someone at YPER keeping an eye on it.

Each of them had their own app. None of them had their own data. Every screen read and wrote the same delivery, through the same API, so that the florist, the Shopper and the support team were always looking at the same truth.

Twelve products, all reading and writing the same deliveries.Shops book deliveries, follow them live and get one invoice a month.Recipients follow their order, talk to the person bringing it and rate the delivery.Individuals who deliver on their way home: proposals, missions, earnings.Self-employed couriers: availability, rounds, proof of delivery.Hub teams scan parcels in, store them on racks and prepare the rounds.Support, sales, operations and management: watch, act, invoice, decide.Retailers' own software sends orders in and receives tracking back.

Web · Next.jsYper Shop

Book, track and pay for deliveries; address book, multi-store accounts, invoices.

See the page
iOS · Android · FlutterYper Shop+

The same, in a pocket: order a delivery from the shop floor, even by voice.

See the page
Tablet · FlutterShop'N'Go

A tablet at the checkout: customers leave their shopping and have it delivered.

WebTracking and website

Live tracking link, chat with the deliverer, rating; ordering for individuals.

iOS · Android · FlutterYper Shopper

Proposals on your route, the mission step by step, a wallet you can cash out at any time.

See the page
iOS · Android · FlutterYper Riders

Availability, rounds, scanning, proof of delivery, temperature sensors for chilled goods.

See the page
iOS · Android · FlutterYper Partners

Vehicle check-out for Drive to Home drivers: walk-around, meters, tyre pressure, plate scan.

See the page
Android · FlutterYper Hubs

Parcel intake by barcode, rack positions, round preparation, returns.

See the page
Web · SymfonyCRM

Every delivery, customer and Shopper on one screen, with the button to call them.

See the page
Web · React · Flutter webOPS Suite

Desk, claims, alerts, dispatch and invoicing: the tools that ran operations day to day.

See the page
Python · StreamlitData and dashboards

ETL, consolidated data, dashboards for management, image and document models.

REST · SOAP · webhooksAPI, SDK and plugins

Public documented API, a PHP SDK, PrestaShop and WooCommerce plugins, tracking webhooks.

02 · Architecture

The whole platform, layer by layer

Six layers, from the apps in people's hands down to the servers. Tap any block to see what it did, or follow one delivery through the system.

Apps
Access
Core
Services
Data
Run
03 · The tasker

The part that never slept

The core started life in 2017 under another name: YperTasker. The idea was simple and it stayed: nothing that can wait should make a user wait. Sending the email, recalculating a price, exporting the accounts, chasing a late delivery: all of it goes into a queue.

RabbitMQ carries the messages, Celery workers do the work, and four priority lanes keep urgent things ahead of bulk ones. A scheduler fires 132 recurring jobs. The workers scale on their own, from 2 to 20 containers, when the load goes up.

In numbers
  • ~265 kinds of tasks
  • 132 recurring jobs
  • 4 priority queues
  • 2 → 20 workers, autoscaled
A day in the scheduler
  • every 20 sSync support agents' phone status
  • every minuteRefresh the search index
  • every minuteStart the workflow for deliveries in difficulty
  • every minuteCancel deliveries nobody can do any more
  • every 2 minAuto-resolve simple claims, 8 am to 8 pm
  • every 2 hLook for wallets in the red
  • 1:15 amCreate the recurring deliveries
  • 4:20 amDelete identity documents past their retention date
04 · The matching engine

From a sequencer to a matcher

2016 — 2021 · The sequencer

At regular intervals, it picked users with fairly simple, static criteria and notified them, one delivery at a time. It did the job, and it sent a lot of notifications.

2021 — 2025 · The matcher

A dedicated service. A set of specialised algorithms builds the full list of people to ask, then sorts it, refreshes it and paces the sending in real time, looking at every delivery at once.

1Select

Who could do it: zones, availability, favourite shops.

2Price

What it pays; boosted where Shoppers are hard to find.

3Weigh

Ratings, acceptance speed, cancellations, favourites.

4Schedule

One by one, in waves, or crescendo; push, SMS or email.

5Send

The proposal reaches the phone, valid for a set time.

Filters, at every stageDelivery already taken? Shopper at their quota? Proposal too weak? It is cancelled before anyone is bothered.
Six strategies, picked by context
ExpressRegularRegular routesCeremoniesNew ShopperNew shop
January 2023 · 38,779 deliveriesHow long before a Shopper said yes
35%accepted in under 5 minutes
71%in under 30 minutes
96%within the hour, for deliveries due within 2 hours
56 minaverage, all deliveries included
I'm a new shop and I want to try the service.

Proposals go first to active, experienced Shoppers with good ratings and few cancellations.

I've just signed up as a Shopper.

Deliveries are shared fairly between newcomers and regulars, with experienced shops.

I ordered an express delivery.

More Shoppers at once, the fastest to accept first.

I picked favourite Shoppers.

They are asked first.

I'm near a shop with deliveries due within the hour.

The Shopper moves to the top of the list.

I'm often late and I cancel a lot.

Proposals still come, just later in the queue.

05 · Data and AI

AI didn't start with ChatGPT

At YPER, data and machine learning were in production years before generative AI. They decided who received a proposal, which identity documents were genuine, and which deliveries were at risk.

  1. 2018Scoring in the sequencer

    Every user and every delivery carried a weight. Algorithms and filters re-ranked who to notify, and could push an urgent delivery to the front of the queue.

  2. 2020A data pipeline and a DMP

    An ETL extracted and consolidated the data; a data management platform served it back to the core and the matcher, with first recommendation experiments.

  3. 2021Dashboards for every team

    Metabase for shops, marketing and operations: deliveries per shop, account activations, time to acceptance, rounds drawn on a map.

  4. 2022A/B testing the matcher

    The data team's algorithms ran in production against the reference one: 80% of matched deliveries on the core algorithm, 10% each on two challengers.

  5. 2022Predicting reliability

    For a new shop's first five deliveries, a Shopper confidence score and the distance to the shop picked the people least likely to be late or cancel. New shops had 32% of late or rescheduled deliveries, against 23% for the others.

  6. 2022Computer vision for identity checks

    A neural network (YOLO) trained on hundreds of ID cards and passports to find the document and its text zones, then OCR to read them. A new version in August 2022 cut prediction errors by 48%.

  7. 2023 →Then, generative AI

    ChatGPT in customer service from February 2023, then a copilot in Zendesk drafting replies and a Slack bot answering the team's questions, GPT assistance built into the core, Mistral, Llama and OpenAI models tested in 2024. By 2024, half of the 400+ daily identity checks were validated by AI.

A ritual

“Ask the data team”: anyone could post a question on Slack, the team voted for one, analysed the data and presented the answer at the next sprint demo. Do Shoppers deliver more in the evening, or at the weekend?

06 · Steps, templates, offline

Delivery journeys, assembled like building blocks

A delivery in the Shopper or Riders app was never a fixed screen flow. It was a list of steps, sent by the platform: show the order, go to the shop, pick up, enter the code, deliver, take the photo, rate. The apps only knew how to display each kind of step; the platform decided which ones, in what order, and under what conditions.

That is what let a florist's funeral wreath, a Christmas tree, a pharmacy prescription and a parcel from a hub follow different journeys, without shipping a new version of the apps.

The building blocks
  • 14 kinds of steps
  • 5 stages: pickup at the shop, pickup, delivery, back to the shop, end
  • 3 condition types, on the delivery, the business or the shop
  • Hooks before and after every step
Illustrative exampleThree deliveries picked up at the same florist
Pickup at the shop
▤Order preview#1
▤Order preview#2
▤Order preview#3
⌖Go to the shop#1
⌖Go to the shop#2
⌖Go to the shop#3
▣Pick up#1
▣Pick up#2
▣Pick up#3
#Pickup codeif the shop asks for it
Delivery
➜Deliver#1 · not mergeable
✎Signature#1 · if required
➜Deliver#2
➜Deliver#3
⌗Recipient's code#3 · if required
End
★Rate the shop#1
★Rate the shop#2
★Rate the shop#3
✓End of round

19 steps 11 steps · Same screens, same order of stages; identical steps marked as mergeable are fused into one, the others stay one per delivery. The pass ran again whenever the round changed.

TemplatesOne journey per kind of delivery

Delivery templates by type of shop (florist, butcher, drive, restaurant, pharmacy…) and by kind of delivery (bouquet, wreath, ceremony, plant, Christmas tree, bulky item…). Each carried its steps, options, required vehicle and settings.

ConditionsSteps that appear only when needed

Equal, not equal, exists, checked against the deliveries, the business account or the shop. Example: ask for the pickup code only if this shop requires it, and only once the delivery has started.

HooksLogic before and after each step

Pre- and post-hooks triggered the platform's work at the right moment: status changes, messages, tracking for the retailer.

Forward compatibleA step the app doesn't know never blocks it

If an older version of the app met a step it could not display, it validated it and moved on. New steps could go live before every Shopper had updated.

Optimisation passRounds rebuilt on the fly

When deliveries were grouped into a round, the platform re-sorted the steps along the route, then fused the mergeable ones: one pickup for three orders, one rating for one shop.

Changed in one placeA new step for every template at once

Adding the pickup code to every relevant template was a short script on the platform, not an app release.

Offline

No signal in the stairwell? The delivery goes on.

Cellars, lifts, car parks, the countryside: deliverers lose the network all the time. The delivery apps were built for it.

  • Every action is kept. A call that fails for lack of network is stored on the phone, with its content, and replayed later.
  • Replayed as soon as possible. When the connection comes back, then every 30 seconds to a minute while it lasts, and in the background every 15 minutes, even with the app closed.
  • Never twice. A lock makes sure a stored action is sent only once.
  • Patient, but not forever. Server errors are retried less and less often, from 30 seconds up to three hours.
  • The deliverer knows. A banner shows when the app is offline; the few steps that truly need the network, like sending the delivery photo, say so clearly.
  • Useful data stays on the phone. Shops, settings and documents are cached locally.
07 · The ledger

A bank ledger inside a delivery app

Every delivery had its own small wallet. The customer's money came in when the delivery was booked, waited there, and was released only once the delivery was done and checked: the Shopper paid, YPER's commission booked, the VAT set aside. A cancellation, a return or an extra fee simply recalculated the split.

Balances were never stored, always recomputed from the transactions. Each transaction carried a unique fingerprint and a ceiling, so an amount could not be quietly changed. Card payments, direct debits and transfers went through regulated providers, Lemonway first and then Stripe, and Shoppers could withdraw their earnings at any time.

Worked exampleA 2.5 km delivery, “carry it upstairs” option, paid by card
Customer pays€12.90€10.75 excl. VAT + €2.15 VAT
Delivery wallet€0.00
Shopper€9.00
YPER commission€1.75
VAT€2.15

Prices from the internal pricing grid used to test the system in 2020: base price by distance, options as surcharges, discounts for subscriptions.

1Mtransactions in the ledger by 2021
€8Mmoved through it by 2021
€15Mpaid out to deliverers over ten years
2payment providers behind one ledger
08 · Performance and volumes

Built to take the next peak

Deliveries per quarter, 2016 — 2025213,326 in the last quarter of 2024

Quarterly deliveries; 2025: first quarter only. Sources: pitch deck of June 2025, business plan of March 2025 (actuals).

~2,300deliveries a day at the end of 2024
98%+of deliveries completed
< 15 minon average to find a deliverer (2018)
2.57 Mnotifications sent in 2018 alone
400+identity checks a day, half of them validated by AI (2024)
20API containers in production, workers from 2 to 20, matcher from 8 to 25
Tech report · sprint demos, spring 2021Availability and response time of the API

Every sprint demo opened with the tech report: the numbers of the last 30 days, against the targets.

Average response time
661 msearly 2021
215 msS21-13
130 msS21-19
114 msS21-25
target < 250 ms
Availability over 30 days
99.82%early 2021
99.99%S21-13
99.96%S21-19
100%S21-25

Target: 99.9%. API error rate: under 0.01% of requests, for a target under 0.1%.

Raw load · the peaks Valentine's Day: twelve days of flowers in one

Valentine's Day, Grandmothers' and Mother's Day, Black Friday, the Christmas season, and every TV appearance brought sudden peaks: on 14 February, flower deliveries reached twelve times an ordinary day. In ten years, none of these peaks brought the platform down.

1,2222019
2,3122020
1,9262021
2,2792022
2,1122024
174 · an ordinary day

Flower deliveries on 14 February, against an average day in 2024. Valentine's Day 2024: no incident, 100% availability.

Security No successful intrusion in ten years

In March 2021, ahead of new partnerships, we asked Advens for an independent penetration test of the website, the API, Yper Shop and the mobile apps. Every attempt to inject code or tamper with payments failed. The main finding concerned private beta servers holding test data; it was fixed.

  • Single sign-on, and API keys with limited scopes
  • Rate limiting on the API
  • A ledger that cannot be quietly altered
  • Identity documents deleted after their retention period
  • Server access through a secure gateway
Seen in a sprint demo · Yper Shopper, May 2022

Each sprint demo opened with the numbers of the month.

28,000active users over 30 days
10,000new users that month
37 minof use on average per active user
4.5–4.7out of 5 on the app stores, about 5,000 reviews

What made it hold

  • Moving off Meteor. The first stack let us ship fast in 2016, but it did not scale and its tests were hard to reproduce. From 2017, tasks moved one by one to a new Python system; by mid-2018, they ran a hundred times faster.
  • One mobile stack. Two native apps (Swift, Kotlin) meant twice the code and twice the bugs. From 2019, every app moved to Flutter, on shared packages: half the code, a much faster team.
  • Binary calls between services. gRPC and Protocol Buffers between the core and the matcher: smaller messages, typed contracts.
  • Cutting the cost per delivery. Self-hosted routing on OpenStreetMap and an in-house SMS gateway cut mapping and SMS costs.
  • Autoscaling everywhere. TV appearances and Valentine's Day brought sudden peaks; each service scaled on its own.
  • Better models, not more people. In 2022, a new version of the ID-reading model cut OCR errors by a third and execution time by half, with 1 GB less memory. The goal was to automate 75% of identity checks; by 2024, half of them were validated by AI.
09 · Integrations

Plugged into everyone else's systems

Retailers do not change their software for a delivery partner. So YPER went to them: a SOAP web service for one, webhooks for another, a plugin for online shops, a public API and an SDK for everyone else. On the other side, payments, messages, maps and identity checks relied on specialists, wired into the core.

Inthey send to YPER OutYPER sends to them Both ways In-housebuilt and hosted by YPER
E.Leclerc Both ways

Store orders through a dedicated SOAP web service; status sent back.

Supermarchés Match In

The first retail integration, in 2016.

DHL Both ways

Parcels injected into YPER hubs, data enriched on arrival, tracking returned.

Drive to Home Both ways

Delivery events shared between the two companies after they came together.

Wynd Both ways

Orders from the retailer's ordering software, delivery status sent back.

Woop Out

Delivery status pushed to the delivery platform some retailers used.

Urbantz Out

Live tracking pushed into the retailer's delivery software.

Bringg Out

Same idea, for retailers running Bringg.

Melting Point Out

Delivery status updates for its retail customers.

Klareo In

A partner's orders and cancellations, straight into the API.

PrestaShop · WooCommerce In

Plugins so that online shops could offer YPER delivery at checkout.

Public API · PHP SDK In-house

Documented API, SDK and webhooks for any retailer's developers.

Stripe Both ways

Card payments, direct debits, and Shoppers' payouts.

Lemonway Both ways

The first payment and e-wallet provider.

SEPA Out

Direct-debit files and IBAN checks for monthly invoices.

Cegid Out

Accounting entries exported for the finance team.

Plebicom Both ways

A gift-card catalogue offered inside the platform.

Firebase Out

Push notifications to every mobile app.

SMS gateway In-house

Its own microservice, in front of the SMS providers.

Brevo · Mailchimp Out

Transactional and marketing emails.

Aircall · OVH telephony Both ways

Support calls, call queues, click-to-call from the CRM.

Zendesk Both ways

In-app chat with support, in the earlier years.

Slack Out

Alerts for the teams: incidents, errors, unusual activity.

HubSpot Out

Business customers synced to the sales pipeline.

Notion In

Support's contact reasons, edited in Notion, synced by webhook.

Google Maps · Places Out

Address autocomplete and geocoding.

Mapbox · MapTiler Out

Map tiles in the apps and tools.

OSRM In-house

Self-hosted routing: distances and times for pricing and rounds.

INSEE Sirene Out

Company details filled in automatically when a business signs up.

Unleash Out

Feature flags, to roll out new features progressively.

Keycloak · Auth0 Both ways

Single sign-on for apps and internal tools.

OpenAI Out

GPT assistance for support, from 2023.

Document OCR In-house

Reads the machine-readable zone of ID documents for identity checks.

Google ML Kit In-house

On-device scanning in the hub app.

10 · Technologies

What we used, and what for

Mobile
Flutter · Dart

Every app from 2019, on shared in-house packages: one codebase for iOS and Android.

2019 — 2025
Swift · Kotlin

The native Shopper apps before Flutter.

2018 — 2021
Meteor

The very first app, website and admin, to launch fast.

2016 — 2018
Web
Next.js · React · TypeScript

Yper Shop and the OPS Suite, in a monorepo with a shared component kit.

Symfony · PHP

The CRM and the public website.

Backend
Python · Flask · FastAPI

The core API and the real-time layer.

2017 — 2025
Celery · RabbitMQ

The tasker: queues, workers, scheduler.

2017 — 2025
gRPC · Protocol Buffers

Typed calls between the core and the services.

2021 — 2025
Data
MongoDB

The main database.

2016 — 2025
Elasticsearch

Search for the support and ops teams.

pandas · Streamlit

ETL, analysis and management dashboards.

2020 — 2025
Infrastructure
Kubernetes · Terraform · Docker

Production on OVH, described as code, deployed as containers.

2019 — 2025
Datadog · Graylog · OpenTelemetry · SigNoz · Sentry

Metrics, logs, traces and errors.

CircleCI

Continuous integration and releases, after a Jenkins of our own.

11 · Ten years of architecture

Fast first, then built to last

Phase 1 · 2016 — 2018Speed, at the lowest cost

We started on Meteor. One JavaScript stack for the server, the web and the mobile app, real time out of the box, a single unified platform. With a tiny team, that meant shipping and iterating fast while the business model was still moving.

  • Iterate fast
  • Real time built in
  • One platform, one codebase
Phase 2 · from 2017Scale, and make it reliable

Once the model was proven, the priority changed. We started a migration to more mature technologies, for performance and stability: piece by piece, without stopping the service. Tasks moved one by one to Python, the apps went native then Flutter, the platform moved to Kubernetes.

  • Performance
  • Stability
  • Room to grow
A constant, in both phasesEvery euro of infrastructure came out of the margin

Delivery is a business of cents. From the start, we treated the platform's running costs as a product metric: self-hosted routing instead of paying for every map request, an in-house SMS gateway, one mobile stack instead of two, servers switched off as soon as an optimisation made them useless.

−55%tech running costs per delivery (servers, software, APIs), from €0.48 in 2020 to €0.21 in 2024
43% → 15%total tech cost, team included, as a share of revenue, from 2020 to 2024
×4.5deliveries over the same period

Source: business plans updated for the Business Reviews, actuals 2020 to 2024.

  1. 2016Launch on Meteor

    One app for those who deliver and those who order, a website, an admin. First retail integration.

  2. 2017The Python core

    YperTasker is born: API, MongoDB, queues and workers. The sequencer is rebuilt.

  3. 2018Native apps

    Shopper on Swift and Kotlin; the platform for business customers grows.

  4. 2019Flutter and Kubernetes

    Yper Shop, the CRM, a single mobile stack, the cluster on OVH, payments rebuilt around orders and payment intents.

  5. 2020Hubs, couriers, parcels

    After the merger with Relayed: Riders, Hubs, a provider framework for carriers like DHL, the data pipeline.

  6. 2021The matcher

    A separate matching service over gRPC, and a public API documentation.

  7. 2022 — 2023Identity, AI, data

    Single sign-on, automated ID checks, ChatGPT for support, a data team and its tools, Shop+.

  8. 2024 — 2025The OPS Suite and real time

    A React monorepo for internal tools, live chat, end-to-end tracing.

12 · My role

Four titles, one way of leading

My title changed four times in ten years. My posture did not: coach of the team, and servant leader, the first to do the work and to set the example.

  1. 2015 — 2018CTO / CPO, hands-on

    I designed the product and built the first versions of the platform: the Meteor launch, then the Python core, its queues and its API.

  2. 2019 — 2021COO · Head of Platform

    Tech, product and customer service under one roof. I oversaw the architecture and the code of a product and tech team that grew to 33 people, and ran customer service hands-on.

  3. 2021 — 2022Co-CEO, hands-on on operations

    Running the company as a pair, with my hands in day-to-day operations.

  4. 2023 — mid-2025CEO, hands-on on sales and foresight

    Selling, and preparing what came next for the company and its platform.

PostureCoach of the team
PostureServant leadership

The first to do it, the first to show how.