Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/694e6f51-ab10-8009-8d6f-c671b3b99c63
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 🔍 各サービスの特徴(今回の用途で) ==== ===== 🟩 Supabase Cron (Pg_cron + Edge Functions) ===== ✔ Supabase 内でジョブ定義できる公式の Cron 仕組み Supabase<ref>{{cite web|title=Supabase|url=https://supabase.com/blog/supabase-cron|publisher=supabase.com|access-date=2025-12-27}}</ref> ✔ DB 側で直接 Edge Function を呼べる(HTTP POST) Supabase<ref>{{cite web|title=Supabase|url=https://supabase.com/docs/guides/functions/schedule-functions|publisher=supabase.com|access-date=2025-12-27}}</ref> メリット * Supabase のみで完結する(追加インフラ不要) * ジョブ管理も DB の cron テーブルで可能 * DB 更新も同じインフラで実行できる 注意点 * pg_cron は DB 内にあり、API KEY を扱うなど少し設定が必要 * ログ・再試行管理は自前実装が必要になる場合あり おすすめ度: ⭐⭐⭐⭐(Supabase メインで完結したいなら良い) ===== 🟦 Vercel Cron Jobs + API エンドポイント ===== ✔ Vercel が提供する Cron Jobs(HTTP エンドポイントを定期実行) Vercel<ref>{{cite web|title=Vercel|url=https://vercel.com/docs/cron-jobs|publisher=vercel.com|access-date=2025-12-27}}</ref> メリット * Cron 設定 UI がある * 実行ログやエラー管理も見やすい * HTTP エンドポイント叩くだけなので柔軟 デメリット * Supabase とは別に Vercel プロジェクトが必要 * Vercel の料金・制限を考慮 おすすめ度: ⭐⭐⭐(フロント + サーバーレス統合が目的なら) ===== 🟣 Cloudflare Workers + Cron Triggers ===== ✔ Cloudflare の Cron Triggers で Worker を定期実行 Cloudflare Docs<ref>{{cite web|title=Cloudflare Docs|url=https://developers.cloudflare.com/workers/configuration/cron-triggers/|publisher=Cloudflare Docs|access-date=2025-12-27}}</ref> メリット * Cron 実行が非常に安定 * 世界中のエッジで高速実行 デメリット * Worker のコード + Cron トリガーの設定が必要 * Supabase との HTTP 実行コードを自前実装 おすすめ度: ⭐⭐⭐(信頼性重視だが少し構築コスト) ===== 🟡 GitHub Actions (Schedule Workflow) ===== メリット * Free プランでも使える * 実装が YAML 1 ファイルで完結 * GitHub が Cron を管理 → 大体こんな形: <syntaxhighlight lang="yaml">on: schedule: '' cron: "0 0 '' * 1" # 毎週月曜 jobs: run: runs-on: ubuntu-latest steps: * name: Call Gemini + Save to Supabase run: | node scripts/weekly-job.js </syntaxhighlight> デメリット * 実行結果のリトライや通知が作りにくい * UI でスケジュール管理は弱い おすすめ度: ⭐⭐⭐⭐(超手軽 / 小規模)
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)