user7995357
user7995357

Reputation: 151

Azure Search: Frequency of calling indexer

For an Azure Search service, I am looking to get updates reflected closest to real-time. I can execute it via REST API using a logic app with recurrence.

If I invoke the logic app very frequently(ever 3 seconds). Is there a catch to this approach?

I am trying to see if I can avoid building logic to determine various scenarios when the indexer needs to be called. (can get complex)

Upvotes: 1

Views: 442

Answers (1)

Eugene Shvets
Eugene Shvets

Reputation: 4671

If you're OK with indexer running every 5 minutes, you don't need to invoke it at all - it can run on a schedule.

If you need to invoke indexer more frequently, you can run it once every 3 minutes on a free tier service, and as often as you want on any paid tier service. If an indexer is already running when you run it, the call will fail with a 409 status.

However, if you need to run indexer very frequently, usually it's in response to new data arriving and you have that data in hand. In that case, it may be more efficient to directly index that data using the push-style indexing API. See Add, update, or delete documents for REST API reference, or you can use Azure Search .NET SDK

Upvotes: 2

Related Questions