---
title: "Exploring Support Tooling at Supabase: A Dive into SLA Buddy"
description: "SLA Buddy is Supabase's internal support-ticket SLA enforcer, built almost entirely in Postgres with Edge Functions."
url: "https://swe.quest/articles/exploring-support-tooling-at-supabase-a-dive-into-sla-buddy-85261d9d45d8b13f"
canonical: "https://supabase.com/blog/exploring-support-tooling"
source: "Supabase"
published: "2024-04-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["postgres","serverless","scheduling","sql"]
---

# Exploring Support Tooling at Supabase: A Dive into SLA Buddy

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2024-04-25, 8 min read, Case study. Original: [https://supabase.com/blog/exploring-support-tooling](https://supabase.com/blog/exploring-support-tooling)

## Summary

SLA Buddy is Supabase's internal support-ticket SLA enforcer, built almost entirely in Postgres with Edge Functions. Edge Functions scan Slack channels into a slack\_watcher table; a PL/pgSQL trigger enqueues four escalation tasks per ticket with due times based on channel and plan. A periodic function guarded by an advisory lock checks for replies and posts Slack escalations, and Google Calendar shifts are pulled via the http extension and Vault secrets. Escalation runs from non-embedded support to the head of success over 10–50 minutes for Enterprise and 1–12 hours for Team, and engineers can snooze it 30 minutes by mentioning the bot.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- PL/pgSQL functions and triggers
- Postgres advisory locks ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Slack bot APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

SLA Buddy, Supabase, Supabase Edge Functions, Slack, Google Calendar, pg\_try\_advisory\_lock, Supabase Vault

## Related posts

- [Slack Consolidate: a slackbot built with Python and Supabase](https://swe.quest/articles/slack-consolidate-a-slackbot-built-with-python-and-supabase-0daf5634c032a1a6.md): Supabase · 2022-08-09 · Medium · 8 min read · Python, PostgreSQL, Communications
  A Python Slack bot polls watched channels via conversations.history and reposts new messages to consolidated destination channels.
- [Processing large jobs with Edge Functions, Cron, and Queues](https://swe.quest/articles/processing-large-jobs-with-edge-functions-cron-and-queues-07d70dfaed40c250.md): Supabase · 2025-09-16 · Medium · 8 min read · Serverless, Data pipelines, PostgreSQL, Resilience, Scheduling
  Large data-processing jobs on Supabase can be split into a three-layer pipeline: cron-triggered Edge Functions collect work, distributor jobs route it into per-source Postgres queue tables, and specialized workers process one item at a time to stay within serverless timeouts.
- [Operate with confidence: check production with your coding agent](https://swe.quest/articles/operate-with-confidence-check-production-with-your-coding-agent-2d12eed022759488.md): Supabase · 2026-10-20 · Medium · 4 min read · AI agents, Observability, PostgreSQL, Developer tools
  Supabase now ships Agent prompts that let a coding agent (Claude, Codex, Cursor) check a production project on a schedule for error spikes, security findings, slow queries and resource growth, reporting only new or worsening issues with the measured value, threshold and a next step.
- [Faster config, migrations and functions on branches](https://swe.quest/articles/faster-config-migrations-and-functions-on-branches-f64718202c9feaa6.md): Supabase · 2026-10-15 · Medium · 7 min read · PostgreSQL, Schema migrations, Deployment, CI/CD, Serverless
  Supabase preview branches are separate projects that become ready in about 20 seconds (median) by running three mostly parallel workflows: copying configuration, applying migrations, and deploying Edge Functions.
- [Workflows are coming to Supabase](https://swe.quest/articles/workflows-are-coming-to-supabase-a57ed34660f0256b.md): Supabase · 2021-04-02 · Medium · 5 min read · Serverless, PostgreSQL, Elixir & Erlang, Scheduling, Event-driven architecture
  Supabase is building Workflows, an open source orchestration engine written in Elixir that uses the Amazon States Language to coordinate existing functions (AWS, GCP, Azure, OpenFaaS, Postgres) in response to database events or HTTP calls.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
