Falcor vs GraphQL

Need advice about which tool to choose?Ask the StackShare community!

Falcor

28
79
+ 1
14
GraphQL

33.1K
27.3K
+ 1
310
Add tool

Falcor vs GraphQL: What are the differences?

  1. Data Fetching Model: Falcor utilizes a "path" concept to fetch data directly from a JSON-like graph structure, enabling users to request specific data using paths. In contrast, GraphQL uses a declarative data fetching model where clients can specify the exact data needed using queries.

  2. Data Caching: Falcor has built-in caching mechanisms to help reduce network requests by storing fetched data locally, allowing for efficient data retrieval when needed. GraphQL does not have built-in caching mechanisms and relies on the client to manage caching strategies.

  3. Server-Side Implementation: Falcor is typically server-centric, with most of the logic residing on the server to handle data fetching and manipulation. On the other hand, GraphQL puts more emphasis on the client-side, providing flexibility for clients to define their data requirements without server modifications.

  4. Response Structure: Falcor typically returns complete JSON responses containing the requested data along with metadata, which can be tailored to fit specific use cases. In contrast, GraphQL responses mirror the shape of the query, providing precise data requested by the client without additional metadata clutter.

  5. Batching Requests: Falcor allows for batching multiple requests into a single network call, enhancing efficiency and reducing overhead. In contrast, GraphQL inherently supports requesting multiple resources in a single query, minimizing network round trips for complex data requirements.

  6. Type System: GraphQL enforces a strongly typed schema where clients must adhere to predefined types and structures, ensuring consistency and reliability in data fetching processes. Falcor, while providing schema-like capabilities with its JSON graph structure, does not enforce strict types on clients, offering more flexibility but potentially leading to data integrity issues.

In Summary, Falcor and GraphQL differ in their data fetching models, caching mechanisms, server-side implementation, response structures, request batching capabilities, and type system enforcement.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Falcor
Pros of GraphQL
  • 2
    Promotes microservices
  • 2
    Small API
  • 2
    Data is the API
  • 2
    One Model Everywhere
  • 1
    efficient data fetching
  • 1
    Bind to the Cloud
  • 1
    Virtual JSON Resource
  • 1
    Simple
  • 1
    Backed by Netflix
  • 1
    JSON Graph
  • 75
    Schemas defined by the requests made by the user
  • 63
    Will replace RESTful interfaces
  • 62
    The future of API's
  • 49
    The future of databases
  • 13
    Self-documenting
  • 12
    Get many resources in a single request
  • 6
    Query Language
  • 6
    Ask for what you need, get exactly that
  • 3
    Fetch different resources in one request
  • 3
    Type system
  • 3
    Evolve your API without versions
  • 2
    Ease of client creation
  • 2
    GraphiQL
  • 2
    Easy setup
  • 1
    "Open" document
  • 1
    Fast prototyping
  • 1
    Supports subscription
  • 1
    Standard
  • 1
    Good for apps that query at build time. (SSR/Gatsby)
  • 1
    1. Describe your data
  • 1
    Better versioning
  • 1
    Backed by Facebook
  • 1
    Easy to learn

Sign up to add or upvote prosMake informed product decisions

Cons of Falcor
Cons of GraphQL
    Be the first to leave a con
    • 4
      Hard to migrate from GraphQL to another technology
    • 4
      More code to type.
    • 2
      Takes longer to build compared to schemaless.
    • 1
      No support for caching
    • 1
      All the pros sound like NFT pitches
    • 1
      No support for streaming
    • 1
      Works just like any other API at runtime
    • 1
      N+1 fetch problem
    • 1
      No built in security

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is Falcor?

    Falcor lets you represent all your remote data sources as a single domain model via a virtual JSON graph. You code the same way no matter where the data is, whether in memory on the client or over the network on the server.

    What is GraphQL?

    GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Falcor?
    What companies use GraphQL?
    See which teams inside your own company are using Falcor or GraphQL.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Falcor?
    What tools integrate with GraphQL?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    GitHubDockerReact+17
    40
    36309
    GitHubPythonNode.js+47
    55
    72351
    What are some alternatives to Falcor and GraphQL?
    Atlas
    Atlas is one foundation to manage and provide visibility to your servers, containers, VMs, configuration management, service discovery, and additional operations services.
    REST
    An architectural style for developing web services. A distributed system framework that uses Web protocols and technologies.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Insomnia REST Client
    Insomnia is a powerful REST API Client with cookie management, environment variables, code generation, and authentication for Mac, Window, and Linux.
    OpenAPI
    It is a publicly available application programming interface that provides developers with programmatic access to a proprietary software application or web service.
    See all alternatives