Skip to content

Running the service

Capacity

Microsoft's limits, what is in force against them now, and what each dial that keeps you inside them costs.

The Capacity screen on its Live load tab: the completion dial beside the concurrency, the busiest mailbox and the throttles

Microsoft applies three limits to Outlook data, and all three are counted per application and per mailbox:

  • 10’000 requests per 10 minutes
  • 4 concurrent requests
  • 150 MB of upload per 5 minutes

Per mailbox is the part that decides the design. Two recipients have nothing to do with each other, so work for different people runs in parallel; work for one person queues.

Capacity, under Operations, is the live view: what is in force against those limits now, which of it adaptive mode is steering, and the history, a tab each. The dials themselves are set on Settings, and the page’s header links there, to Settings › Pacing and Settings › Throughput.

  • Live load — one band of eight figures beside the completion dial: read and write concurrency in force against your ceiling (4 / 8), per mailbox, the requests sent and throttled, what has been uploaded, and the busiest mailbox’s five-minute window against Microsoft’s 150 MB. Beside the title, whether pacing is holding anything back now. While Graph has throttled the deployment in the last day, a warning above the band says how often and when last. Under it, Throttled mailboxes, directories included, each until the time Graph named — the same table as on the Workers tab.
  • Adaptive steering — every dial, the value in force, and who set it: you, adaptive mode or Microsoft. The mode is beside the title.
  • History — the queue’s depth and age, the throttle ratio and how long each schedule’s runs took, over a window from a day to six months.

The dials in this section and the next two are set under Settings › Throughput, a box each, saved together.

Per mailbox is capped at Microsoft’s four. Lower it if this app registration is shared with something else pointed at the same mailboxes — the four are counted per application, and ContactMesh cannot see the other half.

Read concurrency and write concurrency are the total in flight across every mailbox, for one sending process. Each worker holds the whole number rather than a share of it, so a second worker widens the deployment instead of dividing it — and one mailbox is still held to Microsoft’s four across every process, whatever these two say. The pace is the setting that divides between processes, because a rate is the thing that adds up: two processes sending every 30 ms are a deployment sending every 15. A process that has sent nothing for thirty seconds stops counting towards that division until it sends again.

A call, not an operation: a batch of twenty writes is one of them. What a batch is, what a claim is, and which of these numbers to move when the queue is slow is on Throughput.

With Adaptive mode switched to Adapting automatically, a throttle halves the ceiling in force for that kind, once for the whole deployment however many processes saw it, and every two minutes without one give twelve percentage points back. A night of quiet restores all of it, whether or not anything was running. The screen shows what is in force against your number — 4 / 8 — and while adaptive mode has the deployment below your number the steering table says by how much. Switching adaptive mode on starts again from the whole ceiling.

Concurrency says how many at once, which is not what Graph throttles on — it throttles on rate. With a pace set, the product trickles: one request, wait, the next. Slower than the queue could go, and much faster than sprinting into a 429 and sitting out the penalty.

Reads and writes are paced separately because they are not the same risk. A read is cheap and idempotent and is what a rollout needs in order to finish; a write is what lands in somebody’s mailbox and what earns the throttle.

Each has two ends, and the slow one is what gives adaptive mode somewhere to steer.

DialWhat it saysWhat adaptive mode does with it
Read pace, write paceThe smallest gap the product will ever leave. Zero is unpacedReturns to it as the ceiling in force recovers
Read pace slowest, write pace slowestThe largest gap it may give itselfMoves towards it with the ceiling in force — twice the gap at half — and never past it

A slow end at or below the fast end is not a range. The pace is then fixed, adaptive mode steers the concurrency alone, and that is what a deployment which has never opened this page has. Changing either end during an incident keeps the incident’s back-off, in proportion: the new range is steered at the ceiling already in force rather than from its fast end.

The ten thousand requests and the 150 MB are Microsoft’s numbers, so this setting is not a number. It is what share of them this deployment is willing to occupy — ten to a hundred per cent, in steps of five, and a hundred by default.

Settings restates the share as a rate under its box, because a percentage is not something anybody can picture: a hundred is 10’000 requests per ten minutes to any one mailbox, about a thousand a minute; forty is 4’000, about four hundred a minute. The share applies to both windows at once. They are one budget as far as an operator is concerned, and two percentages would be two numbers to keep in agreement for no gain.

The reason to set anything but a hundred is a shared application registration. Both windows are counted per application and per mailbox, so anything else pointed at the same mailboxes under the same registration spends from the same allowance, and neither of you can see the other’s half. Leaving headroom for its own sake is the other reason: a ceiling found by running into it is found as a 429.

At the ceiling ContactMesh waits rather than failing, and it waits only for the oldest ten-second bucket in that window to fall out rather than for the whole ten minutes.

Like the pace, and unlike the concurrency, this budget belongs to the deployment rather than to each process. Every replica writes what it has spent against a mailbox to a shared ledger and takes on the others’ totals every ten seconds, so a second worker divides one allowance instead of believing it owns a second one.

Pacing, the verification round, the queue and the retention windows were the top half of this screen. They are on Settings now.