API Options
REST
- Pros
- The most well-tested solution for the web
- Current app is implemented with this strategy
- Cons
- Endpoints return unnecessary data (some endpoints return >1MB)
- No 100% satisfying solution for integrating frontend and backend
GraphQL
- Pros
- GraphQL gives amazing developer experience
- Packages available for web, mobile and server
- Selective data fetching (smaller requests)
- Cons
- Some degree of lock-in to the Apollo ecosystem
- Vastly different to classical REST API
- Entire rewrite