QuestionQ107

VerifiedDatabricks Intelligence Platform

Which compute option should be chosen in a scenario where small-scale ad-hoc Python scripts need to be run at high frequency and should wind down quickly after these queries have finished running?

Explanation

Serverless compute provides near-instant startup and automatically scales down when idle, which is exactly what small, frequently-run ad-hoc Python scripts need. Job clusters also auto-terminate, but they are provisioned per job run and incur multi-minute startup latency each time, making them poorly suited to high-frequency ad-hoc use; an all-purpose cluster stays up and costs more when idle, and a SQL warehouse only executes SQL, not general Python code.

Community Discussion

No comments yet. Be the first to start the discussion!