NextJS connect to backend Go api for buffering response
如果是 ASP 或 PHP 類的技術,可以透過設定 response 的 timeout 時間,再加上 flush (或類似機制)達成。這樣的處理用在需要較長執行時間的 api (或頁面)的情境相當適合,但如果是 nextjs 前端搭配 golang 後端,就沒有類似的機制,需要改用其他方式。
如果是 ASP 或 PHP 類的技術,可以透過設定 response 的 timeout 時間,再加上 flush (或類似機制)達成。這樣的處理用在需要較長執行時間的 api (或頁面)的情境相當適合,但如果是 nextjs 前端搭配 golang 後端,就沒有類似的機制,需要改用其他方式。
主要討論在 app router 使用情境
nextjs 提供多種 render page 的方式,當中最特別的是 server side rendering, 甚至 static page generation,對於網頁瀏覽速度大有助益。
時間比較短的還算容易從網路上找到免費的工具可以轉好,但這次的是 https://www.youtube.com/watch?v=1-TZqOsVCNM 這個超過三小時的 podcast
紀錄一下 ~$ sudo more /etc/letsencrypt/options-ssl-apache.conf # This file contains important security parameters. If you modify this file # manually, Certbot will be unable to automatically provide future security # updates. Instead, Certbot will print and log an error message with a path to # the up-to-date file that you will need to refer to when […]
理論上大部分東西都不用更動
筆記一下,雖說以後有沒有機會用到還不曉得
在 Golang 裏頭對字串陣列檢查特定字串是否有存在,並回傳 index 比較 reflect, wgo package, 以及 slices 結論是,code要簡潔且效能快,用 slices
In Golang with basic, multithread, string.Join and combinations.
記錄一下 fiber v2 + swagger