Welcome to Season 2. From here on you'll build DevTinder, a real app where developers can find and connect with each other. Before writing code, let's look at how software is built in companies: the steps a project goes through, who does what, and the two main ways to structure a backend.
In this chapter you'll learn
- the stages of a software project (the SDLC) and who works on each
- the Waterfall model, and how Agile/Scrum differs
- what a monolith and microservices are
- how to compare them on speed, scaling, cost, testing and more
- which one DevTinder uses, and why
Before you start: Season 1 is helpful but not required for this chapter.
The Software Development Life Cycle (SDLC)
Every project, from a college app to Netflix, goes through the same basic stages. Together they're called the Software Development Life Cycle (SDLC).
1. Requirements
Figure out what to build. Talk to users and stakeholders, write down the features ("users can sign up", "users can send connection requests") and the non-functional requirements: speed, security, how many users it must support.
Who: Product Managers (PMs), Business Analysts, stakeholders.
2. Design
Decide how to build it. This has two levels, which you'll practise in Chapter S2 02: Features, HLD LLD and Planning:
- High-Level Design (HLD): the big picture: architecture, tech stack, main components.
- Low-Level Design (LLD): the details: database schemas, API endpoints, classes.
Designers also create the UI/UX (screens and user flows).
Who: Architects, Tech Leads, senior engineers, UI/UX designers.
3. Development
Write the code, following the design. Usually split into frontend and backend work, with code reviews.
Who: Software engineers (SDE-1, SDE-2...), frontend and backend developers.
4. Testing
Find bugs before users do:
- Unit tests: test one function or module on its own.
- Integration tests: test that pieces work together (an API plus its database).
- End-to-end (E2E) tests: test a full user flow in a real browser.
- User acceptance testing (UAT): the client or users confirm it does what they need.
Who: QA (Quality Assurance) engineers, SDETs, developers themselves.
5. Deployment
Release the software to a production environment where real users can reach it. You'll do this yourself in Season 3 (Chapter S3 01: Lanching an AWS Instance and Deploying frontend).
Who: DevOps engineers, SREs, developers.
6. Maintenance
Fix bugs, apply security updates, monitor performance and add improvements, for as long as the software is in use.
Who: everyone, plus support teams.
Waterfall vs Agile
Waterfall
In the Waterfall model, the stages above happen one after another, once: all requirements first, then all design, then all development, and so on. Like water flowing down steps, you don't go back up.
- ✅ Simple, well documented, predictable when requirements truly won't change (some government or hardware projects).
- ❌ Users see nothing until the very end. If a requirement was wrong, you discover it months later, when it's expensive to fix.
Agile (and Scrum)
Most companies today work Agile: they go through the SDLC in short cycles, delivering a small working piece each time and adjusting based on feedback.
The most common Agile framework is Scrum:
- Work happens in sprints of 1–4 weeks (usually 2).
- Each sprint starts with sprint planning (pick tasks from the backlog, the to-do list of features).
- A short daily stand-up meeting: what I did yesterday, what I'll do today, what's blocking me.
- The sprint ends with a review (demo to stakeholders) and a retrospective (what to improve).
As a fresher joining a company, you'll almost certainly work in sprints, with tasks ("tickets") in a tool like Jira.
Two ways to structure a backend
Monolith
A monolith is one application that contains everything: users, payments, notifications, search. One codebase, deployed as one unit, usually with one database.
Think of it as one big restaurant kitchen where every chef works in the same room.
Microservices
Microservices split the backend into many small, independent applications, each responsible for one business area, each deployed separately, usually each with its own database. They talk to each other over the network (HTTP APIs or message queues).
Think of it as a food court: separate stalls for pizza, drinks and desserts, each with its own staff and kitchen, run independently.
Comparing them
| Monolith | Microservices | |
|---|---|---|
| Development speed | fast at the start; slows down as the codebase grows | slower to start (services, networking, infrastructure) |
| Code repository | usually one repo | often many repos, though a single monorepo also works |
| Deployment | deploy everything together, even for a one-line change | deploy each service independently |
| Scaling | scale the whole app, even if only one part is busy | scale only the busy service |
| Tech stack | one stack | each service can use a different language/database |
| Infrastructure cost | lower | higher (more servers, gateways, monitoring) |
| Complexity | simple at first, grows with size | high from the start: network calls, distributed data |
| Fault isolation | one bug (like a memory leak) can take down everything | a failing service can be contained, if you design for it |
| Testing | easy end-to-end testing in one place | need to test services and the contracts between them |
| Debugging | one stack trace shows the whole request | need distributed tracing to follow a request across services |
| Team ownership | everyone works in the same codebase | each team owns its services |
A few of these need a closer look:
- Fault isolation isn't automatic. If the checkout service waits for a slow payments service without a timeout, checkout goes down too. That's a cascading failure. Real isolation needs timeouts, retries, circuit breakers and queues.
- Microservices don't require many repositories. Large companies (Google, for example) keep everything in one monorepo. "Many repos" is common, not a rule.
- Network calls replace function calls. In a monolith,
getUser(id)is a fast function call. Between microservices it's an HTTP request that can be slow or fail.
Which should you choose?
A popular rule among experienced engineers: start with a monolith. Split out services only when you have a clear reason: a part that needs to scale separately, a team that's grown too big for one codebase, or a part with very different requirements.
Many successful products (and most startups) run on a well-organized modular monolith: one deployable app, but with clean internal boundaries, so it can be split later if needed.
What DevTinder uses
DevTinder has two separate applications:
- a frontend (React), in its own repository
- a backend (Node.js + Express + MongoDB), in its own repository
You'll sometimes hear this described as "microservices", but separating the frontend from the backend is really a client–server split. The backend itself is a monolith: one Express app, one database, deployed as one unit. That's exactly the right choice for a project of this size.
Key takeaways
- The SDLC stages: requirements → design → development → testing → deployment → maintenance.
- Waterfall does each stage once, in order. Agile/Scrum repeats them in short sprints with feedback. Most companies use Agile.
- A monolith is one deployable app; microservices are many small, independently deployed apps.
- Microservices give independent scaling and deployment, at the cost of much more complexity.
- Start with a monolith; split when there's a real reason.
- DevTinder = separate frontend and backend apps; the backend is a monolith.
Interview questions
Q1. What is the difference between a monolithic and a microservices architecture?
A monolith is a single application containing all features, deployed as one unit, usually with one database. Microservices split the system into small independent services, each owning one business area and its own data, deployed and scaled separately, communicating over the network. Monoliths are simpler to build, test and debug; microservices allow independent scaling, deployment and team ownership, but add network failures, data consistency challenges and operational cost.
Q2. When would you choose microservices over a monolith?
When the system and organization are large enough to benefit: many teams that need to deploy independently, parts with very different scaling needs (say, video processing vs user profiles), or a need for different technologies per area. For new products and small teams, a well-structured monolith is usually the better start.
Q3. What is the SDLC?
The Software Development Life Cycle: the stages software goes through: requirements gathering, design (HLD and LLD), development, testing, deployment and maintenance. Models like Waterfall and Agile describe how you move through these stages.
Q4. What is the difference between Waterfall and Agile?
Waterfall completes each stage fully, in order, once; changes late in the project are expensive. Agile delivers working software in short iterations (sprints), gets feedback, and adapts the plan continuously. Agile handles changing requirements much better, which is why most product companies use it.
Q5. How do microservices communicate with each other?
Synchronously, through HTTP/REST or gRPC calls, when an immediate answer is needed. Asynchronously, through message queues or event streams (RabbitMQ, Kafka, SQS), where one service publishes an event and others react to it later. Asynchronous messaging decouples services, so a slow or failed consumer doesn't break the producer.
Q6. What is an API gateway?
A single entry point that sits in front of the microservices. Clients call the gateway, which routes each request to the right service, and often handles cross-cutting concerns like authentication, rate limiting, logging and SSL in one place.
Q7. What are unit, integration and end-to-end tests?
Unit tests check a single function or module in isolation (with dependencies mocked). Integration tests check that several parts work together, like an API route with a real test database. End-to-end tests run a full user flow through the real UI and backend. Fast, cheap unit tests form the base; slower E2E tests cover the most important flows.
What's next
Now let's plan DevTinder like a real team would. In Chapter S2 02: Features, HLD LLD and Planning you'll write the requirements, sketch the high-level design, design the database and list every API the app needs.