![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
サーバーレスアンチパターン今昔物語 08/07(金) 第3夜 - 真夏の夜の夢 - #serverless_newworld by @Keisuke69
-
beajourneyman
- 2631
- 8
- 0
- 0
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
みてる youtube.com/watch?v=xt2LsH… #serverless_newworld
2020-08-07 21:23:05![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
SPAのファーストビュー遅い問題は開発してるとすっかり忘れちゃうからSSRにして改善したい… #serverless_newworld
2020-08-07 21:24:18![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
SPAだとファーストビューが遅い。ローディングがぐるぐるしてるのをbotは待ってくれないかも #serverless_newworld
2020-08-07 21:24:30![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
OGPのフェッチをやるBotはJS対応していないのでやっぱりSSRが必要になる #serverless_newworld
2020-08-07 21:24:38![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
人間相手のページでも、ファーストビューでどこまで表示して、何を非同期読み込みに回すのかはUXに割と影響ありそうですね #serverless_newworld
2020-08-07 21:26:20![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
SPA自体が割と最近のイメージがあったけど、時が経ったのかな。。 時代は行ったり来たり。 #serverless_newworld
2020-08-07 21:28:08![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
SPAの課題 ・SEO対応ができない →昨年のGoogleアップデートでクローラーがJSも解釈するようにすると発表あり。ただし他のbotはJS認識非対応もあるかも ・ファーストビューが遅い →対人間だけでなく対クローラーでも遅い
2020-08-07 21:28:09![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
jamstackは「JavaScript」「APIs」「Markup」のスタックだと。へー。 #serverless_newworld
2020-08-07 21:29:08![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
これからJamstackがくるんじゃないかとのこと。 jamstack.org #serverless_newworld
2020-08-07 21:30:17![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
なんかPOST wordpressを目指してほしい #serverless_newworld #wordpress #JAMStack
2020-08-07 21:31:26![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
サーバーサイドレンダリングの課題はレンダリングするサーバーが必要なこと。サーバレスがなかったころはサーバーが必要なのは当たり前だったんですが、もはやサーバーが必要な事が課題になるんですね #serverless_newworld
2020-08-07 21:34:10![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
SSRはインフラ的課題あり。CPU高くなりがち。など。そこで、サーバーレス keisuke69.net #serverless_newworld
2020-08-07 21:34:14![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
#serverless_newworld SPAは最初に一括で読み込むから、初回ロードが遅いんだよね。そこさえクリアできれば
2020-08-07 21:34:28![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Lambdaは必ず1イベントしか処理しないので、リクエストが増えてもLambdaの負荷は同じになる。スケールしやすい特性 #serverless_newworld
2020-08-07 21:35:40![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
古のプロセスなのかスレッドなのかの議論を思い出させる話だなぁ。 #serverless_newworld
2020-08-07 21:36:05![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
サーバーレス(AWS Lambda)でサーバーサイドレンタリング。自動でスケールするので、処理が集中して、CPU負荷が高まって、レスポンス返せないってことはない。あと、API Gateway/CFも必要。 #serverless_newworld
2020-08-07 21:36:21![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Lambdaでいけるのか。そりゃそうか。 「サーバサイドレンダリング」って名前に引っ張られて「サーバ?コンテナ?そんなもんわからん!」と、そもそも調べもしなかったぞw #serverless_newworld
2020-08-07 21:36:37