How I built live queues for barbershops: Book My Barber case study

A barber shop queue management system, live across 5+ branches: how Book My Barber cut average waits by 25% with real-time queues on SSE, Node.js and MongoDB.

Book My Barber mobile screens in deep green and cream

Saturday morning at a busy barbershop: eight people on the bench, two more at the door asking "how long?", a barber guessing "about forty minutes" and getting it wrong. Half the people waiting would rather be anywhere else, and some of them leave. The shop loses the haircut, and the customer loses the morning.

Book My Barber is the barber shop queue management system I built to fix that. Customers find a nearby shop, watch its live queue before they leave home, and book a chair in a few taps. Barbers run their whole day from a queue dashboard, and a TV on the shop floor shows everyone where they stand. It's live across 5+ branches, handles 200+ appointments a day, and has brought average wait time down 25%.

TL;DR#

  • The problem: walk-in shops couldn't tell customers how long they'd wait, so people either waited too long or left.
  • The product: a mobile booking app for customers, a queue dashboard for barbers, and a TV view for the shop floor, all showing the same live queue.
  • The key decision: queue updates travel one way, from server to screens, so they use Server-Sent Events instead of WebSockets. Booking stays a normal API call.
  • The results: 200+ appointments a day across 5+ branches, average wait time down 25%, infrastructure costs down 35%.
  • The stack: the MERN stack (MongoDB, Express, React, Node.js) behind REST APIs, with Server-Sent Events for real-time updates.

The problem: nobody knew how long the wait was#

A barbershop queue is invisible from outside the shop. Customers can't see it, so they guess. Barbers can see it, but only from the chair, mid-haircut, with no time to manage it.

That creates three kinds of loss at once. Customers who arrive at a busy moment wait far longer than they planned. Customers who see a full bench walk out, and the shop never knows how many. And quiet hours stay quiet, because nobody knows the shop is empty right now.

The constraints#

A queue system for barbershops has to fit how barbershops actually work:

  • Barbers have their hands full. Any dashboard has to work at a glance and with one tap, between customers.
  • Customers won't create a password for a haircut. Sign-in had to be as light as possible.
  • Several branches, one system. Each branch has its own barbers, services and hours, and a customer should be able to pick the nearest one.
  • Screens everywhere. The same queue needs to appear on customers' phones, the barber's dashboard and a TV on the wall, and stay in step.

What I built#

Book My Barber booking flow on mobile: the shop page, its services and the available time slots
Booking a chair: shop page, services and time slots.

Book My Barber has three faces, all reading the same live queue:

  • The customer app. Find nearby barbers, see a shop's services, prices and current queue, and book a chair in a few taps. Sign-in is a phone number and a one-time code, with no password to forget.
  • The barber's dashboard. The day's queue in order: who's in the chair and who's next. Barbers run their whole day from it.
  • The shop TV view. A big-screen view of the queue for people already in the shop, so nobody needs to ask the barber how long it will be.

Setting up a new branch takes four steps: details, services, hours and photos. And AI-assisted scheduling looks for gaps in each barber's day and helps fill them.

The barber's live queue dashboard in Book My Barber
The barber's dashboard: the whole day, one tap per action.

The architecture#

Architecture of Book My Barber: the customer app, barber dashboard and shop TV each send commands such as booking or starting a haircut as normal REST calls to a Node.js and Express API backed by MongoDB; every change to a branch's queue is pushed back to all three screens over a Server-Sent Events stream for that branch
Commands go up as REST calls. Queue changes come down as one-way SSE streams.

The whole system follows one rule: commands go up as normal API calls, updates come down as a stream. Booking a chair, cancelling or marking a haircut as done is a regular REST request to the Node.js and Express API, which writes to MongoDB. Every change to a branch's queue is then pushed to every screen watching that branch.

The hard parts, and the decisions behind them#

Server-Sent Events, not WebSockets#

The first instinct for "real-time" is WebSockets. But look at which way the data flows: the server has news (someone booked, someone's haircut finished, the queue moved) and the screens need it. None of the three screens needs to stream anything back; when a barber taps "next customer", that's a single request.

That's exactly what Server-Sent Events are for. They're plain HTTP, so the existing API, auth and load balancing keep working. The browser reconnects by itself when a phone switches from Wi-Fi to mobile data. And there's no separate socket server to run and scale. I wrote up the full comparison, and how to run SSE behind Nginx without dropping updates, in that post.

Keeping every screen in step#

Three kinds of screens watching one queue means the queue needs exactly one source of truth: the server. A booking or a "next customer" tap goes up as a request, and the resulting change comes back down the branch's stream to every screen watching it, the one that sent the request included. That's what keeps the TV, the dashboard and the customer's phone showing the same queue.

Sign-in that doesn't lose customers#

Every extra step between "I want a haircut" and "booked" loses people. A phone number and a one-time code is the shortest sign-in that still gives each customer a real account, and barbershops already know their regulars by phone number.

Results#

Metric Result
Branches live 5+
Appointments handled 200+ a day
Average wait time Down 25%
Infrastructure costs Down 35%

The wait-time number is the one that matters most to the shops. Shorter, predictable waits mean fewer people walking out, and a customer who can see the queue from home arrives when their chair is nearly free instead of an hour early.

What the shops can do now#

  • Let customers check the queue before they leave home, instead of answering "how long?" all day.
  • Run the day from one screen, with the whole queue in order.
  • Show the queue on the shop TV, so people in the shop know exactly where they stand.
  • Add a branch in four steps, with its own barbers, services, hours and photos.
  • Fill quiet hours, with scheduling that looks for gaps in each barber's day.

Tech stack#

Layer Technology
Customer app and dashboards React
API Node.js, Express, REST
Database MongoDB
Real-time updates Server-Sent Events
Sign-in Phone number and one-time code

You can see more of the screens, and the old-school gentlemen's-club look of deep green, cream and brass, on the Book My Barber project page.

Building something with a live queue?#

Queues, bookings, live dashboards and anything else where several screens must agree in real time are a large part of my work. Have a similar problem? Let's talk about your project. Email mhuzaifaa.dev@gmail.com with what you're building, or see the projects I've shipped. If you're still at the budgeting stage, my guide to what a SaaS MVP costs is a good place to start.

FAQ#

What is a barber shop queue management system?#

Software that tracks who is waiting at a barbershop and in what order, and shows it to customers and barbers. A good one lets customers see the queue and book from their phone, gives barbers a dashboard to run the day, and keeps every screen updated in real time.

How do customers see the live queue in Book My Barber?#

They open the shop in the app and see its current queue before leaving home. The server pushes every change to the queue over Server-Sent Events, so the customer's phone, the barber's dashboard and the TV in the shop all update within moments of a booking or a finished haircut.

Why use Server-Sent Events instead of WebSockets for a queue?#

Queue updates only flow one way, from the server to the screens. Server-Sent Events handle exactly that over plain HTTP, reconnect automatically when a phone changes networks, and need no separate socket server. Actions like booking a chair stay ordinary API requests.

What features does a barbershop booking app need?#

At minimum: finding a shop, seeing its services and current queue, booking a slot, and a light sign-in such as a phone number and one-time code. Barbers need a dashboard to run the day, and multi-branch owners need per-branch services, hours and staff. A TV view helps customers already waiting.

How much does it cost to build a booking and queue app?#

It depends on scope: the number of user types, real-time screens, payments, branches and integrations. A booking app with live queues is a "standard" to "complex" MVP in my cost guide, which breaks the effort down feature by feature and lists the monthly running costs.

Muhammad Huzaifa Abdulahad
Written by

Muhammad Huzaifa Abdulahad

Full-Stack Software & DevOps Engineer

I build SaaS platforms with Node.js, NestJS, TypeScript and PostgreSQL, and run them on Linux, Docker, AWS and CI/CD — from the first line of code to production.

Related articles

See all posts →

Have a complex idea? Let's build it together.

From MVPs to scalable products, let's turn your idea into reliable software built for real-world impact.