---
title: "Comment by Simone Saviolo on \"API Design Best Practices for long-running Operations: GraphQL vs REST\" | Hashnode"
description: "If the client can receive HTTP requests (for example, if it&#39;s an HTTP application itself making server-to-server calls), a solution I&#39;ve often used is t"
url: "https://hashnode.com/posts/api-design-best-practices-for-long-running-operations-graphql-vs-rest/6267f4477b6a339ac2d01a7c/comment/626f8d22238a6ff3d7dc7c75"
---

[Discussion](https://hashnode.com/posts/api-design-best-practices-for-long-running-operations-graphql-vs-rest/6267f4477b6a339ac2d01a7c)

Comment [API Design Best Practices for long-running Operations: GraphQL vs REST](https://hashnode.com/posts/api-design-best-practices-for-long-running-operations-graphql-vs-rest/6267f4477b6a339ac2d01a7c)

[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.
