Skip to content

A scenario for a forward deployed engineer · Junior and up

Launch morning, and it says try again

Beep · On call
Monday, 09:05

A customer's assistant went live to 5,000 staff this morning. It calls a pay-per-token Foundation Model API endpoint on Databricks, and a third of the requests come back with 429 Too Many Requests.

What do you do?

Tap the one you would do. The answer opens below.

Show the best call

Serve the model on a provisioned throughput endpoint sized for the load, and keep retries with backoff in the app.

The capacity is yours. The nine o'clock rush is answered, and the odd retry covers the rest.

Why

Pay-per-token endpoints have rate limits on input tokens, output tokens and requests, and past them the API answers 429. A provisioned throughput endpoint allocates dedicated capacity, bought in model units, for the models that support it. Databricks recommends it for production applications with sustained use. Retries with backoff still belong in the client.

Read it in the Databricks docs (opens in a new tab)

The other two

Works, at a price. Add retries with exponential backoff in the app and leave the endpoint as it is.
Most requests get through in the end. At nine o'clock people wait half a minute for an answer.
A poor call. Put up a banner asking staff to try again in a few minutes.
They try once more, get the same error, and go back to the old search page.

Go deeper on brickster.ai

More scenarios

Had one like this at work? Send it to us: the best tickets come from real incidents.

Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.