ajaynegi33 / ajaynegi33/FormMaillyGo

🚨 Performance Issue: Email Sending Handler is Too Slow (TTFB ~4s)

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug help wanted
主要言語
HTML
スター
2
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

**Summary:**
The email-sending handler is taking too long to respond (over 4 seconds) both **locally** and on **AWS Lambda**. The biggest delay is in the **Time to First Byte (TTFB)**, which means something is slowing down the server before it starts responding.

---

### 📊 Performance Stats

| Metric | Local Value | AWS Lambda Value |
|-----------------------|-------------|------------------|
| **Response Time** | 4.18 s | 4.31 s |
| **Prepare** | 8.96 ms | 12.22 ms |
| **Socket Initialization** | 1.49 ms | 0.59 ms |
| **DNS Lookup** | 0.14 ms | 118.48 ms |
| **TCP Handshake** | 0 ms | 37 ms |
| **SSL Handshake** | – | 36.52 ms |
| **Waiting (TTFB)** | 4.18 s | 4.11 s |
| **Download** | 1.66 ms | 2.41 ms |
| **Process** | 0.21 ms | 0.23 ms |

---

### 🔍 Likely Cause

* The **email sending part (SMTP)** is taking too long.
* This includes:

* Connecting to SMTP server
* TLS handshake
* Authentication
* Waiting for server response

### 💬 Discussion Prompt

If anyone has:

* Experience with **fast email delivery from Go**
* Tips for **SMTP optimization**
* Benchmarks comparing **SMTP vs HTTP APIs** in Lambda

Feel free to share!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。