You can now deploy Neon Functions - they live in the branch next to your DB, are long-running, perfect for agents and realtime
Branching

Mastering Database
Branching Workflows

Ship software faster using Neon branches