You've probably heard someone say, “Just use GraphQL for everything — it solves all our problems.” Or maybe you've been told that REST is dead. These are myths, and they cost teams weeks of rework. Below, each myth gets the mechanism behind it — why the problem actually bites — plus the conditions under which the alternative wins. Where a decision depends on numbers you'd have to measure on your own system, you'll find the measurement to run rather than a made-up figure.
Myth 1: “REST is outdated — GraphQL is the modern choice”
What people believe: REST is old, GraphQL is new, so GraphQL must be better. Teams adopt it for simple CRUD apps and drown in complexity. More on the topic: “GraphQL Federation and API Gateway: How to Unite 30 Microservices into One API Without Pain”.
What's actually true: REST is resource-oriented and fits clear, stable resources with standard CRUD. GraphQL fits clients that need to combine data from many resources in one request. The overhead is concrete, not vague:
- Caching. A REST GET is cacheable by URL, so browsers, CDNs, and reverse proxies work with zero configuration. A typical GraphQL server accepts queries as POST bodies, and POST responses are not cached by shared caches. Even if you switch to GET, the cache key is the full query text plus variables, so two clients asking for slightly different field sets miss each other's entries. The standard fix is persisted queries: the client sends a hash of a registered query (
GET /graphql?id=abc123&variables=...), which restores a stable, cacheable URL — but only for queries you registered ahead of time. - N+1 resolution. A query for a list of posts with their authors can trigger one database call for the posts and then one per post for authors. This bites as soon as a list field resolves a related object and your resolver is naive — it's invisible in development with 10 rows and painful with 10,000. Mitigations: a batching loader (DataLoader-style) that coalesces per-request lookups into one query, or join-based resolver design.
- Query complexity. Without a limit, a client can request deeply nested fields and force enormous work. Depth limits and cost scoring (assign a weight per field, reject above a budget) are the usual controls — but they are code you write and maintain.
What it costs in practice: Take a public API where one screen needs a user, their last five orders, and each order's product. In REST that's three round trips or one custom endpoint; in GraphQL it's one request, but the user-by-ID lookup that used to be a cacheable GET /users/{id} now goes through a POST endpoint that your CDN can't cache and your dashboards can't break down by URL. That is the trade you are making — count how many of your endpoints are hot, cacheable reads before you migrate them.
Myth 2: “gRPC is always faster, so use it everywhere”
What people believe: gRPC uses HTTP/2 and Protocol Buffers, so it must be faster than REST, and therefore best for any API. More on the topic: “Go for Backend (gRPC): How to Write Reliable and Fast Backends — A Real-World Scenario Breakdown”.
What's actually true: gRPC wins on serialization and connection efficiency, and that win is largest when payloads are large and calls are frequent. On small payloads over a wide-area network, the difference is usually small next to round-trip time — a few hundred bytes of JSON versus a few dozen of protobuf does not change a 50 ms network hop. The honest way to decide is to measure your own p50/p99 latency and payload sizes for both, not to trust a benchmark from a different topology. More on the topic: “Fiber gRPC Under the Microscope: Prompts That Make an LLM Design Contracts, Hunt Goroutine Leaks, and Admit When Your Service Is Degrading”.
The real costs are operational:
- Browsers. Browsers cannot speak raw gRPC; you need gRPC-Web, which requires a proxy (Envoy is the common one) to translate between the browser's HTTP/1.1-friendly framing and gRPC. That proxy is another hop, another config to maintain, and another place latency and failures appear — so gRPC-Web overhead matters most exactly when you were hoping gRPC would be fastest: chatty browser clients.
- HTTP/2. gRPC assumes HTTP/2 end to end. Any intermediary that terminates or downgrades to HTTP/1.1 breaks it, which is why the proxy above is not optional.
- Debugging. Payloads are binary; you need the
.protofiles and tooling (grpcurl, server reflection) to inspect a call, where REST is readable withcurl.
What it costs in practice: A team exposing a public API over gRPC finds that third-party developers in languages with thinner gRPC tooling can't integrate easily, and browser clients need the proxy. They add a REST/JSON gateway in front — which means two schemas to keep in sync and two surfaces to secure.
Myth 3: “OpenAPI is just documentation — it doesn't affect design”
What people believe: OpenAPI is written after the API is built, to generate docs. Design however you want and document later. More on the topic: “API Design: How to Design APIs Like a Pro — REST, GraphQL, gRPC, OpenAPI, and Best Practices”.
What's actually true: Writing the spec first forces decisions on resource naming, status codes, error shape, and versioning before code exists, and it becomes a contract both sides can generate from. The tooling has limits worth knowing before you commit: code generators vary in quality across languages and often need hand-editing for auth, pagination, and error handling; complex schemas (polymorphism, deeply nested oneOf) generate awkward client types; and round-tripping generated code back into the spec is not automatic. Design-first still pays, but budget for generator cleanup rather than expecting a free SDK. More on the topic: “System Design: How Scaling Turns 1,000 Users into 10 Million”.
What it costs in practice: A team that designs without a spec ends up with mixed casing, some errors as plain text and some as JSON, and clients full of special cases. Adopting design-first with OpenAPI removes most of that — at the price of the generator cleanup above. More on the topic: “System Design Interview: A Step-by-Step Preparation Plan for FAANG and Top-Tier Companies”.
Myth 4: “Versioning is an afterthought — we'll just add v2 when needed”
What people believe: You can always version later by adding /v2/, so why worry now?
What's actually true: The strategy has to be chosen upfront because each option has a concrete cost:
- URI versioning (
/v1/users) is simple and discoverable, but it multiplies URLs — every resource now exists at two paths, and your CDN cache and analytics fragment across versions. It also tempts teams to fork whole trees for a one-field change. - Header or media-type versioning (
Accept: application/vnd.api+json; version=1) keeps URLs clean and cache-friendly in principle, but many CDN configurations key on URL and ignoreVary/Acceptsubtleties, so you must verify your CDN actually varies on the header — otherwise clients get the wrong version from cache. It's also invisible in a browser address bar, which makes support harder.
Whichever you pick, the cheaper path is to avoid breaking changes: add fields, don't rename or remove them; make new fields optional; deprecate with a sunset date before removing.
What it costs in practice: A company renamed a field without a version. Clients that hadn't updated broke, and the team maintained two response shapes in parallel for months. A versioned path plus a deprecation window would have made the same change a scheduled migration instead of an outage.
Myth 5: “Pagination is trivial — just use offset and limit”
What people believe: ?offset=20&limit=10 is simple and works everywhere.
What's actually true: Two separate problems.
- Correctness. Offset counts positions, not items. If a row is inserted above your current position between page 1 and page 2, an item shifts down and you see it twice; if one is deleted, you skip an item. This is why feeds show duplicates.
- Speed.
OFFSET 100000is not a jump — most databases must generate and discard the first 100,000 rows before returning the next 10, so cost grows with the offset, not the page size. Cursor pagination avoids this with a keyset comparison: instead of “skip N,” you ask for rows where(created_at, id) < (last_seen_created_at, last_seen_id) ORDER BY created_at DESC, id DESC LIMIT 10. With an index on those columns the database seeks straight to the position, so page 10,000 costs about the same as page 1. The tie-breaker column (id) matters: without it, rows sharing a timestamp can be skipped or repeated at page boundaries.
What it costs in practice: A social feed on offset pagination showed duplicate posts as it grew. Switching to keyset cursors fixed it and flattened query time — but every client had to learn the cursor/next_cursor contract, which is why the decision belongs in v1, not v3.
Myth 6: “Error handling is just returning a 500 when something goes wrong”
What people believe: Any HTTP status code is good enough; details don't matter.
What's actually true: Return a consistent error object with a machine-readable code, a human-readable message, and a request ID for tracing. Use the status code that matches the cause: 400 bad request, 401 unauthenticated, 403 forbidden, 404 not found, 409 conflict, 422 validation failure, 429 rate limited. Reserve 500 for genuine server faults — a validation error returned as 500 sends clients into retry loops that make things worse.
What it costs in practice: A payment API returned bare 500s. Clients couldn't tell a validation problem from an outage, so they retried everything, and support tickets piled up while integrations stalled.
Myth 7: “Security is just adding an API key”
What people believe: An API key means you're secure; OAuth is overkill.
What's actually true: An API key identifies the caller, not the user, and carries no scopes — anyone holding it has everything it can reach. OAuth 2.0 with OIDC gives delegated, scoped, revocable access per user. For internal service-to-service calls, mutual TLS or short-lived JWTs fit. The choice follows your threat model: what happens if this credential leaks, and can you revoke it without breaking every customer?
What it costs in practice: A startup used one key for all customers. When it leaked, the attacker had full access to all data; rotation and customer notification followed, and trust took the hit.
How to choose: a practical walkthrough
Say you're building an API for a task app — users, projects, tasks — consumed by a web app and a mobile app.
- Model the resources.
/users,/projects,/tasks, with tasks under projects and projects under users. - Pick the protocol. REST with JSON is the default: cacheable, debuggable, consumable everywhere. Add GraphQL as a facade later only if clients genuinely need to combine many resources per screen — and if you do, plan persisted queries and a batching loader from the start.
- Design endpoints. Nouns for resources, verbs for actions:
GET /projects/{id}/tasks, POST to create, PATCH to update, DELETE to remove. - Plan pagination. Keyset cursors with
cursorin andnext_cursorout, ordered by(created_at, id). - Define errors. One JSON shape:
{ "error": { "code": "TASK_NOT_FOUND", "message": "Task not found", "request_id": "abc123" } }, with matching status codes. - Version from day one.
/v1/..., plus a rule that additive changes don't bump the version and removals get a deprecation window. - Spec first. Write the OpenAPI definition, generate stubs and SDKs, and budget time to clean up what the generators produce.
Skip pagination or versioning planning and you'll pay later: switching pagination means updating every client, and an unversioned breaking change breaks integrations you can't see.
- Resource-oriented, simple
- Easy caching and debugging
- Best for public APIs and CRUD
- Flexible data fetching
- Single endpoint, client-specified queries
- Good for complex, nested data
Learning paths: self-study vs. structured courses vs. practice
Self-study: blog posts, tutorials, experiments. Free and flexible, but no feedback — you may not know what you don't know. Months to proficiency, depending on background.
Structured courses: a curated path with exercises and feedback. Faster and more systematic, at a cost and with a commitment. Weeks to months.
Practice on real projects: open source or your own API. Real experience and a portfolio, but you can reinforce bad habits without guidance.
Beginners usually save time with a structured course; experienced developers do well with targeted self-study plus practice. Many combine both.
Who should learn API design (and who shouldn't)
It's essential for backend developers, full-stack engineers, and architects building services others consume, and valuable for frontend developers who consume APIs and can advocate for better designs. Purely non-technical roles don't need deep skills, though the basics help communication. Expect to iterate: API design improves with practice and feedback, not overnight. More on the topic: “Go for Backend: What Building Reliable and Fast Backends Actually Demands — and Where Beginners Stumble”.
The course API Design covers REST, GraphQL, gRPC, OpenAPI, versioning, pagination, error handling, and security, with personalized lessons that adapt to your results. If you want a structured way to master these concepts and avoid the myths above, it's a solid starting point — see the course page for details and enrollment. More on the topic: “Kubernetes in Production: The Myths That Cost You a 3 a.m. Pager, and How Clusters Actually Run”.