---
title: "Discussion on \"API Design Best Practices for long-running Operations: GraphQL vs REST\" | Hashnode"
description: "Discussion on \"API Design Best Practices for long-running Operations: GraphQL vs REST\". I've recently read an article where the author stated that GraphQL is \"not appropriate for long-running operations\". I'd like to show that GraphQL can very well be used for long-running operations.\nWe'll also take a look at how such a problem can be ..."
url: "https://hashnode.com/posts/api-design-best-practices-for-long-running-operations-graphql-vs-rest/6267f4477b6a339ac2d01a7c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [API Design Best Practices for long-running Operations: GraphQL vs REST](https://stefanatwundergraph.hashnode.dev/api-design-best-practices-for-long-running-operations-graphql-vs-rest?utm_source=hashnode&utm_medium=feed)

I've recently read an article where the author stated that GraphQL is "not appropriate for long-running operations". I'd like to show that GraphQL can very well be used for long-running operations. We'll also take a look at how such a problem can be ...

Apr 26, 2022 · 12 min read · stefanatwundergraph.hashnode.dev  
Read the article

-   [#graphql](https://hashnode.com/tag/graphql)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#apis](https://hashnode.com/tag/apis)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Stefan](https://hashnode.com/@StefanAtWundergraph)

@StefanAtWundergraph · Global

  
[View profile](https://hashnode.com/@StefanAtWundergraph)

Co-Founder at WunderGraph

Hi my name is Stefan and I am a software engineer turned growth hacker. I am currently a Co-Founder and Head of Growth at WunderGraph.

## Responses 1

Markdown supported · ⌘↵ to post

[Simone Saviolo](https://hashnode.com/@simonesaviolo)

[May 2, 2022](https://hashnode.com/posts/api-design-best-practices-for-long-running-operations-graphql-vs-rest/6267f4477b6a339ac2d01a7c/comment/626f8d22238a6ff3d7dc7c75)

If the client can receive HTTP requests (for example, if it's an HTTP application itself making server-to-server calls), a solution I've often used is to give the client the option to specify a callback URL. This way, when the server completes the long-running operation, a request is sent to the callback URL with the relevant information (basically the same content of the `status` response). This addresses the issue of polling being potentially heavy on the server, but it requires the client to be more complex.
