RequestQueueV2 performs 4 writes per request vs only 2 with RequestQueueV1 #3118
Closed
silva95gustavo
started this conversation in
General
Replies: 1 comment 3 replies
-
Hi Gustavo! You are right, the RequestQueueV2 performs additional operations to ensure safe concurrent processing of the same queue from multiple Actors, which increases the usage cost. If you could explain to us what your usage pattern is, perhaps we can help optimize it. However, we are planning to make request locking opt-in again because we found that it is not necessary for the majority of use cases. In the meantime, you are free to switch back to RequestQueueV1 and it should work the same as before. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Apify team,
I've been optimising the cost of my Apify actors and noticed that writes to the Request Queue account for over half of the total cost. After migrating to
RequestQueueV2
, I saw a noticeable increase in the number of writes from 2 per request in V1 to 4 in V2.I understand there may be architectural reasons behind this change, but I wanted to raise it in case there's room for improvement. Ideally, it would be great if the number of writes in V2 could be reduced, or alternatively, if the V1 behavior could still be supported as a configurable option (and not deprecated) for those prioritising cost efficiency.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions