Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

How to track API requests in Azure APIM to Table Storage

DEV Community·Sam Vanhoutte·about 1 month ago
#4h49ViXn
#azure#apim#cloud#request#policy#table
Reading 0:00
15s threshold

When you run a mobile API (like us at libelo ), you quickly reach a point where you want to understand how people are actually using it. Not just error counts or latency histograms, but the real detail: which operations are called, from which platform, with what location data, at what time. We log all requests with Azure Application Insights, but that is mostly for troubleshooting purposes and comes with sampling risks, and a retention window. In our backend, I have added an extra option: write every incoming API request directly to Azure Table Storage, right from the APIM policy, in a fire-and-forget way. The cost is minimal, the data is ours to query whenever we like, and the extra latency added to your API responses is zero. And the most important thing is that we are storing this data for further analytics and platform usage insights. This post walks through how to set it up. Why Azure Table Storage Table Storage gives you cheap, durable, schemaless rows with a partition and row key.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More