Skip to content

Commit 79c02f5

Browse files
committed
Update upgrading guide
1 parent 57cd8ae commit 79c02f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/04_upgrading/upgrading_to_v3.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ async def main():
5555

5656
## The default use of optimized ApifyRequestQueueClient
5757

58-
- The default client for working with Apify platform based `RequestQueue` is now optimized and simplified client which has significantly lower amount of API calls, but does not support multiple consumers working on the same queue. It is cheaper and faster and is suitable for the majority of the use cases.
59-
- The full client is still available, but it has to be explicitly requested via `simple_request_queue=False` argument when using the `ApifyStorageClient`.
58+
- The default client for working with Apify platform based `RequestQueue` is now optimized and simplified client which does significantly lower amount of API calls, but does not support multiple consumers working on the same queue. It is cheaper and faster and is suitable for the majority of the use cases.
59+
- The full client is still available, but it has to be explicitly requested via `access="shared"` argument when using the `ApifyStorageClient`.
6060

6161
**Now (v3.0):**
6262

@@ -65,8 +65,8 @@ from apify.storages import RequestQueue
6565
from apify.storage_clients import ApifyStorageClient
6666

6767
async def main():
68-
# Full client
69-
rq_full = await RequestQueue.open(storage_client=ApifyStorageClient(simple_request_queue=False))
70-
# Default optimized client
71-
rq_simple = await RequestQueue.open(storage_client=ApifyStorageClient())
68+
# Full client that supports multiple consumers of the Apify Request Queue
69+
rq_shared = await RequestQueue.open(storage_client=ApifyStorageClient(access="shared"))
70+
# Default optimized client that expects only single consumer of the Apify Request Queue
71+
rq_single = await RequestQueue.open(storage_client=ApifyStorageClient())
7272
```

0 commit comments

Comments
 (0)