OkiBuzz article thumbnail

For the past few months, alongside my main work, I’ve spent evenings and weekends building OkiBuzz (okibuzz.com). It’s a quiz platform for classrooms, training sessions and events. The organizer prepares the questions, then puts them on a screen or sends everyone a link. Participants answer on their phones, with no app to install and no account to create.

The okibuzz.com homepage

The OkiBuzz homepage: the presentation view and the player view on a phone.

In this article, I’ll introduce what OkiBuzz can do today, share how I built the technical side, and a few lessons learned from developing a realtime product on my own.

Why build yet another quiz app

Kahoot, Quizizz (now Wayground), Mentimeter, Slido and AhaSlides are all established and do a pretty good job. So I’m not setting out to build a product that just copies Kahoot.

But looking at users in Vietnam, I see two groups that still aren’t served well:

  • Teachers. Paid plans on foreign platforms are expensive relative to many teachers’ income. An English interface can also be a hurdle, while quite a few features aren’t needed for an ordinary review session.
  • Event organizers, trainers and MCs. They may need to run a quiz for a few hundred people at a conference or a year-end party, then pick winners, hand out prizes and collect contact details. These tasks are often still done by hand or with extra tools.

I want OkiBuzz to take a practical direction: easy enough that teachers or organizers who aren’t tech-savvy can run it themselves; priced to fit a teacher’s budget; and with the steps needed to run a quiz, pick winners and award prizes at an event built in. From the start, I also built the interface in both Vietnamese and English.

What OkiBuzz can do

How to use OkiBuzz in 3 steps

The basic flow has three steps: create questions, show the join code, then answer together and see the results.

One question set, four ways to run it

With the same question set, the organizer can choose one of these four ways:

  1. Presentation. Questions and answers are shown on screen; the whole class follows along and answers out loud, no phones needed. Each question has two steps: show the question, then highlight the correct answer. The presenter controls it with the arrow keys or the space bar. This suits classes where students aren’t allowed to use phones, and it’s free.
  2. Question by question. A format that will feel familiar if you’ve used Kahoot. The organizer moves on to the next question; each question has its own timer, and the faster a correct answer, the more points it earns. After each question, the screen can show the 5 fastest correct answers, or hold the results until the end to celebrate the overall top 3.
  3. All questions. The whole room gets the same time window, say 15 minutes. Everyone works at their own pace and can’t go back to previous questions. While people answer, the presentation screen keeps updating the leaderboard.
  4. Assignment. The teacher sends a link or QR code to the class’s Zalo group and sets a deadline. Students open the link, enter their name and do it at home. The teacher sees each student’s number of correct answers; this mode has no leaderboard.

To join, players enter a 6-digit PIN or scan the QR code on screen, then fill in a display name. Each room can have up to 300 participants.

OkiBuzz’s four game modes

Each of the four modes comes with a “Good for” note so newcomers can easily choose how to run it.

A class’s assignment results

In Assignment mode, teachers can track who has submitted, each student’s correct answers, and which questions many students got wrong.

Creating and importing questions

I try to keep question preparation from taking too long. There are currently three ways:

  • Import from Excel or CSV using a template file. If there are errors, the system points to the exact row to fix so it’s easy to check.
  • Paste text. Just paste content in the form “Câu 1. … A. … B. … Đáp án: B” (Question 1 … Answer: B). The text parser is designed not to be too strict about formatting: it accepts many layouts and automatically strips markdown symbols and “Nguồn:” (Source:) lines.
  • Use the AI you already have. OkiBuzz doesn’t call an AI service directly. You pick the subject, number of questions, question type and difficulty; the system generates a ready-made prompt. You just copy that prompt into ChatGPT, Gemini or whatever AI tool you normally use, then paste the questions you get back into OkiBuzz.

Not integrating AI directly is a deliberate choice. Every API call costs money, and I want to keep OkiBuzz’s prices low. On top of that, many teachers can already use ChatGPT, Gemini or another free AI tool. I think OkiBuzz should focus on doing quiz hosting well, rather than trying to compete by putting AI into every feature.

Features for events

On the Event plan, organizers can collect participant information with up to 5 fields, such as a phone number to get in touch when handing out prizes. Before players agree, the system clearly shows the purpose of the collection. The consent checkbox is unchecked by default; players must actively tick it. This information is stored separately from the quiz results; organizers can view, export or delete it at any time. The Event plan also supports showing the organization’s logo and name on the projected screen, exporting results to Excel, and a printable PDF.

The winners’ podium on the event screen

The screen celebrating the top three finishers after the quiz ends.

A room saved for an event

Rooms can be prepared in advance. On the day of the event, the organizer just opens the room to start.

Pricing

  • Free: 50 people per room, 5 sessions per month.
  • Teacher: 39,000 VND/month or 290,000 VND/year, 100 people per room, unlimited sessions.
  • Event: from 199,000 VND for 7 days, 300 people per room.

For now, I handle payments manually: customers transfer money via a VietQR code, then I activate the plan myself. Only once there are about 10 paying customers will I start building automated payments. I don’t want to spend time building a whole payment system before I know whether anyone is willing to pay.

Tech stack

I’ve worked with Python for more than 10 years, so I chose technologies I know well. That lets me spend more time on the hardest part of the product: realtime handling.

PartWhat I use
BackendDjango 5.2 LTS, Python 3.12, Django Channels for WebSocket
Web serverGunicorn with Uvicorn workers (ASGI), behind nginx
Live room stateRedis, with AOF enabled
DatabasePostgreSQL
FrontendServer-rendered HTML, vanilla JavaScript. No React, no CSS framework
InfrastructureOne DigitalOcean droplet, 1 vCPU / 2 GB, Docker Compose
EdgeCloudflare (DNS, HTTPS, WebSocket); R2 for images; Resend for email

The player interface uses vanilla JavaScript and weighs under 100 KB. I prioritize keeping the page very light because not everyone has a new phone or a stable connection. In practice, players may open the link inside Zalo’s or Facebook’s in-app browser, sometimes over a rather flaky 4G connection in a conference hall.

A few technical rules I’ve kept since day one

With a quiz scored on speed, even a small discrepancy can be noticed by players right away. So from the start I set some technical principles and try to keep them consistent every time I add a feature:

The server decides the time. The server doesn’t use timestamps sent from phones. Each question has an absolute deadline stored in Redis. Phones only receive how many milliseconds remain to display the clock; scores are calculated entirely on server time.

No sleep to advance questions. If advancing questions depends on a timer inside the web process, a room can hang when the app restarts. Instead, OkiBuzz has a separate process called the ticker. It reads deadlines from Redis and transitions state when the time comes. Because state and deadlines are persisted, restarting web or the ticker doesn’t lose a room’s progress.

Only the first answer counts. Each answer submission has its own id. When the network is unstable, a phone may resend the same request, but the server records it only once. Writing answers is done with a Lua script on Redis, preventing a single action from being scored twice.

No room-wide update after every answer. If 300 people tap at almost the same moment and each tap triggers a message to the whole room, the message volume grows very quickly. Instead, OkiBuzz batches the answer count and leaderboard data, and sends an update about once a second. Each question’s top 5 is computed once when the question ends, with a Lua script.

No sending answers or the next question ahead of time. In the All questions and Assignment modes, the server sends each question only when the player needs it. The correct answer is sent down only after the player has answered. So even with DevTools open, a player can’t preview the next question.

Assignment mode doesn’t depend on Redis. An assignment can last several days, so all its state is stored in PostgreSQL. Time limits such as the deadline and the time allowed for the attempt are checked against server time when a request arrives. No background task has to run at an exact moment.

300 people on a 1 vCPU machine

Before opening sales of the Event plan, I wanted to check whether a small server could handle 300 concurrent players. I wrote a script simulating 300 people taking a 20-question quiz, run from a laptop in Vietnam to a server in Singapore. The server configuration matched production: 1 vCPU / 2 GB. The results:

  • p95 latency around 112–192 ms including the network. Server-side processing around 21–102 ms.
  • No answers lost.
  • Restarting web and the ticker in the middle of a game; the game kept running.
  • CPU 25–45%, RAM around 750 MB.

Redis is configured with appendfsync always, meaning data is written to disk after every command. This is slower than the default setting, but the load test showed the server still had headroom. So I prioritize data safety. Before serving the first large event, I’ll rerun the test on the production environment itself.

OkiBuzz when the hall’s Wi-Fi is flaky

When the connection drops, players can rejoin the room and continue from where they were. If an answer is submitted multiple times, the system still records only the first.

A few lessons from building a product on my own

Break work into numbered features

So far, OkiBuzz has gone through about 30 features, numbered 005 to 034. Each feature has a short brief stating the scope, what’s out of scope, and the situations where I need to stop and ask. Before writing code, I always take a step to survey the existing code (called Phase 0), identifying the files and areas that need to change. Each feature is delivered in its own PR.

I use Claude Code to help write most of the code, based on the brief and a spec → plan → tasks process. My job has gradually shifted to clarifying requirements, approving Phase 0 results, reviewing PRs and checking things again on my machine. This only works when the project’s principles are written down and have tests to check them. If those rules live only in your head, sooner or later a PR will break them by accident.

Turn rules into tests

The OkiBuzz interface has some rules that are kept quite strictly: only one accent color, at most one primary button per screen, no inline styles (to maintain a strict Content Security Policy), no emoji in place of icons, and self-hosted fonts and icons. I wrote tests to check each rule. For example, if a PR adds a second primary button to the same screen, a test fails. The test suite currently has more than 2,000 tests.

Don’t mix feature changes with global UI changes

Feature 025 is the lesson I remember most. Back then, I combined adding the game-mode picker with a site-wide CSS change in the same PR. It then became very hard to test: when something broke, it was unclear whether the cause was the new feature or the styling, and the before/after screenshots differed almost everywhere. In the end, I had to abandon that PR. The feature was redone in feature 026, this time without touching the shared UI. Since then, I separate every proposed design-rule change and do it in its own PR.

Small incidents during deploys

In the first deploy of the sales part, I forgot to configure a bank-related environment variable. Django’s system check blocked the migrate step, causing the site to return a 521 error for about 3 minutes. I fixed it fairly quickly, but after that incident I added a step to the deploy script that runs check --deploy on the new image before starting the container. If configuration is missing, the deploy stops and the currently running version stays in place.

Another time, the uptime monitoring tool reported the site as down even though it was actually running fine. The cause was that the tool sends HEAD requests by default, while the /healthz/ endpoint only accepted GET and so returned 405. It’s a small bug, but it reminded me to test the monitoring system itself after setting it up, rather than assuming it will work correctly.

Do the safety work before inviting users

Before inviting real users, I prioritized finishing some rarely seen work: automatic nightly backups, a manifest file to count and reconcile row counts on restore, and an actual test restore from a real backup. The admin site only allows Google sign-in. The production server only accepts connections through Cloudflare, and SSH requires a key. I also took time to review the Terms of Use and Privacy Policy, especially the parts concerning participant data.

None of this directly helps sell another plan. But once there are real users, pausing to add it becomes much harder.

Sell before automating

I set myself a milestone: only build automated payments after selling about 10 plans. Until then, customers paying via VietQR and me activating plans by hand is enough. If nobody buys, what needs revisiting is the assumption that “teachers are willing to pay”, not writing more features or code.

What OkiBuzz doesn’t have yet

So you don’t waste time looking for features that aren’t supported yet, here’s the current list:

  • No public quiz library for finding and reusing other people’s quizzes yet.
  • No multiple-correct-answer questions, open-ended questions or polls yet.
  • No team competition yet, and no running multiple rounds in one room.
  • No invoicing yet, and no automated payments.
  • Each room supports up to 300 people.

Try it

If you’re a teacher, trainer or event organizer, you can start with the Free plan at okibuzz.com. And if you’re also building a product with Django Channels and Redis, I’m happy to talk more about the technical issues in this article. You can leave a comment or reach me here: etuannv.com/contact