Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Architecture
Architecturemedium

REST vs GraphQL?

Tags
#api#rest#graphql#comparison
Back to categoryPractice quiz

Answer

REST exposes multiple resource endpoints and returns fixed response shapes, which can lead to over/under‑fetching. GraphQL exposes a single endpoint with a query language so the client asks for exactly the fields it needs, enabling nested fetches but adding schema/resolver complexity and different caching patterns.

Related questions

Architecture
API versioning — when do you version and what are two common strategies?
#api-versioning#backward-compatibility#rest
Architecture
How do you make a POST endpoint safe to retry (idempotency keys)?
#idempotency#api#retries
Architecture
What does it mean that an HTTP method is idempotent?
#http
#idempotency
#api
Next.js
Route Handlers in the App Router: how do you define them and what are they used for?
#nextjs#route-handlers#api
Spring
`@RestController` vs `@Controller`: what’s the difference?
#spring#mvc#controller
Microservices
REST vs gRPC for service-to-service calls: what are the key trade-offs?
#microservices#grpc#rest