SlideShare a Scribd company logo
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
鈴木 潤
パーソルホールディングス株式会社
https://digi-card-web.belltree.tokyo/
【無駄のない無駄なシステム】AWS Lambdaを活用した
サーバレス自己顕示欲満たしシステム デュエル名刺ジェネレーター v2 の構築
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
自己紹介
鈴木 潤
平社員 33歳 男性
所属:パーソルホールディングス株式会社
GDXエンゲージメントプロダクト開発部
社内業務システムの開発, R&D など
好きなもの 金と権力
欲しいもの 金と権力
苦手なもの しごと・社会活動全般
好きなもの 金と権力
https://digi-card-web.belltree.tokyo/
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
自己顕示欲
自己
顕示欲
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
自分を実際よりも
大きく見せなければならない!!!1
https://digi-card-web.belltree.tokyo/
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
クソデュエル名刺ジェネレーター v2
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
OGPに対応
名刺交換フェイズに
差し出すことで
ビジネスの場でも
コンバットトリックを
キメることができる!
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
お金、出来るだけ払いたくない
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
Lambda function
Lambda function
Amazon API Gateway
S3
Amazon CloudFront
Amazon Elastic Container
Registry (Amazon ECR)
AWS Cloud
動的に画像を生成
画像生成ライブラリ
をインストールしたイメージをアップロード
JavaScript
CSSなど
画像生成ライブラリ
node-canvas
Fabric.js
含めると、50MBを超えてしまうため、
Lambda関数をコンテナで作成 EJS(Node.jsで使えるテンプレートエンジン)
でHTMLを動的に生成
メタタグにbase64文字列を入れるだけでは画像が表示されないため、OGP用のURLを作る必要がある。
Twitter API
Lambda function
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
改善案
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
Lambda function
Lambda function
Amazon API Gateway
S3
Amazon CloudFront
Amazon Elastic Container
Registry (Amazon ECR)
AWS Cloud
動的に画像を生成
画像生成ライブラリ
をインストールしたイメージをアップロード
JavaScript
CSSなど
画像生成ライブラリ
node-canvas
Fabric.js
含めると、50MBを超えてしまうため、
Lambda関数をコンテナで作成 EJS(Node.jsで使えるテンプレートエンジン)
でHTMLを動的に生成
メタタグにbase64文字列を入れるだけでは画像が表示されないため、OGP用のURLを作る必要がある。
Twitter API
Lambda function
Lambda Layerを使った方が良いかも
月40円くらいかかってる!
由々しき問題である。
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
Lambda function
Lambda function
Amazon API Gateway
S3
Amazon CloudFront
Amazon Elastic Container
Registry (Amazon ECR)
AWS Cloud
動的に画像を生成
画像生成ライブラリ
をインストールしたイメージをアップロード
JavaScript
CSSなど
画像生成ライブラリ
node-canvas
Fabric.js
含めると、50MBを超えてしまうため、
Lambda関数をコンテナで作成 EJS(Node.jsで使えるテンプレートエンジン)
でHTMLを動的に生成
メタタグにbase64文字列を入れるだけでは画像が表示されないため、OGP用のURLを作る必要がある。
Twitter API
Lambda function
* キャッシュを有効にしたほうが
良いかも
* コールドスタート対策の仕組み
を入れたほうが良いかも
内容は個人的な見解であり、所属する会社、組織とは全く関係ありません。
また、クソデュエル名刺ジェネレーターは、発表者個人がプライベートでの技術検証のために作成したものであり
所属する会社、組織とは全く関係ありません。
https://digi-card-web.belltree.tokyo/
一定程度まじめなまとめ
API GatewayとLambdaを使うことで、EC2やLightsailなどを使わなくて
も画像を生成するAPIを作成することができた。
API GatewayとLambdaとテンプレートエンジン(今回はEJS)を使うこ
とでJSONではなくHTMLを返すAPIを作成することができた。
Lambda Layerを使うことで、ECRのコストを抑えられる可能性がある
API Gatewayのキャッシュ機能、またはCloudFrontの組み合わせること
Lambdaのコールドスタート対策の仕組みの導入などで、デュエル名刺
の表示速度を改善が可能性が考えられる。
アクセスして
作ったやつを
Twitterでシェア!
俺がエゴサする!
終
制作・著作
━━━━━
鈴木潤

More Related Content

Featured

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 

Featured (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

【無駄のない無駄なシステム】AWS Lambdaを活用した サーバレス自己顕示欲満たしシステム デュエル名刺ジェネレーター v2 の構築