Improve sustainable throughput for touchpoints#show endpoint
Maintainer thường phản hồi trong vòng 1 ngày
@MrNagoo đang làm issue này rồi.
Từ ngày 26/10/2026.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- backend, performance
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 73
- Fork
- 38
- Merge trung bình
- 14 giờ 53 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GSA/touchpoints
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GSA/touchpoints#2154 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
digital-registry
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
GSA/touchpoints#2130 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
digital-registry
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GSA/touchpoints#2111 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
GSA/touchpoints#2038 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
GSA/touchpoints#2036 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GSA/touchpoints
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
microlinkhq/metascraper#905 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
-
ISA Builder: the Configuration tab has no tabpanel, so both tabs' aria-controls point at a missing elementCó thể đã có người làm @vikash2006-dot đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
riscv/riscv-isa-explorer#725 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 手杀孙茹 火攻 刘理 时触发错误Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày