dataloader VS apollo-ios

Compare dataloader vs apollo-ios and see what are their differences.

dataloader

DataLoader is a generic utility to be used as part of your application's data fetching layer to provide a consistent API over various backends and reduce requests to those backends via batching and caching. (by graphql)

apollo-ios

馃摫 聽A strongly-typed, caching GraphQL client for iOS, written in Swift. (by apollographql)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
dataloader apollo-ios
19 3
10,980 3,174
0.5% 1.6%
3.0 9.5
9 days ago 2 days ago
JavaScript Swift
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

dataloader

Posts with mentions or reviews of dataloader. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-17.
  • Clojure-server to Clojure-server communication library
    6 projects | reddit.com/r/Clojure | 17 Sep 2021
  • To GraphQL or not to GraphQL? Pros and Cons
    5 projects | dev.to | 13 Sep 2021
    This is also related to the N+1 problem, where nested queries make the number of database requests explode. If you want to learn more about this problem, I recommend this video and checking out dataloader, a library released by Facebook to help with batching queries and solving this problem.
  • Graph QL query involving more content
    2 projects | reddit.com/r/graphql | 8 Sep 2021
    i think DataLoader is what you want https://github.com/graphql/dataloader
  • GraphQL - Diving Deep
    47 projects | dev.to | 29 Jul 2021
    While GraphQL is really promising and helpful, you have to understand that like any technology or framework, it does come with its own set of problems, most of which have already been addressed. For instance you might have heard about the N+1 problem, lack of caching, Query cost and complexity and so on and these have been addressed by some projects like the Dataloader, Persisted Queries, Caching and more which you can setup depending on your needs.
  • GraphQL - Usecase and Architecture
    8 projects | dev.to | 29 Jul 2021
    You might also want to look at how you minimize the amount of calls you make to the main database. Do you need caching and have it setup? Have you addressed the N+1 problem with Dataloader?
  • The Workflow
    10 projects | dev.to | 29 Jul 2021
    This is where you setup things like batching and also solve N+1 problems with something like a dataloader, setup caching with something like Redis or even an LRU cache to act as a proxy for the frequently accessed data whenever and wherever possible, optimizing the network chatter by using something like persisted queries, optimize your resolvers by retrieving as much data as possible from the parent resolvers, setting up pagination to limit the results returned, setting up things like query complexity to control the level of nesting and computation performed, rate-limiting in the gateway to avoid things like DDOS and so on.
  • Do resolvers cause a lot of extra database transactions?
    2 projects | reddit.com/r/graphql | 30 Jun 2021
    What you are looking for is dataloader.
  • GraphQL Dataloader
    1 project | dev.to | 17 Jun 2021
    For more information about Caching, please visit the GraphQL DataLoader GitHub page.
  • I built an open-source Reddit/Discord hybrid using React, TailwindCSS, and GraphQL!
    3 projects | reddit.com/r/reactjs | 8 Jun 2021
    Make sure you don't have any N+1 issues. If you are using FieldResolvers to make database requests, use dataloader (https://github.com/graphql/dataloader)
  • Advanced Promises in Javascript (Dataloader Pattern) - Mike Alche
    2 projects | reddit.com/r/javascript | 28 Mar 2021
    This looks like the same approach to what the graphql DataLoader does!

apollo-ios

Posts with mentions or reviews of apollo-ios. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-02.
  • Apollo iOS 1.0 RFC - Swift Codegen
    1 project | reddit.com/r/graphql | 1 Oct 2021
    RFC: apollo-ios/CodegenProposal.md at release/1.0-alpha-incubating 路 apollographql/apollo-ios 路 GitHub Example Generated Output: apollo-ios/Tests/ApolloCodegenTests/AnimalKingdomAPI/ExpectedGeneratedOutput at release/1.0-alpha-incubating 路 apollographql/apollo-ios 路 GitHub PR for discussion is here: [RFC] In Progress - Release 1.0 - Swift Codegen by calvincestari 路 Pull Request #1876 路 apollographql/apollo-ios 路 GitHub
  • SwiftGraphQL - A GraphQL client for Swift lovers.
    3 projects | dev.to | 2 Aug 2021
    Apollo iOS, on the other hand, generates Swift types from queries in our "queries.graphql" files and supports caching out of the box. Generating types from the SDL is not per se a problem, but it becomes cumbersome and error-prone with large nested queries. Apollo iOS also strongly-binds the generated structures to your queries, making it almost impossible to translate fetched data into an internal state.
  • GraphQL - Diving Deep
    47 projects | dev.to | 29 Jul 2021
    Apollo Client does have a good integration with these frameworks including React, iOS and Android 鈥 so, you might want to check that out

What are some alternatives?

When comparing dataloader and apollo-ios you can also consider the following projects:

Alamofire - Elegant HTTP Networking in Swift

Moya - Network abstraction layer written in Swift.

react-relay - Relay is a JavaScript framework for building data-driven React applications.

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

AFNetworking - A delightful networking framework for iOS, macOS, watchOS, and tvOS.

protobuf-swift - Google ProtocolBuffers for Apple Swift

jest - Delightful JavaScript Testing.

Netfox - A lightweight, one line setup, iOS / OSX network debugging library! 馃

ASIHTTPRequest - Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

RestKit - RestKit is a framework for consuming and modeling RESTful web resources on iOS and OS X

Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.

Sequelize - An easy-to-use and promise-based multi SQL dialects ORM tool for Node.js