Improve sustainable throughput for touchpoints#show endpoint
メンテナーはふだん 1 日以内に返信
@MrNagoo がすでに取り組んでいます。
2026年10月26日 から。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- backend, performance
調査の方向性
Start by locating the touchpoints#show endpoint and its existing form model caching; the issue names no files or tests. Compare caching or render-on-write approaches, then measure throughput under a request distribution where fewer than 0.001% of requests need re-rendering. Done means one production instance sustains 40–50 requests per second.
索引モデルが issue の本文から書いたものです。
説明
The problem
touchpoints#show is the endpoint that returns the widget for a form. It is called whenever a website with an embedded Touchpoints form loads or a hosted Touchpoints form is loaded. The endpoint renders the saved form configuration into JavaScript that displays and manages a form.
Nearly all calls to Touchpoints are to this endpoint. Throughput for touchpoints#show ranges between 3k and 5k requests per minute, while the next busiest endpoint (submissions#create) tops out at about 40 requests per minute.
Currently, a single production instance of the Touchpoints app can only handle about 900 touchpoints#show requests per minute (15 per second, based on load testing with a form of medium-low complexity). This is the main reason that we are running 18 instances of Touchpoints in prod, each costing us 6 Cloud.gov credits per month (we may not actually need all of those but touchpoints#show alone probably justifies at least 8-10 of them).
The goal
The goal for this ticket is to boost the per instance sustainable throughput for touchpoints#show by at least 10X, which should allow us to cut our number of production instances to a more reasonable 2 or 3 count.
The rendered version of a form only changes when the form changes, either because the form's owner edited the form or because Touchpoints developers changed the underlying code or data model for the form. Such changes don't happen very often, which means that most re-renders are redundant. Even without a speed-up to the actual rendering code, we should be able to increase throughput significantly through caching or render-on-write.
To provide some metrics on how often a form needs to be re-rendered, in the last 7 days:
- 33 million requests to
touchpoints#show - 2000 requests to endpoints that modify forms
- Approximately 0.0067% of render requests might actually require a re-rendering
Acceptance Criteria
- Single production instance of Touchpoints app can handle at least 150
touchpoints#showrequests per second, assuming a request distribution where less than 0.001% of requests need to be re-rendered.
- 主要言語
- JavaScript
- スター
- 73
- フォーク
- 38
- 平均マージ
- 14時間 53分
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GSA/touchpoints のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GSA/touchpoints#2154 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
digital-registry
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
GSA/touchpoints#2130 ·
メンテナーはふだん 1 日以内に返信
-
digital-registry
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
GSA/touchpoints#2111 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GSA/touchpoints#2038 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
GSA/touchpoints#2036 ·
メンテナーはふだん 1 日以内に返信
GSA/touchpoints の issue をすべて見る
似ている issue
-
ISA Builder: the Configuration tab has no tabpanel, so both tabs' aria-controls point at a missing element対応中かも @vikash2006-dot が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
riscv/riscv-isa-explorer#725 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates on対応中かも @yadavraj2001 が今日担当しました。 オープンdocumentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
juandresrodca/AdminForge#73 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Windows 内置更新报“更新进程启动确认超时”:Explorer ShellExecute 冗余的 -WindowStyle Hidden + -EncodedCommand 触发卡巴斯基挂起オープンbug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WhiteBr1ck/agy-powertools#397 ·
メンテナーはふだん 1 日以内に返信
-
icon submission
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
kubai087/kubai-icons#203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add: Don de Dieu TVオープンchannels:add check:passed
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信