Chapter 14: Example Real-time Multiplayer Quiz: Architecture

This chapter describes the quiz application’s architecture and dependencies. It does get complex, so you can skip it if you’d rather concentrate on the Node.js and Express parts (Chapter 15) and WebSocket code (Chapter 16). That said, technical decisions described in those chapters are based on the architecture, so it’s good to understand the basics.

Why Develop Using Multiple Servers?

You could develop and run the quiz on a single server running a database and a single Node.js application that launches both the HTTP and WebSocket servers. It would be easier to develop, and it would support dozens of concurrent users. However, problems will arise as traffic grows. If your application ...

Get Node.js: Novice to Ninja now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.