question

Vlad Kryvoborodov avatar image
Vlad Kryvoborodov asked

API calls timeouts

Good day,We are experiencing timeouts on API while trying to get players in segment. Here is screenshot of time spent on the querying all players in segment ALL. As you see first batch(first query) takes 25 seconds, sometimes more, i saw 40 seconds delay for first batch.
First batch query looks like this
request_body = {
                
'SegmentId': segment_id,
'MaxBatchSize': 10000
}

response = pf_call('GetPlayersInSegment', request_body)

apis
image-10.png (48.0 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Can you please describe how you're using that call? To be clear, GetPlayersInSegment is extremely CPU intensive (and so, can take some time to process), and should never be called as a result of a player action.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.